Stop gnome-software running in background

I took a look on my Zorin 17 Lite system. There, gnome-software was not running in the background all the time (it was not shown in the system monitor when I checked it for gnome-software).
It is in the autostart directory, but not always running in background. Why? Is that different from gnome?

I see that there is a line in the org.gnome.Software.desktop file
OnlyShowIn=GNOME;Unity;
If I'm right, that means, that gnome-software doesn't run in Zorin lite as an autostart program, but everything works fine in Zorin lite without that background process.
I'm not sure if the function at session and startup to load gnome services at startup (which is enabled) overwrites that, but I don't see gnome-software in the system monitor after start in Zorin Lite.
In the list of autostart apps, gnome-software is disabled by default (in Zorin 18 Lite, there is no .desktop entry for gnome-software in the autostart at all).

Can we please get back to my question, or should I start a new thread? I haven't received any helpful answers yet on how to stop the background activities of gnome-software in Zorin 18 Core without completely removing/disabling it, so that I can use gnome-software when I want it.

I have not much RAM and don't want waste it on a program that I rarely use.

I think, I will test to remove gnome-software from autostart in Zorin Core, too, to see what will happen.

I do not understand this entire statement.
To me, it sounds as though the many answers you received did not sit to your liking, so you are requesting that these be shunted elsewhere so you may seek answers that you do like.

If you truly want tips on trying to disable Gnome features, reading actual article supplied guides will give you those.
Here, you will find discussion, among which will include the caveats that these guides may be outdated or incorrect or less effective.
It is not a reasonable request that we provide that for you, then stay silent about the caveats.

Many of the answers are off-topic. The question wasn't about how to remove gnome-software because I want to use it sometimes. Concentrate on what is asked.

They are on topic, Forpli.

You asked about how to reduce the actions of an integrated application.
By Necessity, given the nature of the question, that must include removal as an option due to the very fact that integration disallows certain dsiabling actions.

It can include others informing you as to the consequence of integration.

Let me give you perspective:
User: I would like to do such and such impossible task because it is what I want.

Helper: Well, you cannot. That is not possible due to how the structure is implemented. I suppose that you could bypass it by using the following method.

User: I did not ask about that bypass method. Stick to what I asked. You are off topic.

The only reasonable response anyone can greet that attitude with is to throw their hands in the air and walk away.

1 Like

Why is it possible on Zorin lite but not on Zorin Core? They both have gnome-software with an integrated update function. And in Zorin lite it is not autostarted.

This is actually true of Nautilus, as well. The version of Nautilus you can download and install on XFCE or Cinnamon is not the same package as the one included with Gnome Desktop.
It is nearly the same. Not fully.

Gnome Software that is installed on another desktop is the modular version.

This is where using Gnome (A heavy desktop environment. Plasma is heavy, too) on hardware such as yours becomes your consequential decision. You can prefer it, you can choose it over other lighter options, but do so aware that it is a consequential decision.
It has a cost.

When Gnome Shell is running, it is instructed to rely on its integrated processes; this includes calls to Evolution, calls to Gnome Software - which is a dependency for Gnome Software Updater.

Because of that dependency, Gnome Software is running in the background.

That is what you want to reduce.
So how do we? This is where we start running into problems that could require recompiling source code for Gnome in order to solve.
Because since you are clear about your views on Security patches, and Kernel patches, disabling the entire updater is certainly harmful.
Setting a dependency to off, disables multiple calls...
Masking them can cause conflicts due to integration, since you can get a memory leak from constantly running and closing calls.

So you might see an answer that simplifies this:
It is integrated and disabling that is a lot of trouble.

Gnome Software on Lite (XFCE) receives no Shell Calls, is not a dependency for the desktop, does not manage the updater... (Updater on lite is not integrated.)

If I knew a good and reliable method - I would have posted it.
At this point, others may suggest simpler alternatives: These are alternative Consequential Decisions.
If you choose to reject those - and you can - that leaves you retaining ownership of the first consequential decision.

3 Likes

This is my personal usage in Zorin, you can follow if you wish.

One of my post installation setup is to disable Software from startup as I use it very rarely and then assign a keyboard shortcut to close/kill it from background when opened. So instead of clicking the window button to close it (which actually just puts it in background), I just use the keybinding to close it completely. Works pretty well for me.

4 Likes

Thanks for your explanation. Now I understand it a little better.
Still, I’ll probably have to gain some experience on my own so I can better assess what works and what doesn’t, and what the consequences of certain actions are.
My approach certainly isn’t suitable for everyone. I have removed some parts of evolution, flatpak and snap from my system and update manually.

I had already removed Update Notifier from autostart, and now I’ve also removed gnome-software from autostart (by copying both desktop files to my user’s autostart directory at ~/.config/autostart and adding Hidden=true).
Even so, gnome-software kept running in the background.
I’ve now also copied the desktop file for gnome-software from /usr/share/applications to ~/.local/share/applications and set DBusActivatable=false.
I'll watch what will happen.
I can open gnome-software and launch it, search for updates, install .deb packages with it... At the moment, I think, it has helped. Every time I use it, I quit it afterwards with gnome-software --quit to stop it running in background. Otherwise it stays running in background.

I'm not sure if it is relevant, but I also have disabled at settings > search the search results for gnome-software.

1 Like

@littlekun posted a suggestion that relies on current experience on Zorin OS Core, so hopefully, that will turn the tide.

I have picked Gnome Software apart in both the source code and the applied package - Which means I have seen what is expected of it - this is not necessarily how it works in practice.
I have not used Gnome in along while and now, even shun testing it.

2 Likes

Hi littlekun, thank you very much for your review. Have you noticed any drawbacks as a result (memory leaks, etc.)?

Just as Windows is not GNU/Linux, xfce is not Gnome. :wink:

Do you have any idea why zorin-os-desktop isn't removed when you remove gnome-software from your system? Do you have modified something? Do you have set zorin-os-desktop as manually installed or added a rule to the configuration files at /etc/apt/apt.conf.d? Or had you uninstalled zorin-os-desktop before and then installed it later manually again so that it was treated as manually installed?
I think, If you don't take precautions and use the default Zorin system, the desktop will be removed.

In your video about the removal of gnome

you have used the same command at the beginning
sudo apt-get remove gnome-software
and there was shown in the terminal output that zorin-os-desktop will be removed.

Hm...I'm really at a loss why zorin-os-desktop was not in the list of the packages to be removed in your current video. My assumptions seem to be wrong. I checked it with zorin-os-desktop marked as manually installed (it was already set this way on my system), and it shows up as package to be removed.

My Guess would be that xfce isn't Gnome. In Gnome directly Gnome Software is more integrated as a default App and more binded. In xfce it seems to be more like an installed App like others.

1 Like

I'm trying to figure out how to set it up more effectively so that gnome-software always closes properly when you exit it and doesn't keep running in background (if possible without a custom shortcut, because I forget the shortcuts).

I've noticed:
If you start gnome-software from the terminal and close the terminal with the close button when you're done, gnome-software closes properly and doesn't keep running in the background.
Question: Is that a safe and good exit or is it a hard kill which can break something?
Another option is to press ctrl+c to close the terminal window and with it the gnome-software.
Does this shortcut make the same as the close button?
I'd like to know how I could use the gnome-software --quit command or make something similar in the running terminal window. To me, it sounds softer than a kill or stopping processes abruptly.

I haven't noticed any issues. Everything is working smoothly.

1 Like

Well if you kill it while any ongoing updates/process happening in gnome-software then it could lead to issues. But if there is nothing ongoing then the app is just sitting there & doing nothing, killing is no problem.

Or you could set key bindings to gnome-software --quit and use that instead.

2 Likes

I did a little research. "killall" sounds worse than it is :wink: (when you don't add a -9).

2 Likes

No chance at all :sweat_smile:

1 Like

When I wasn't happy with how Apper was going after I removed gnome-software, I reinstalled it. When I removed gnome-software it said that zorinos-desktop and about 4 other packages were no longer needed and to use autoremove. I new this would brick the vm so I just ignored that. I was surprised that the same message did not come back after the removal.

1 Like

I watched the system the last days and didn't notice abnormalities. So, I think this is a good solution for me. I'll report if I find errors.

1 Like