AppImage / AppImageKit

Package desktop applications as AppImages that run on common Linux-based operating systems, such as RHEL, CentOS, openSUSE, SLED, Ubuntu, Fedora, debian and derivatives. Join #AppImage on irc.libera.chat
http://appimage.org
Other
8.77k stars 563 forks source link

working directory should not be changed for Terminal applications #1121

Closed ganguin closed 3 years ago

ganguin commented 3 years ago

AppRun calls chdir to AppImageMount/usr. This is perfectly OK (and a good idea?) for Graphical Applications but weird/problematic for Terminal Applications.

chdir should be performed only when the .desktop file does not contain Terminal=true

As a workaround, it is possible to chdir back to the OWD env variable in the bundled application. However, it would be nice to be able to package a console application without having to patch it to make this chdir.

TheAssassin commented 3 years ago

The chdir is only executed by the (long obsolete and IMO long deprecated) AppRun.c. Use, e.g., linuxdeploy, or any other method to deploy your application.

ganguin commented 3 years ago

ok, then nevermind, Thanks for the quick response. I find the documentation quite confusing on how to build a simple Appimage. If linuxdeploy is the way to go, I'll try that

probonopd commented 3 years ago

To add to the confusion, there is a multitude of different tools each with their own strenghts: https://github.com/AppImage/awesome-appimage#appimage-developer-tools

TheAssassin commented 3 years ago

Don't hesitate to ask for help on IRC: https://docs.appimage.org/contact.html