LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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-04-2020, 01:24 AM   #1
questionsBot
Member
 
Registered: Jun 2020
Posts: 104

Rep: Reputation: Disabled
How can I delay the auto-startup of an application on boot in BodHi?


In BodHi I can add apps to the "startup applications" in "settings/apps/startup applications"

The problem is that one of the apps I use starts so quickly something it depends on to boot correctly dose not have time to load. Basically if I just close it and reopen it then everything works fine.

I have already placed the app in question as the last app to load in the order section of the "startup applications" window

So I need to just add a small delay in the launching of this application.. but I can not see a way to do that in the startup application menus.

TL;DR : In BodHi, how can I delay an application from starting for a period of time as the OS boots?

thanks

Last edited by questionsBot; 07-04-2020 at 01:25 AM.
 
Old 07-04-2020, 04:48 AM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Moksha's autostart files might have that built in, IDK.
But you can always start a wrapper script instead:
Code:
/bin/sh
delay=5 # seconds by default
sleep $delay
exec whatever
 
Old 07-04-2020, 06:32 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
systemd timers is a good fit, but the suggestion above has a lot less demanding learning curve.
 
Old 07-04-2020, 08:52 PM   #4
cordx
Member
 
Registered: Oct 2018
Location: texas
Distribution: bodhi 5.1.0
Posts: 797

Rep: Reputation: 184Reputation: 184
maybe an @reboot cron job with some sleep added to it?
 
Old 07-05-2020, 05:47 AM   #5
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Moksha should support the "X-GNOME-Autostart-Delay" parameter in desktop files, I know because i added this feature for bodhi 5.0. We use it in our network manager (nm-applet) because for some users it was starting too early couldn't display or work and died. So these users booted up without a network icon.

Anyways add the line:

X-GNOME-Autostart-Delay=NN
(where "NN" is the number of seconds you want to delay the application startup by)=NN

where "NN" is the number of seconds you want to delay the application startup by to the needed desktop file.
 
2 members found this post helpful.
Old 07-06-2020, 09:33 PM   #6
questionsBot
Member
 
Registered: Jun 2020
Posts: 104

Original Poster
Rep: Reputation: Disabled
I found a solution to this...

if you add X-GNOME-Autostart-Delay=60 to the .desktop file it will delay the launch.
  • /usr/share/applications
  • In it you will find .desktop files that are the shortcuts you find in the menu
  • edit the shortcut for the app you want to delay, or copy an existing one and edit it to load any app or script you want.
  • add the line "X-GNOME-Autostart-Delay=60 to the file, replacing 60 with how long you want the launch to delay.
  • Now add the "app" to the "startup apps" using the bodHi settings. menu/click on settings(not go deeper into setting menu)/Apps/Startup Applications


< - EDIT - > um.... somehow I missed "rbtylee" response above, which literally says the same thing.. lol.. thanks rbtylee! I'm sorry I missed it.

Last edited by questionsBot; 07-06-2020 at 09:35 PM.
 
Old 07-08-2020, 09:36 AM   #7
rbtylee
Bodhi Developer
 
Registered: Jun 2018
Location: Ladson, SC US
Distribution: Bodhi
Posts: 454

Rep: Reputation: 437Reputation: 437Reputation: 437Reputation: 437Reputation: 437
Quote:
Originally Posted by questionsBot View Post
I found a solution to this...
...

um.... somehow I missed "rbtylee" response above, which literally says the same thing.. lol.. thanks rbtylee! I'm sorry I missed it.
NP on missing my reply. I am glad ya solved it. Sometimes it is better to solve things on your own. It helps develop search engine skills and builds confidence
 
3 members found this post helpful.
  


Reply



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
Bodhi does not recognize the NFTS partitioned drive. Trying to use virtual box to run windows in bodhi on my dual boot computer a minimal virus Linux - Newbie 4 11-24-2018 07:02 AM
LXer: Ubuntu 18.04-Based Bodhi Linux 5.0 Enters Beta with Bodhi Builder Improvements LXer Syndicated Linux News 0 05-30-2018 11:12 AM
Delay startup of application after boot eco_bach Linux - Newbie 2 12-14-2016 08:03 AM
LXer: Bodhi Linux 2.4.0 Released, One Year Left Until Bodhi 3.0.0 LXer Syndicated Linux News 0 09-14-2013 05:21 PM
why does eth01 fail on startup and delay startup? infantpenguin Linux - Newbie 3 01-28-2005 10:45 AM

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

All times are GMT -5. The time now is 09:55 PM.

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