Package: zeitgeist-datahub
Version: 0.9.16-0.2+b1
Severity: normal

Dear Maintainer,

zeitgeist-datahub is startet via
/etc/xdg/autostart/zeitgeist-datahub.desktop on graphical login.
It resides not in systemds user@$UID.service, but in session-NN.scope

When i logout (last logout) from my machine, the session-NN.scope and
user@$UID.service stays alive.
loginctl show-session NN
shows the state of the session: closing

i found out, that zeitgeist-datahub is not stopping after logout.

So i removed the *.desktop from /etc/xdg/autostart, and logged in and
out and checked if the session is alive...
The session dissapeard from logind... the process stopped.

So i tried another solution. Start and stop zeitgeist-datahub via
systemd --user:

Create a file
/etc/systemd/user/zeitgeist-datahub.service
containing this:

[Unit]
Description=Zeitgeist full-text search indexer

[Service]
Type=dbus
BusName=org.gnome.zeitgeist.datahub
ExecStart=/usr/bin/zeitgeist-datahub

and create the necessary link in
/etc/systemd/user/default.target.wants/

log out an in again, zeitgeist-datahub is running.
log out, zeitgeist-datahub stopps working, and the sesseion shuts down.

So this is a solution, which works on every login (not only graphical).

Regards

Jakob

-- System Information:
Debian Release: 9.0
  APT prefers testing
  APT policy: (990, 'testing'), (800, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.10.0-rc6-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages zeitgeist-datahub depends on:
ii  libatk1.0-0          2.22.0-1
ii  libc6                2.24-9
ii  libcairo-gobject2    1.14.8-1
ii  libcairo2            1.14.8-1
ii  libgdk-pixbuf2.0-0   2.36.5-2
ii  libglib2.0-0         2.50.3-1
ii  libgtk-3-0           3.22.8-1
ii  libjson-glib-1.0-0   1.2.2-1+b1
ii  libpango-1.0-0       1.40.3-3
ii  libpangocairo-1.0-0  1.40.3-3
ii  libtelepathy-glib0   0.24.1-1.1
ii  libzeitgeist-2.0-0   0.9.16-0.2+b1
ii  zeitgeist-core       0.9.16-0.2+b1

zeitgeist-datahub recommends no packages.

zeitgeist-datahub suggests no packages.

-- Configuration Files:
/etc/xdg/autostart/zeitgeist-datahub.desktop [Errno 2] Datei oder Verzeichnis 
nicht gefunden: '/etc/xdg/autostart/zeitgeist-datahub.desktop'

-- no debconf information

Reply via email to