! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
autostart ignores Path in xdg desktop files
Status:
RESOLVED: MOVED
Product:
Xfce4-session
Component:
General

Comments

Description Chris Paulson-Ellis 2012-06-11 18:33:14 CEST
I've symlinked a .desktop file into ~/.config/autostart.

The program executes fine when it's menu item is clicked, but it does't work on log-on.

This is because xfce4-session is ignoring the Path entry in the .desktop file that should set the working directory for the executable - and the app is broken enough to fail if it's started in the wrong directory.

I'm using xfce4-session as packaged for Fedora 16: xfce4-session-4.8.3-1.fc16.x86_64.
Comment 1 Robby Workman editbugs 2014-11-18 16:43:16 CET
Perhaps something similar to 8f89ae4bb60fe6b15e0a8eb5b31135fbdd6ca182 in xfdesktop is needed here - Eric?
Comment 2 Eric Koegel editbugs 2014-11-18 17:44:31 CET
Oh yeah, makes sense. I don't have time to write a patch today.
Comment 3 Robby Workman editbugs 2014-11-18 18:09:57 CET
xfce_spawn_command_line_on_screen() is used there, and it doesn't allow a working directory passed to that function. There are some others in libxfce4ui/libxfce4ui/xfce-spawn.c that look plausible to use here, but I'm going to defer this one to someone more experienced. Thanks, Eric! :-)
Comment 4 carl@NextDayVideo.com 2019-09-17 22:25:25 CEST
bump.  me too.
Comment 5 Git Bot editbugs 2020-05-26 00:42:47 CEST
-- GitLab Migration Automatic Message --

This bug has been migrated to xfce.org's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.xfce.org/xfce/xfce4-session/-/issues/9.

Please create an account or use an existing account on one of our supported OAuth providers. 

If you want to fork to submit patches and merge requests please continue reading here: https://docs.xfce.org/contribute/dev/git/start#gitlab_forks_and_merge_requests

Also feel free to reach out to us on the mailing list https://mail.xfce.org/mailman/listinfo/xfce4-dev

Bug #9007

Reported by:
Chris Paulson-Ellis
Reported on: 2012-06-11
Last modified on: 2020-05-26

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Attachments

Additional information