! 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: Add a systemd user unit for the two D-Bus session services
Status:
RESOLVED: FIXED
Severity:
enhancement

Comments

Description Simon McVittie 2015-10-01 18:35:19 CEST
Created attachment 6465 
Add a systemd user unit for the two D-Bus session services

Similar to Bug #12225, when running under a systemd user session, this
results in thunar instances that are D-Bus-activated being placed in
their own cgroup, whereas previously they would be a child of
dbus-daemon in the dbus.service cgroup.

It also avoids races between two separate instances of the
same executable being started for its two activatable names, which could
result in spurious activation failures if they are used in quick
succession, similar to
<https://bugs.freedesktop.org/show_bug.cgi?id=53220> in
telepathy-mission-control.
Comment 1 Simon McVittie 2015-10-01 18:35:53 CEST
Created attachment 6466 
Consistently make sed-based recipes depend on Makefile

When configure is re-run (and updates Makefile as a side-effect),
the values of variables like $(bindir) may have changed, so the
sed-generated files may need to be refreshed.

---

This is a vaguely related bugfix.
Comment 2 Simon McVittie 2016-07-28 20:07:49 CEST
Bug #12238 has some background information on the situations in which this can be used.
Comment 3 Git Bot editbugs 2018-02-09 22:06:11 CET
Simon McVittie referenced this bugreport in commit ade6805e05de32a6fb34283becfd4ffc0419b88d

 Add a systemd user unit for the two D-Bus session services (bug #12236)

https://git.xfce.org/xfce/thunar/commit?id=ade6805e05de32a6fb34283becfd4ffc0419b88d
Comment 4 alexxcons editbugs 2018-02-09 22:07:35 CET
Thanks for the patch, and sorry for the late reply !

With the patch applied, systemd-cgls looks now like that for me::
├─user.slice
│ └─user-1000.slice
│   ├─user@1000.service
│   │ ├─thunar.service
│   │ │ └─1045 /usr/local/bin/Thunar --daemon
...
Which seems to be fine, according to the notes in Bug #12238 .. I just pushed the changes.

Thanks for your contribution !

Bug #12236

Reported by:
Simon McVittie
Reported on: 2015-10-01
Last modified on: 2018-02-09

People

Assignee:
Xfce Bug Triage
CC List:
3 users

Version

Version:
1.6.10

Attachments

Additional information