Public bug reported: I'm the maintainer of a tiling terminal application called Terminix (https://github.com/gnunn1/terminix). By default, terminix has DBusActivatable=true in it's desktop launch configuration. However when this is enabled, Unity will launch Terminix with the CWD set to the root ('/') directory rather then the user's home. This doesn't happen for all users, but it is consistent in that if the user has the issue they always have the issue.
This causes issues for my users because Terminix uses it's CWD when first launched to determine what the shell's initial directory should be. You can see bug reports on this issue at the following links: https://github.com/gnunn1/terminix/issues/285 https://github.com/gnunn1/terminix/issues/214 https://github.com/gnunn1/terminix/issues/216 https://github.com/gnunn1/terminix/issues/220 I can reproduce on Unity 16.04 in a VM, I can see that the while the CWD is set to the root directory, the PWD environment variable is set to the user's home directory as expected. For now I'm working around it by checking if the --gapplication-service parameter was passed, if so if the CWD!=PWD I set the CWD to PWD. Another thing that works is changing DBusActivatable=false in the desktop file, however I'd prefer to avoid maintaining two desktop files. I'd really like to understand why this happening and confirm if it's something I'm doing wrong on my side. This configuration works fine in other launchers like Gnome Shell, it's only Unity where I have the issue. I used the dbus-monitor to inspect messages when Unity launches Terminix and I'm not seeing an obvious problem. ** Affects: unity (Ubuntu) Importance: Undecided Status: New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1580673 Title: DBusActivatable launches app in root directory To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1580673/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
