Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have a fairly stock Fedora Core 6 desktop which logs in automatically and starts several apps (Firefox, Evolution, Pidgin). This works great when I use my PC locally. However, I will occasionally SSH to my PC and turn it off remotely via the 'poweroff' command from the command line. Does the 'poweroff' command cause my open desktop apps (like Firefox, Evolution, etc.) to close gracefully, or is this hard on them? I.e. is it better to be in front of the computer and manually close each app or is it ok to let the poweroff process close these apps. I assume that doing a 'shutdown -h now' would have the same affect on these apps as the 'poweroff' command does?
You might get a message about the last session being aborted when you start Firefox, but there shouldn't be any harm done. You could always use "killall -SIGQUIT firefox"; "killall -SIGQUIT firefox-bin"; etc. remotely before powering down the computer.
During "poweroff", a shutdown (kill -9) command is sent to open processes or applications. It should not cause a problem with any of them unless they have "open files" on the system. Apps like Firefox will see it as a forced shutdown (or crash), and may attempt to recover to their previous state when they are next opened. You should not see any adverse effects from this (such as lost data, etc.). The only possible "bad" thing that could happen is if an application is actively writing to disc (i.e., Evolution auto checking mail and downloading an attachment), then you could lose that data.
You might get a message about the last session being aborted when you start Firefox, but there shouldn't be any harm done. You could always use "killall -SIGQUIT firefox"; "killall -SIGQUIT firefox-bin"; etc. remotely before powering down the computer.
So "SISQUIT" is the friendliest way to stop GUI desktop apps from the command line? Based on http://en.wikipedia.org/wiki/SIGQUIT it sounds like this will leave core files. Is there a friendly command line way to stop GUI apps without generating core files?
Does anyone know if using Fedora's built in shutdown button shuts down desktop apps gracefully?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.