You are not logged in.

#1 2023-09-03 12:58:35

4romany
Member
Registered: 2021-11-27
Posts: 25

SOLVED-How to find how a particular program automatically starts

I hate to even ask - there are a lot of ways you can do this apparently.   I'm using the latest version of Arch - KDE as my WM.   I recently installed an AUR program called youtube-to-mp3 - just a utility that does exactly what it says.  Works well for that task - but the damn thing launches every time I log in.   I did a "grep mp3 *" in both my home directory and ~/.config - deleted some entries in ~/.config/plasma-org.kde.plasma.desktop-appletsrc - and also in ~/.config ksmserverrc (though those entries get "restored" the next time I login).   Also looked in KDE autostart "folder" - only one entry in there an in ain't that mp3 utility.   I know there are a LOT of places that it COULD be but what are the likely places to look.  Thanks for any breadcrumbs...

Last edited by 4romany (2023-09-04 14:35:18)

Offline

#2 2023-09-03 13:05:58

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,658

Re: SOLVED-How to find how a particular program automatically starts

pacman -Ql youtube-to-mp3

https://wiki.archlinux.org/title/XDG_Autostart
https://wiki.archlinux.org/title/KDE#Autostart
In particular /etc/xdg/autostart if you don't think you added that yourself.
Might also be a user systemd service.

Offline

#3 2023-09-03 13:37:15

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,729

Re: SOLVED-How to find how a particular program automatically starts

Also check out https://wiki.archlinux.org/title/KDE#Re … ed_session

Edit: wait, you already checked out ksmserverrc. Still, turning it off completely is worth a shot.

Last edited by Scimmia (2023-09-03 13:40:21)

Offline

#4 2023-09-04 14:33:35

4romany
Member
Registered: 2021-11-27
Posts: 25

Re: SOLVED-How to find how a particular program automatically starts

Thanks for the replies guys.   I *think* what the final solution was to delete /usr/share/applications/youtube-to-mp3.desktop - that seemed to do the trick.

Offline

#5 2023-09-04 14:48:02

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,481
Website

Re: SOLVED-How to find how a particular program automatically starts

I'd not call that a final solution for at least two reasons: 1) that file will be restored the next time the package is updated, and 2) that's not actually the true cause of the program starting, but may just be part of the mechanism used to start it: so you "broke" the starting, but there's still a now-failing attempt to start it somewhere else.  Additionally, this would prevent any deliberate / intended use of the desktop file though this may not matter to you.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#6 2023-09-04 19:07:27

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,658

Re: SOLVED-How to find how a particular program automatically starts

As Trilby pointed out, that's neither final nor a solution.

The debian package provided by upstream doesn't contain any autostart services, so it actually very likely /is/ the KDE session manager.

Offline

Board footer

Powered by FluxBB