![]() ![]() The Xwindows GUI and various display managers, etc. You would think that a PATH set in $HOME/.profile (user script analogous to /etc/profile system-wide script) would work for non-terminal sessions like Gnome but it doesn't. I know this to be the behavior on Puppy Linux 5.2.8 Lupu which is based on Ubuntu 10.04 and research indicates it is common, at least for many Debian-based distros like Ubuntu. Remember to 'export PATH' so all subshells see it. Since /etc/profile executes /etc/profile.local if it exists, then changes and additions to PATH are usually best done there.Scripts and programs executed by a GUI like Gnome use the PATH set in /etc/profile.Only commands entered on a terminal session command line will make use of the PATH set in /root/.bashrc./etc/profile sources /etc/profile.local if it exists.Much of the confusion about this is because it varies by Linux distribution. I think that a solution could be to have a launcher script for each GUI application, like a commenter has suggested. Maybe there are libraries that hide each other in my PATH? In any case, LD_LIBRARY_PATH is always empty. Furthermore, the which command resolves both firefox and thunderbird fine. How can I troubleshoot this problem? My ~/.bashrc is just a bunch of addition to PATH. Thanks to Bob's suggestion, I have tried running bash -norc - that is: Bash with the default configuration - and then adding the path to both Thunderbird and Firefox by hand and - gasp! - now both applications launch fine. ![]() I don't know how Gnome is started: I installed Debian with GUI and it launches Gnome by default after a graphical login screen.īash is started from the Gnome Panel with the command "gnome-terminal -full-screen". I don't want to put my custom PATH in ~/.profile, hence this question. ![]() What's the problem? Should I use a launcher for GUI applications, maybe? Indeed, at the moment I have resorted to using a script that emulates the second procedure. Then I can run any GUI application from my Bash session with no problem. or switch to an application's folder before launching it.set the PATH in ~/.profile and restart the Gnome session.Firefox fails with "Could not find the Mozilla runtime."Īdding PATH to LD_LIBRARY_PATH doesn't fix the issue.However, the which command finds that library (because the folder is in PATH). Thunderbird can't find the libxpcom.so library (it is in its folder).If I launch GUI applications available in the current PATH from my Bash sessions, then they fail to start. No issues with console applications, though. In Gnome, don't GUI applications inherit the PATH of the shell process that launches them? Apparently, GUI applications see only the PATH specified in ~/.profile. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |