Red Hat Bugzilla – Bug 1285823
sudo gnome-software keeps running after closing the application window
Last modified: 2015-12-01 19:44:37 EST
Description of problem:
The GNOME Software application launched via sudo with --verbose option from terminal keeps running even after the application window is closed. Screenshot attached.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. sudo gnome-software --verbose
2. close the application window
The application keeps sending the verbose output into terminal
The application exits properly.
In a normal operation, you would never have to run gnome-software as root. We have privilege separation where the UI code can run as the regular user and packagekitd runs with elevated privileges.
Also, normally gnome-software is started together with the user session when logging in and stays resident in the memory all the time. That's also why it never quits after closing the window and just keeps running :)
I didn't expect it to just hide the window on close, I expected it to return the prompt and continue whatever it is doing invisibly in the background, perhaps. I'm not an expert though.
Agreed, this is the intended thing to happen. It's not normal for session programs like this to daemonize.
I'd disagree with you guys. AFAIU the application should normally keep running forever when launched with --gapplication-service argument but it keeps running forever even without this option. I find this a minor bug because normal users always run it with --gapplication-service and hackers are already used to terminating the process with Ctrl+C or simply kill(1). The issue has nothing to do with running as root. So my steps to reproduce are:
1. killall gnome-software # to make sure we start the first instance
3. close the application window
4. (nothing happens, the window is closed but the application keeps running)
The application exits properly unless launched with --gapplication-service argument.