How to tell which version of a application is running

Xen list at xenhideout.nl
Mon Apr 17 15:12:59 UTC 2017


Ralf Mardorf schreef op 17-04-2017 16:28:

> So the desktop file does launch what's running on the OP's machine.

Okay to keep this short right.

The file

/etc/xdg/autostart/tracker-store.desktop

Contains:

Exec=gdbus call -e -d org.freedesktop.DBus -o /org/freedesktop/DBus -m 
org.freedesktop.DBus.StartServiceByName org.freedesktop.Tracker1 0

So it is started by dbus as I assumed.

The first service is 
/usr/share/dbus-1/services/org.freedesktop.Tracker1.service and 
contains:

[D-BUS Service]
Name=org.freedesktop.Tracker1
Exec=/usr/lib/tracker/tracker-store

And the second service being 
/usr/share/dbus-1/services/org.freedesktop.Tracker1.Writeback.service 
contains:

[D-BUS Service]
Name=org.freedesktop.Tracker1.Writeback
Exec=/usr/lib/tracker/tracker-writeback

So by issuing

# sed -i "s at usr/lib at usr/local/lib@" 
/usr/share/dbus-1/services/org.freedesktop.Tracker1{,.Writeback}.service

The user is guaranteed to point those two service files to his own 
installation.



Now according to DBUS /usr/local/share/dbus-1/services should take 
precedence over /usr/share/dbus-1/services so I don't know why it was 
not already working [1][2].

The configuration directive <standard_session_servicedirs/> contains no 
actual configuration, so that is really useful.

At least files placed in $HOME/.config/dbus-1/services/ should take 
precedence over /usr/share/dbus-1/services.




[1] 
https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html
[2] https://dbus.freedesktop.org/doc/dbus-daemon.1.html





More information about the ubuntu-users mailing list