Article 55EQN Dose the menu item system/reboot and Shutdown have a .desktop file I can edit?

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?latest?d=yIl2AUoC8zA latest?i=owxhQP4-Ru4:y3ZJ2-Ll0TI:F7zBnMy latest?i=owxhQP4-Ru4:y3ZJ2-Ll0TI:V_sGLiP latest?d=qj6IDK7rITs latest?i=owxhQP4-Ru4:y3ZJ2-Ll0TI:gIN9vFwowxhQP4-Ru4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments