Bug 389162 - LD_LIBRARY_PATH is removed from env when using AppImage
Summary: LD_LIBRARY_PATH is removed from env when using AppImage
Status: RESOLVED WORKSFORME
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.2.1
Platform: Appimage Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-01-18 14:10 UTC by Miguel Tadeu
Modified: 2022-12-31 05:23 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Tadeu 2018-01-18 14:10:52 UTC
Hi,
When running the KDevelop AppImage, LD_LIBRARY_PATH is totally ignored, and removed from the environment. It's useful to have it passed inside KDevelop to build and run applications.

Thanks
Comment 1 Miguel Tadeu 2018-01-18 14:11:55 UTC
There is a workaround that seems to work. Setting APPIMAGE_LIBRARY_PATH with the same value as LD_LIBRARY_PATH seems to do the job.
Comment 2 Anatoli Shein 2018-10-01 18:18:49 UTC
I am hitting the same issue. The environment variable LD_LIBRARY_PATH completely disappears when I Execute my application, however it works correctly when I Debug the application. Sample c++ code that reproduces this issue for me:

#include <iostream>
#include <cstdlib>
int main()
{
    if(const char* env_p = std::getenv("LD_LIBRARY_PATH"))
        std::cout << "LD_LIBRARY_PATH=" << env_p << '\n';

    return 0;
}

I get no output when I Execute this code, and I get the correct value of the LD_LIBRARY_PATH variable printed when I Debug this.
Comment 3 Justin Zobel 2022-12-01 04:34:49 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 4 Bug Janitor Service 2022-12-16 05:13:23 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 5 Bug Janitor Service 2022-12-31 05:23:33 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!