DBusActivatable launches app in root directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
dbus (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
unity (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
upstart (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I'm the maintainer of a tiling terminal application called Terminix (https:/
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:/
https:/
https:/
https:/
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-
Another thing that works is changing DBusActivatable
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.
Changed in unity (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Medium |
Looks like this is a general issue with Unity and DBusActivatable, I see baobab (the disk usage analyzer) which is also set to use DBusActivatable exhibits the same behavior in my VM:
gnunn@gnunn- VirtualBox: /usr/share/ applications$ cat org.gnome. baobab. desktop storage; space;cleanup; inode/directory ; GTK;GNOME; System; Filesystem; X-GNOME- Utilities; Bugzilla- Bugzilla= GNOME Bugzilla- Product= gnome-utils Bugzilla- Component= baobab Bugzilla- Version= 3.18.1 =true Gettext- Domain= baobab VirtualBox: /usr/share/ applications$ ps -ef | grep baobab service VirtualBox: /usr/share/ applications$ ls /proc/14590/cwd VirtualBox: /usr/share/ applications$
[Desktop Entry]
Name=Disk Usage Analyzer
Comment=Check folder sizes and available disk space
Keywords=
TryExec=baobab
Exec=baobab
Icon=baobab
Terminal=false
Type=Application
StartupNotify=true
MimeType=
Categories=
NotShowIn=KDE;
X-GNOME-
X-GNOME-
X-GNOME-
X-GNOME-
DBusActivatable
X-Ubuntu-
gnunn@gnunn-
gnunn 14590 1097 0 22:40 ? 00:00:00 /usr/bin/baobab --gapplication-
gnunn 14598 2126 0 22:40 pts/5 00:00:00 grep --color=auto baobab
gnunn@gnunn-
bin boot cdrom core dev etc home initrd.img lib lib64 lost+found media mnt opt proc root run sbin srv sys tmp usr var vmlinuz
gnunn@gnunn-