! 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 !
Thunar does not recover directories opened in a previous session
Status:
RESOLVED: FIXED

Comments

Description fwjmath 2018-12-12 16:34:37 CET
Hardware: Acer TravelMate P2410
OS: Xubuntu 18.10
Running on xfce4, version 4.12, with Thunar, version 1.8.1

On several other desktops environments, I have been using the save session functionality of xfce to recover my work between shutdowns, especially Thunar for remembering on which project I am working. With my new laptop, installing Xubuntu, the problem begins. Saving sessions work well for other applications, but not Thunar. In Settings -- Sessions and Startup, if I look at the "Session" Tab, Thunar is never there, even if I opened several directories using it. Then on startup, none of the directories opened in a previous session appears. I have had a peek into ~/.cache/sessions. There is no file starting with "Thunar", which is not the case for my other desktops.

Attempts to fix it reveils that it is probably a problem in Thunar, failing to write its status to, and to restart from, files written in ~/.cache/sessions, at least in my case.

Obviously, cleaning the cache in ~/.cache/sessions does not work. Also xfwm4 is running after startup. Everything is the same for shutdown instead of logout.

First, after startup, there is a "Thunar --daemon" running, and after a bit of tracking, it was started by systemd upon request of xfdesktop. This instance writes nothing in ~/.cache/sessions.

Second, when the "Thunar --daemon" from startup is killed, opening an arbitrary directory give rise to another Thunar daemon instance, which correctly writes information into ~/.cache/sessions, and also appears in the "Session" Tab of Settings -- Sessions and Startup. However, if I log out and log back in, the opened directories are still not there, and we are back to the Thunar daemon from systemd. I checked that the files in ~/.cache/sessions are clearly intact between the logout/login using another tty without X.

Therefore, the conclusion seems to be that, somehow on my computer, the Thunar daemon started by systemd does not work well with session management.

This does not seem to be related to Bug 14509, since there is no coredump for Thunar.

The laptop is new, and Xubuntu was installed without special options. If there is anything that may be a problem, it would be that I somehow managed to screw my home directory to be owned by the root when switching from ext3 to ext4, but I fixed it myself by chown -R. I mention this because it may also well be a problem of permission, but when I check, ~/.cache/sessions is well owned by me with the usual 664 permission on all files in it.
Comment 1 alexxcons editbugs 2018-12-13 10:10:18 CET
Thanks for the detailed report !

If I have time (which sadly is rare nowadays), I will take a look into it.

If you have the moot to further debug the problem yourself, patches are always welcome !
Comment 2 alexxcons editbugs 2018-12-28 22:48:12 CET
Found it ! Was defect since gtk port.

Session manager was created to early @startup
Comment 3 Git Bot editbugs 2018-12-28 22:48:34 CET
Alexander Schwinn referenced this bugreport in commit 1a23817aec215373008f095d8906aead5fb7bb03

Thunar does not recover directories opened in a previous session (Bug #14969)

https://git.xfce.org/xfce/thunar/commit?id=1a23817aec215373008f095d8906aead5fb7bb03
Comment 4 Git Bot editbugs 2018-12-28 22:50:37 CET
Alexander Schwinn referenced this bugreport in commit a47b75cb8f01a83abb5f4aa81ba36b03fd4b2a3f

Thunar does not recover directories opened in a previous session (Bug #14969)

https://git.xfce.org/xfce/thunar/commit?id=a47b75cb8f01a83abb5f4aa81ba36b03fd4b2a3f
Comment 5 alexxcons editbugs 2018-12-28 22:52:02 CET
Fixed for master and 4.14 branch.

Will be released soon as 1.8.3

Thanks again for reporting !
Comment 6 alexxcons editbugs 2019-01-04 17:13:18 CET
*** Bug 14509 has been marked as a duplicate of this bug. ***

Bug #14969

Reported by:
fwjmath
Reported on: 2018-12-12
Last modified on: 2019-01-04
Duplicates (1):
  • 14509 Thunar dumps core SEGV when user logs out of xfce session while file manager window is open

People

Assignee:
Xfce Bug Triage
CC List:
5 users

Version

Attachments

Additional information