Prevent Autostart of Discover?  [Solved]

Help with the version of MX KDE officially released by the Development Team.
When asking for help, use Quick System Info from MX Tools. It will be properly formatted using the following steps.
1. Click on Quick System Info in MX Tools
2. Right click in your post and paste.
Message
Author
User avatar
AVLinux
Posts: 3162
Joined: Wed Jul 15, 2020 1:15 am

Prevent Autostart of Discover?  [Solved]

#1 Post by AVLinux »

Hi,

On test bench #7 I have KDE installed alongside Enlightenment in AV Linux 23.2. I installed KDE through MXPI Popular Apps and everything is working well so far... a huge sombrero off to the MX KDE developers! I'm completely new to Plasma after swearing I would never look at KDE again after an experiment with early KDE4 hosed my system and wasted an entire (wife and kid-free) weekend many years ago... I've noticed KDE gives some duplicate Apps (ie KWrite and Kate) and I also have Discover and MXPI both handling updates in the systray and I really only want/need MXPI to use on both the KDE and Enlightenment sides but I don't see in the "Background Services" settings any way to disable Discover from autostart.. I haven't tried uninstalling Discover but I'd guess it's going to want to rip out the plasma-desktop-standard metapackage if I do...

Can Discover be disabled from startup or is it baked into the cake?

User avatar
fehlix
Developer
Posts: 12883
Joined: Wed Apr 11, 2018 5:09 pm

Re: Prevent Autostart of Discover?

#2 Post by fehlix »

AVLinux wrote: Mon Aug 12, 2024 1:34 pm Hi,

On test bench #7 I have KDE installed alongside Enlightenment in AV Linux 23.2. I installed KDE through MXPI Popular Apps and everything is working well so far... a huge sombrero off to the MX KDE developers! I'm completely new to Plasma after swearing I would never look at KDE again after an experiment with early KDE4 hosed my system and wasted an entire (wife and kid-free) weekend many years ago... I've noticed KDE gives some duplicate Apps (ie KWrite and Kate) and I also have Discover and MXPI both handling updates in the systray and I really only want/need MXPI to use on both the KDE and Enlightenment sides but I don't see in the "Background Services" settings any way to disable Discover from autostart.. I haven't tried uninstalling Discover but I'd guess it's going to want to rip out the plasma-desktop-standard metapackage if I do...

Can Discover be disabled from startup or is it baked into the cake?
Maybe of help:

Code: Select all

sed '$aHidden=true' /etc/xdg/autostart/org.kde.discover.notifier.desktop | tee ~/.config/autostart/org.kde.discover.notifier.desktop
 
which is : add a line "Hidden=true", to make it not start and place into users autostart directory.

User avatar
AVLinux
Posts: 3162
Joined: Wed Jul 15, 2020 1:15 am

Re: Prevent Autostart of Discover?

#3 Post by AVLinux »

Thanks @fehlix

I did run the command and the launcher was edited and copied to my User autostart folder. On the next cold boot Discover still starts in the system tray. What have I missed?

User avatar
fehlix
Developer
Posts: 12883
Joined: Wed Apr 11, 2018 5:09 pm

Re: Prevent Autostart of Discover?

#4 Post by fehlix »

AVLinux wrote: Mon Aug 12, 2024 4:52 pm Thanks @fehlix

I did run the command and the launcher was edited and copied to my User autostart folder. On the next cold boot Discover still starts in the system tray. What have I missed?
Maybe reduce to this snipplet, but keep the desktop file name
cat ~/.config/autostart/org.kde.discover.notifier.desktop

Code: Select all

[Desktop Entry]
Name=Discover
Exec=/usr/lib/x86_64-linux-gnu/libexec/DiscoverNotifier
Icon=system-software-update
Type=Application
NoDisplay=true
OnlyShowIn=KDE
Hidden=true
I'v not tested on installed, but on LiveBoot, and no procces is showing discover, so no autostart no icon in systray.

User avatar
AVLinux
Posts: 3162
Joined: Wed Jul 15, 2020 1:15 am

Re: Prevent Autostart of Discover?

#5 Post by AVLinux »

Actually this is one of the lines in the original launcher:

Code: Select all

X-KDE-autostart-phase=1
I don't know much about KDE Plasma but this looks like it would override other settings. It appears that disabling Discover is not really what Plasma 'wants' you to do in any standard graphical way. I'm not sure if I want to achieve this with brute force, I was assuming I had just missed some obvious setting since I'm so new to Plasma..

*EDIT - The original solution seems to be working now...? For some reason I had to cold boot twice, I've noticed this with other settings that KDE Plasma often takes a few restarts to fully reflect changes, must be a quirk of this version?
Last edited by AVLinux on Mon Aug 12, 2024 5:57 pm, edited 1 time in total.

User avatar
dolphin_oracle
Developer
Posts: 22671
Joined: Sun Dec 16, 2007 12:17 pm

Re: Prevent Autostart of Discover?

#6 Post by dolphin_oracle »

Hidden=true did it for me.
http://www.youtube.com/runwiththedolphin
lenovo ThinkPad X1 Extreme Gen 4 - MX-23
FYI: mx "test" repo is not the same thing as debian testing repo.
Live system help document: https://mxlinux.org/wiki/help-antix-live-usb-system/

User avatar
fehlix
Developer
Posts: 12883
Joined: Wed Apr 11, 2018 5:09 pm

Re: Prevent Autostart of Discover?

#7 Post by fehlix »

AVLinux wrote: Mon Aug 12, 2024 5:44 pm Actually this is one of the lines in the original launcher:

Code: Select all

X-KDE-autostart-phase=1
I don't know much about KDE Plasma but this looks like it would override other settings. It appears that disabling Discover is not really what Plasma 'wants' you to do in any standard graphical way. I'm not sure if I want to achieve this with brute force, I was assuming I had just missed some obvious setting since I'm so new to Plasma..
You spotted rightly, there is no obviuos way to disable discover autostart.
If they would have NoDisplay line removed or set to false, you would
find an entry within autostart. But you can only remove the entry, and with removed entry
it will no longer show to allow to enabled again. So they may have missed
to implement to toggle on/off an autostart entry.
And the system wide setting takes over to autostart.
Now you can either do the skel-way or commandline way,
or enhance Kde-Plasma by writing an autostart-toggle GUI for discover.
How sounds that?

User avatar
richb
Administrator
Posts: 10995
Joined: Wed Jul 12, 2006 2:17 pm

Re: Prevent Autostart of Discover?

#8 Post by richb »

This may not be exactly what you want but as I indicated in another topic:
viewtopic.php?p=786619#p786619

You May still get a notification but the Discover icon will not show in System tray. MXPI will show an update is available and can be used to install it (them).
This way I can just ignore Discover.
Forum Rules
Guide - How to Ask for Help

richb Administrator
System: MX 23 KDE
AMD A8 7600 FM2+ CPU R7 Graphics, 16 GIG Mem. Three Samsung EVO SSD's 250 GB

User avatar
siamhie
Global Moderator
Posts: 3732
Joined: Fri Aug 20, 2021 5:45 pm

Re: Prevent Autostart of Discover?

#9 Post by siamhie »

richb wrote: Mon Aug 12, 2024 6:33 pm This may not be exactly what you want but as I indicated in another topic:
viewtopic.php?p=786619#p786619

You May still get a notification but the Discover icon will not show in System tray. MXPI will show an update is available and can be used to install it (them).
This way I can just ignore Discover.

Link gives me an error. "You are not authorised to read this forum."
This is my Fluxbox . There are many others like it, but this one is mine. My Fluxbox is my best friend. It is my life.
I must master it as I must master my life. Without me, my Fluxbox is useless. Without my Fluxbox, I am useless.

User avatar
AVLinux
Posts: 3162
Joined: Wed Jul 15, 2020 1:15 am

Re: Prevent Autostart of Discover?

#10 Post by AVLinux »

@richb

Yes, I got the same error as @siamhie

Another wrinkle, in further Google adventures I also discovered that Plasma allows you to edit the Systray Entries, I'm not sure if this is an effective solution or not but it is another method of controlling what appears in the Systray:
Screenshot_20240812_190801.png
Screenshot_20240812_191220.png
You do not have the required permissions to view the files attached to this post.
Last edited by AVLinux on Mon Aug 12, 2024 7:15 pm, edited 1 time in total.

Post Reply

Return to “MX KDE Official Release”