You are not logged in.

#1 2017-07-19 02:59:07

pzl
Member
Registered: 2014-10-11
Posts: 2

Trash location changes based on d-bus launching

Context: I do not use a desktop environment, I launch via .xinitrc and use bspwm

My .xinitrc used to include the line "eval `dbus-launch --sh-syntax --exit-with-session`" But as of dbus 1.10.10, this caused a lot of issues with booting up at all. Generally forum advice everywhere was to remove "dbus-launch" statements from everywhere. I did, bootup was fixed.

Except the trash.


Thunar believes my trash is in /run/media/<username>/<other_drive>/.Trash-1000, and so does "gio list trash://". 


However, if I launch a thunar instance after boot (from a terminal) with "dbus-launch thunar", then it finds the correct trash can in $XDG_DATA_HOME/Trash. This is the correct and preferred location.

Launching my file manager every time with a dbus-launch command seems wrong, right? What's the proper fix for this, if I was supposed to remove all dbus-launch commands from .xinitrc?

Offline

#2 2017-07-19 06:06:55

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: Trash location changes based on d-bus launching

Is dbus running at all before you use `dbus-launch thunar`?

Offline

#3 2017-07-19 14:20:20

pzl
Member
Registered: 2014-10-11
Posts: 2

Re: Trash location changes based on d-bus launching

yes, it seems to be started automatically via systemd (though I'm not sure where or when).

Offline

Board footer

Powered by FluxBB