LinuxQuestions.org
Help answer threads with 0 replies.
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 12-23-2002, 06:04 PM   #1
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Rep: Reputation: 15
Anyway to start program in different desktop?


Is there any command to start a program in a specific desktop? Say I'm in desktop 1 and I want to start something in desktop 3, anyway to do this without switching to desktop 3? Im using fluxbox if that matters.
 
Old 12-23-2002, 06:57 PM   #2
reader
Member
 
Registered: Apr 2001
Location: Gulf of Biscay
Posts: 32

Rep: Reputation: 15
Hello ubien:
Try:
Code:
kstart --desktop 4 kwrite
Bye
 
Old 12-23-2002, 08:18 PM   #3
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Original Poster
Rep: Reputation: 15
hmmm, doesn't seem to work for me. It starts the program in the same desktop that I'm in. Maybe that only works in KDE? Using fluxbox here.
 
Old 12-23-2002, 09:20 PM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Hi, I decided to try to track this down for you, if anything is going to help, I think it'll be this thread:
http://www.linuxquestions.org/questi...threadid=29287

Good luck
 
Old 12-23-2002, 09:34 PM   #5
Null
Member
 
Registered: Dec 2002
Distribution: Debian Woody SID
Posts: 52

Rep: Reputation: 15
You enjoy this way too much MasterC
 
Old 12-23-2002, 09:37 PM   #6
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Yes, yes I do. I am supposed to be at the mall buying presents since I waited til the last minute, but I just can't close my browser down long enough to leave LQ I even come here on my lunch breaks, I sure wish I had a local chapter for LQ Addicts

Cool
 
Old 12-24-2002, 01:16 AM   #7
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Original Poster
Rep: Reputation: 15
ummm, I must be missing something. Don't see how other thread helps.
 
Old 12-24-2002, 03:12 AM   #8
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Well, I believe xhost is what might help. Let's say you are working on desktop 1 (F7), and you want to be able to open <whatever X app> in desktop 3 (F9). So then you have user A (We'll call em Tom) and user B (Called Sam). Tom's on 1, and Sam's on 3.

So now you want to open up a program from typing into an xterm in Tom's desktop and have it open up in Sam's.

So, I think by using xhost (man xhost) Sam can allow Tom to send things to him:
xhost +Tom

Now Tom has to set the environment to Sam's X (F9):
setenv DISPLAY -- :2

Although I am not too sure if any of this will work, I am really unsure about the last part.

Anyway, with any luck at this point you could then type:
kwrite
and it would open up kwrite on Sam's desktop.

For a single user system, assuming both of the X's were started with the same user (example:
Tom runs: startx
Then to open another X session:
startx -- :1
And another:
startx -- :2

And so on. Then you could probably simply skiip the xhost part and setenv would set where you want this program sent to (set environment I believe is what setenv stands for).

Cool
 
Old 12-24-2002, 03:18 AM   #9
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
export DISPLAY=localhost:0.0

Ok, so to test it out I tried the setenv, but no luck. HOWEVER! The export one did (thanks Moses, yet again )

I had MasterC open up regular startx:
startx
And then another on F9:
startx -- :2

Then switched to F3 and typed:
export DISPLAY=:2

And typed kwrite, and kwrite opened up in F9

If any of this doesn't make sense to you, or my sorry example sucks, I will be happy to further clarify it for you. Thanks for inspiring me to find this out, it's a neat little trick

Cool
 
Old 12-24-2002, 03:42 AM   #10
reader
Member
 
Registered: Apr 2001
Location: Gulf of Biscay
Posts: 32

Rep: Reputation: 15
Yes, but I think that ubien want to switch between desktops, not between different xservers running. With startx we start others xservers, not change between desktops: Ctrl+F1 + .. + Ctrl-Fn in KDE (I don't know how with fluxbox).

reader
 
Old 12-24-2002, 03:45 AM   #11
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu
Posts: 12,612

Rep: Reputation: 68
Oooooh, I think I am seeing what you mean, and I have NO idea how to do something like that in Flux. I run Flux too, but I don't usually have the desire to do that. I simply switch desktops using my scroll on my mouse, then run the program I want to run.

Ahh, Ok, well thanks for clarifying that, it gives me something to search on tomorrow evening

Cool
 
Old 12-24-2002, 11:15 AM   #12
ubien
Member
 
Registered: Oct 2002
Distribution: RH 8.0 and fluxbox
Posts: 122

Original Poster
Rep: Reputation: 15
Yea reader has it right, only 1 instance of X running. I've asked around other places about this and no one had an idea of how to do this. Maybe there isn't a way right now, I think I'll post a feature request for it @ fluxbox's project page.
 
Old 02-24-2003, 07:31 PM   #13
fuxxy
LQ Newbie
 
Registered: Feb 2003
Distribution: Slack, Gentoo
Posts: 1

Rep: Reputation: 0
I was just curious if there was any update on this subject. I would like to do this myself, and have yet to find anything conclusive..
 
  


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
How do I automatically start a program at start up? victordh Linux - General 7 10-27-2013 07:02 AM
How to start korganiser and reminger agent whenever i start the x deskTop seastar Linux - Software 5 08-15-2004 11:29 PM
one desktop program opens another aussielinuxuser Linux - Newbie 1 05-25-2004 04:44 PM
how to startup a program in a certain desktop jorgedf Linux - General 1 04-08-2004 11:34 AM
open program in another desktop Balkman Linux - Newbie 1 03-08-2004 06:16 PM

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

All times are GMT -5. The time now is 05:36 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration