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 - 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 10-23-2013, 11:12 PM   #1
Beanz239
LQ Newbie
 
Registered: Feb 2009
Location: Phoenix, AZ
Distribution: Linux Mint
Posts: 28

Rep: Reputation: 0
Temporarily Use Desktop for One Application


I've been using Arch for the past couple days now and I really like using the terminal, something has been annoying me. Let's say I want to run a web browser or Steam. Here's what I have to use:

startx
Open my program (using Openbox here)
Use my program
Close my program
Exit Openbox

Now I'm back to my command line.
Is there any way to tell Linux that when I run an X application, I just want it to run Openbox and then once I close the program, it immediately drops me to a shell prompt?

Either that or switch back and forth between a terminal tty and GUI tty for even faster program switching?
 
Old 10-24-2013, 01:25 AM   #2
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I usually do that using Ctrl+Alt+F1...F7 or do you want soemthing different?
 
Old 10-24-2013, 03:10 AM   #3
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
I have some ideas here, but I don't have time to elaborate on them now.
In short, however, I would set up a shell script and use alias to invoke that script instead of the application I want to launch. This shell script would then set up a secondary temporary script in the user's home directory that would be called from ~/.config/openbox/autostart before calling startx.

After openbox is exited, the original script should then delete the temporary script before exiting.
 
Old 10-24-2013, 05:42 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,978

Rep: Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624Reputation: 3624
Wonder if xinit would do it?

To get full screen a prior post. https://www.linuxquestions.org/quest...-xinit-668622/

Last edited by jefro; 10-24-2013 at 05:44 PM.
 
Old 10-25-2013, 01:11 AM   #5
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by jefro View Post
Wonder if xinit would do it?

To get full screen a prior post. https://www.linuxquestions.org/quest...-xinit-668622/
Well, startx calls xinit. Now I'm thinking that it may be possible to adapt startx to accept the filename of the gui app the OP wants to run. That way typing 'startx firefox' would run firefox and 'startx thunar' would run the Thunar file manager etc.

The problem here is that you'd be editing scripts that are usually fairly standardised for any given distro. Any problems or errors in these scripts could leave the system almost unusable and no one else would be able to help much. (the user would be on their own)

That's why I'd create my own scripts that call these system scripts instead. worst case scenario, delete my scripts and try again.

On the other hand, I use openbox and use Guake as my terminal emulator, which I toggle on and off with the 'f12' key.

Last edited by qlue; 10-25-2013 at 01:13 AM. Reason: better link
 
  


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
LXer: Unity Desktop Smart Scopes Delayed Temporarily LXer Syndicated Linux News 0 05-01-2013 10:20 AM
LXer: Conky-like Desktop Info Application With Html Support (gtk-desktop-info) [Ubunt LXer Syndicated Linux News 0 05-01-2009 11:50 PM
how to make Windows laptop temporarily act as dual monitor for my Linux desktop? snr8fl3 Linux - Desktop 2 04-15-2009 06:44 AM
a certain application follows desktop? doublefailure Linux - General 3 03-24-2002 11:01 PM

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

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