LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi
User Name
Password
Bodhi This forum is for the discussion of Bodhi Linux.

Notices


Reply
  Search this Thread
Old 07-06-2020, 10:38 PM   #1
questionsBot
Member
 
Registered: Jun 2020
Posts: 94

Rep: Reputation: Disabled
Dose the menu item system/reboot and Shutdown have a .desktop file I can edit?


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?
 
Old 07-07-2020, 12:27 AM   #2
enigma9o7
Member
 
Registered: Jul 2018
Location: Silicon Valley
Distribution: Bodhi 5 (Ubuntu 18.04)
Posts: 518

Rep: Reputation: 192Reputation: 192
Pretty sure shutdown from bodhi executes shutdown, reboot executes reboot. No desktop files involved, although you certainly could make them, and have them call a script that does whatever you want before shutdown now.

What's actually happening? I thought shutdown gives an app like 2 minutes to shutdown before it kills it... I guess if yer app isn't ever closing when told and you know its safe to kill you could do as I just typed and make your script kill it first.
 
1 members found this post helpful.
Old 07-07-2020, 04:13 AM   #3
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 14,904
Blog Entries: 9

Rep: Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208Reputation: 4208
Quote:
Originally Posted by questionsBot View Post
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.
This really needs to be looked at closer.
PLease clarify.

edit: see here.

BTW, it's does, not dose (seen you misspelling that a few times now).

Last edited by ondoho; 07-07-2020 at 04:16 AM.
 
Old 07-07-2020, 06:31 PM   #4
questionsBot
Member
 
Registered: Jun 2020
Posts: 94

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
This really needs to be looked at closer.
PLease clarify.

edit: see here.
It is apparently a known bug in cryptomator at the mo. It is supposed to close the vaults on shutdown of the app, but unless you manually shutdown it dose not happen. I think they are going to try and fix it. It dose bug me but I am pretty sure that I can live with it and wait for an update. Even so, it would be cool to know if this is possible.

Just to refresh...

I am trying to replace the MENU item in BodHi for "shutdown" and "reboot" to run a script instead of doing w/e it is normally doing.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gnome 3.28.3 menu item dissapears from the system menu bodisha Linux - Newbie 0 10-06-2019 07:44 PM
Why menu or item on right click can't configed by menu.xml? luofeiyu Debian 3 07-24-2017 12:45 PM
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-25-2010 11:52 PM
mozilla xpm kmenu item desktop item cjae Linux - Newbie 3 04-06-2005 07:11 AM
Can't edit item in Main Menu RockyZ Fedora 6 06-11-2004 09:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Bodhi

All times are GMT -5. The time now is 08:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration