Dose the menu item system/reboot and Shutdown have a .desktop file I can edit?
by questionsBot from LinuxQuestions.org on (#55EQN)
I have a application running that is causing errors when I reboot or shutdown the computer... as it is not closing correctly. Basically the computer is rebooting before it finishes closing down.
I thought I could edit a .desktop file for reboot and shutdown to run a script rather than whatever it is doing right now and that script will use the command line to shutdown my app correctly, pause and then reboot or poweroff the computer.
I can not seem to find that file.
TL;DR :How can I edit the menu item in system for reboot and shutdown to run a script instead of just shutting or rebooting normally? Also when I type reboot or shutdown in the terminal, is there a way I can make that also run the same script?


I thought I could edit a .desktop file for reboot and shutdown to run a script rather than whatever it is doing right now and that script will use the command line to shutdown my app correctly, pause and then reboot or poweroff the computer.
I can not seem to find that file.
TL;DR :How can I edit the menu item in system for reboot and shutdown to run a script instead of just shutting or rebooting normally? Also when I type reboot or shutdown in the terminal, is there a way I can make that also run the same script?