LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-11-2016, 05:28 AM   #1
vincent3302
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Rep: Reputation: Disabled
How to use custom configuration file togheter with autostart script in openbox?


I'm trying to use openbox with an autostart script as well as a seperate copy of rc.xml (this is to be able to have multiple configurations on the same computer, but that is not relevant). Let's say this file is called custom-rc.xml. How do I make openbox use that one instead of rc.xml? By doing some browsing through my filesystem I found that the script "openbox-session" contained this code:

exec /usr/bin/openbox --startup "/usr/lib/x86_64-linux-gnu/openbox-autostart OPENBOX" "$@"

I also found the script "openbox-lxde" (I have lxde installed), and it contained this:

exec openbox --config-file $XDG_CONFIG_HOME/openbox/lxde-rc.xml $@

Is there a way to combine these operations when running openbox? This would allow me to make a script that launches openbox with an autostart script and my own configuration file.

Last edited by vincent3302; 06-11-2016 at 05:29 AM. Reason: Punctuation
 
Old 06-12-2016, 12:25 PM   #2
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 18,380
Blog Entries: 12

Rep: Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618
exactly.
you have to find out where openbox is started (on my system, ~/.xinitrc)
and start it like this:
Code:
exec openbox --startup ~/.config/openbox/autostart --config-file ~/.config/openbox/custom-rc.xml
note that you do NOT want to use "exec openbox-session"
 
1 members found this post helpful.
Old 06-12-2016, 02:18 PM   #3
vincent3302
LQ Newbie
 
Registered: Jun 2016
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ondoho View Post
exactly.
you have to find out where openbox is started (on my system, ~/.xinitrc)
and start it like this:
Code:
exec openbox --startup ~/.config/openbox/autostart --config-file ~/.config/openbox/custom-rc.xml
note that you do NOT want to use "exec openbox-session"
Thanks, this seems to work.
 
Old 06-16-2016, 12:09 AM   #4
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 18,380
Blog Entries: 12

Rep: Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618Reputation: 5618
good.
please mark this thread [SOLVED] (under Thread Tools).
 
  


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
openbox is ignoring my autostart script. KYJazzyJeff Linux - General 14 12-19-2016 05:12 AM
openbox autostart not working in 14.1 slackware BW-userx Slackware 2 06-12-2015 02:13 PM
[SOLVED] "Permission denied" when Openbox tries to execute autostart.sh in ~/.config/openbox alarazr Linux - Software 4 10-04-2012 04:50 PM
Openbox autostart.sh and setting alias on openbox start Jelloir Linux - Desktop 1 07-03-2011 04:56 AM
[openbox] My autostart.sh file is not restoring things Removed44 Linux - Newbie 4 06-14-2010 10:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:10 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