Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add an option to disable dragora-updater autostart #87

Open
ycollet opened this issue Jan 10, 2018 · 15 comments
Open

add an option to disable dragora-updater autostart #87

ycollet opened this issue Jan 10, 2018 · 15 comments

Comments

@ycollet
Copy link

ycollet commented Jan 10, 2018

dragora autostart is only possible via removing:
/etc/xdg/autostart/org.mageia.dnfdragora-updater.desktop

Add a user option which allows to disable dragora autostart ...

@anaselli
Copy link
Collaborator

Just out of curiosity, is there a technical reason why you don't want to be informed on updates? I seem that most desktops (not all) have a notifier for that...

@ycollet
Copy link
Author

ycollet commented Jan 10, 2018 via email

@Conan-Kudo
Copy link
Member

Why not uninstall the updater then? You don't need it in that case.

@Nokia808
Copy link

On Fedora Cinnamon 26, there is already such option but not from dnfdragora interface, but from:

system setting, Startup Application, then there is "dnfdragora-updater"

Best.

@anaselli
Copy link
Collaborator

anaselli commented Jan 17, 2018

what @Conan-Kudo tried to say is that there is no needs to have updater installed, if you are not meant to use it for notifications. Despite of the distro choice you can easily remove it, run your preferred gui rpm frontend (e.g dnfdragora :D) and uncheck dnfdragora-updater. Later, if you want to see if there are updates, just select "to update" from dnfdragora related list box and you are done.

@teseu
Copy link

teseu commented Nov 21, 2019

the autostart file can be copied to the user profile (~/.config/autostart) and once there, just include the command

Hidden=true

as one more line and it should be disable.

@maxborowsky
Copy link

Disabling an updater autostart can be useful if the program is used to find out the name of an application package. The name of the package can be very different from the name of the application, for example, the package is called totem, and the application - Videos, and it is impossible to learn this without using Google, but using only the system tools - Gnome Software or terminal. It is convenient to run dnfdragora and not wait for the program to check for updates in repositories, but to immediately view a list of installed packages and their descriptions.

@Conan-Kudo
Copy link
Member

I suppose in theory we could make it read the user's config and make it exit and do nothing if user sets to disable? @anaselli does that make sense as a thing we could do?

@anaselli
Copy link
Collaborator

anaselli commented May 6, 2020

All is possible, we just need to coding it :)
But sorry i can't get why updater should prevent dnfdragora to run. Bugs apart, updater should check for update every update_interval and that is monent in which they have problems in running together but our changes to run dnfdragora aynch should avoid crashes and wait for the check finishing. But that shouldn't be that long as far as i know at least in the case in which metadata are invalidated or by time elapsed or by system. At that point though the waiting time should be the same either using dnfdragora alone or updater.

Without looking at the code i could think that to disable the check we could consider (and manage) an update_interval value <=0 for instance such as an infinite time-out management. But which is the meaning of having updater running just to be used as menu?

@anaselli anaselli changed the title add an option to disable dragora autostart add an option to disable dragora-updater autostart May 30, 2020
@J-Dunn
Copy link

J-Dunn commented Apr 22, 2021

I would also like a simple way to disable update checking. I don't want an annoying and distracting popup on my screen all the time. I manage dnf update manually, when I wish to see it happen.

Maybe what I'm looking for is :

systemctl disable dnfdaemon

I'm sure dnfdragona is fine for those who want a gui front end.

@anaselli
Copy link
Collaborator

If you don't want updater atm the workaround is to remove it from installed packages. Stopping dnfdaemon wold not prevent updater to try asking dnfdaemon new updates, and wold make dnfdragora giving errors on starting.

@anaselli
Copy link
Collaborator

Just for curiosity how long the updater time to check last? Should not be so frequent if not for testing purposes

@J-Dunn
Copy link

J-Dunn commented Apr 22, 2021

IIRC Fedora default is 760 seconds! PITA. There is a dnf.conf line to set metadata-expire so work out how many seconds there are in a week ;) Is that what the notifier is setting or does it have its own delay internval?

In fact I want it to check repos when I ask it to.

Stopping dnfdaemon wold not prevent updater to try asking dnfdaemon new updates

So what starts update notifier ? Is it a service, a crond or what?

@anaselli
Copy link
Collaborator

Autostart... line 95 of cmakelists.txt but updater should be into a dedicated package iirc

@J-Dunn
Copy link

J-Dunn commented Apr 22, 2021

Thanks, I was just curious about what part of the system was causing this to be autostarted since I don't see it in boot services nor in the lxsession list of autostart services.

You are correct there are separate packages for dragora and dragora-updater. dnf remove tidies it all up nicely. Many thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants