etc/xdg/autostart/org.kde.kgpg.desktop contains X-KDE-autostart-after=panel X-KDE-autostart-condition=kgpgrc:User Interface:AutoStart:false This two options are only evaluated by KDE. Therefore, if you use another platform than KDE, kgpg always autostarts https://specifications.freedesktop.org/autostart-spec/0.5/ar01s02.html says: If an application autostarts by having a .desktop file installed in the system wide autostart directory, an individual user can disable the autotomatic start of this application by placing a .desktop file of the same name in its personal autostart directory which contains the key Hidden=true. See also similiar issue with kalarm: https://bugs.kde.org/show_bug.cgi?id=366562
I also encountered this problem and it is somewhat annoying, since I have kgpg Autostart and bother me with the first start assistant every time I log into Gnome. I have solved it by adding the following line to the file /etc/xdg/autostart/org.kde.kgpg.desktop: OnlyShowIn=KDE; This is what is found in most other KDE applications inside this autostart folder in my distribution (Arch Linux). Would it be possible to add this line by default? This would tremendously improve the user experience for non-KDE users on systems where it is installed, since there is no user-accessible way to disable the auto-start right now.
I'm also seeing this issue. KAlarm previously had the same problem. (https://bugs.kde.org/show_bug.cgi?id=366562).
This issue is still there, the line OnlyShowIn=KDE; needs to be added to org.kde.kgpg.desktop so it isn't started in other environments. As Stephan said this line is already present in the other KDE-specific desktop files.
> This issue is still there, the line OnlyShowIn=KDE; needs to be added to org.kde.kgpg.desktop so it isn't started in other environments. If I understand the XDG autostart stuff correctly, it will no longer autostart kgpg on non-KDE environments, but will also disable autostart if it's desired, i.e. the option in kgpg is set. IMO the entire scheme is ill-designed. Checking / unchecking the option should directly set/unset the "Hidden" attribute in ~/.config/autostart/kgpg.desktop. This way, it would work for any desktop environment.
Hi! I am still facing this issue in 2024, using Xfce4 with KDE also installed. But I can confirm that the workaround does indeed still help for me too, so that's great. I copy the `org.kde.kgpg.desktop` file from the `/etc/xdg/autostart/` system location to my `~/.config/autostart/` home location and then I add the `Hidden=true` to the it. It no longer launches. (It's the same way as hiding applications in `/.local/share/applications/`, which hides the shortcut from my Xfce menus, but then for disabling automatic starting instead) But still, this workaround should not be needed. Why does the file have to be in `/etc/xdg/autostart/` in the first place? There's another desktop file, `org.kde.kclockd-autostart.desktop`, which is also simply added to my `~/.config/autostart/` location by KDE - also something I did not really expect, but at least it's in my home directory so I can directly modify it if I want.
Sorry I forgot to mention that I am using Arch Linux.