How to prevent kde/plasma from restarting an app (conky) after reboot/new login

Hi, this is a problem I am having since I started using kde plasma years ago, on all of my pcs. I use conky to display some system sensor data and stats on my desktop. When rebooting my pc and login to a new plasma session usually the last apps are still there (probably got just restarted) this includes conky. But the problem is, that another conky instance is running now (this is visible on the desktop because the conky background is transparend and the refresh offsets are slightly differenr which results in blurry numbers | also top shows two instances)!

If i do not handle this, I get another instance with every reboot! Right now I am having a habit af running “pkill conky && conky” right after logging to a new plasma session. But that cannot be the best option.
I did tried to prevent plasma from restarting conky by adding “conky” to the ignored applications in the session recovery settings, but that has no effect at all.

Does someone has an ideo to prevent that behavior? Maybe there is a way to just run “pkill conky && conky” after the plasma session starts and after plasma itself starts a new conky instance!

btw.: I never did anything manually to cause conky to restart every sesssion. It does that right after installing conky and running it the first time, on all of my pcs since kde 4

Do you use session restore (Restore Previous Session)?

Yes and I would like to be able to still use it. That is why I added “conky” to the ignored applications. But that has no effect, probably just adding the string “conky” is not enough

Never tried this, but I would try the full path of course.

I tried to add the path, which is /usr/bin/conky but that does not work!

I used to be a long-time user of Conky - was using it on four TW machines (have since switched to Leap, though I still have a TW machine that I haven’t booted in months).

A question: after you boot up, then log in to a KDE session, do you:

  1. Start Conky with a user script ?
  2. Do you start Conky with KDE System Settings → Startup and Shutdown → Autostart ??
  3. Some other method ??

As far as I know, there is no script or such. I have this problem on my main pc and on my laptop. The laptop is completely new, I installed tumbleweed a few weeks ago, the only conky related things I did were: 1. installed conky via yast 2. copied my .conkyrc file from the backup for my old laptop over to the new laptop

Okay, there MUST be an entry in KDE settings “Autostart” section.
(and I forget now, there might be an “autostart” config option in the conky config file … I’d have to boot up my old TW instance to check)

I just installed Conky via YaST (Leap 15.6) and it does not autostart.
I have to manually start it.

So, I went to KDE Settings … to Autostart and added Conky.

And I do have “restart apps that were running at last login”
And yes, I now show two Conky instances (below).

That’s because “restart apps” is set, plus Conky is in “Autostart”

If I remove Conky from “Autostart”, then logout and log back in, there is NOT two instances.

Okay, NOW I’m confused.

I uninstalled Conky and all it’s dependencies … then out of curiosity, I installed Conky again.

I set it to “Autostart” … and I have “restart apps running at last login”. And of course (which I failed to mention previously), I have “conky” entered in the list of “Ignored applications” on the “restart apps running at last login”.

Now, there is ONLY one instance of Conky when I reboot, or if I do a logout then a log back in.
Again, confused why it works as expected now.

This is the autostart section in my KDE settings:


there is no conky.

.
Try this … navigate to the sub-directory (using CLI or file manager):

~/.config/autostart/

Do you see a filename that suggests “conky” in its name?

user@mach:~> cd ./.config/autostart/
user@mach:~/.config/autostart> ll
total 8
-rw------- 1 user users 695 Apr  8  2024 org.kde.latte-dock.desktop
-r--r--r-- 1 user users 850 Apr  8  2024 org.opensuse.opensuse_welcome.desktop
user@mach:~/.config/autostart>

I’ve since removed Conky (again) from my Leap, so no Conky entry shown there (I’m just showing an listing example) … there could be an autostart file there, even though not shown in Settings. And obviously, there are other ways to start Conky, via a script associated with your local user account (or possibly some entry in “/etc/conky/…” or elsewhere).

I’ll probably go boot my TW I haven’t booted in months, just to see how it autostarted Conky.

[sabo@main] ~/.config/autostart $ ll
insgesamt 12
-rwxr--r-- 1 sabo users 455  9. Jun 17:36 jetbrains-toolbox.desktop
-rw-r--r-- 1 sabo users 244 25. Jun 07:10 Nextcloud.desktop
-r--r--r-- 1 sabo users 850 10. Feb 2021  org.opensuse.opensuse_welcome.desktop

btw. this is from my main pc, which has the same problem as my notebook