Skip to content

Some autostart apps don't closed on logout

I have 21 programs enabled in "Session and Startup" (all with trigger "on login"), and I noticed that 2 of them don't seem to close when I log out, i.e. N logins result in N running copies of the program. The programs are:

  • Geoclue Demo Agent, added to autostart automatically after installing geoclue-2.0 package from the Ubuntu repository. The contents of /etc/xdg/autostart/geoclue-demo-agent.desktop are:
    [Desktop Entry]
    Name=Geoclue Demo agent
    GenericName=Demo geoclue agent
    Keywords=geolocation;
    Exec=/usr/libexec/geoclue-2.0/demos/agent
    Icon=mark-location-symbolic
    NotShowIn=GNOME;
    NoDisplay=true
    Terminal=false
    Type=Application
  • redshift, which I added manually using the "Session and Startup" interface (/home/daniel/.config/autostart/Redshift.desktop):
    [Desktop Entry]
    Encoding=UTF-8
    Version=0.9.4
    Type=Application
    Name=Redshift
    Comment=
    Exec=redshift
    OnlyShowIn=XFCE;
    RunHook=0
    StartupNotify=false
    Terminal=false
    Hidden=false
Desktop: Xfce v: 4.18.1 tk: Gtk v: 3.24.41 wm: xfwm4 v: 4.18.0 with: xfce4-panel
tools: light-locker vt: 7 dm: LightDM v: 1.30.0 Distro: Linux Mint 22 Wilma
base: Ubuntu 24.04 noble