LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 02-04-2009, 08:26 AM   #1
drchuck
Member
 
Registered: May 2007
Posts: 61

Rep: Reputation: 17
can I move a running application from one X session to another?


I frequently access my home computer throughout the day in two ways: either locally, or remotely using nxserver/nxclient. As one user, I have two concurrent X-windows sessions running, possibly with different applications running in each. Is it possible to move a running application from one session to the other? That is, I want all the active windows related to the app to disappear from one desktop, and open on the other.

thanks,
drC
 
Old 02-05-2009, 05:46 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,395
Blog Entries: 2

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
Until someone proves me wrong, I will have to say it is not possible. Looking under the hood a little bit reveals the reason. Your applications are X clients. As such, they have TCP connections to their respective X servers, and each X server is running on a different host. Even if the TCP connection could somehow be seamlessly broken and transferred to another process on another host, there is still the matter of the X server's 'state'. That is, the X server remembers things about the condition of the windows an their content, as part of its function. This would be things like the size, decoration, tiling and overlap of windows, and of course the overall content in general. For there to be some kind of hand-off between X servers, all of this information would have to be transferred from one X server to another, even across hosts. I am certain that there is no such provision or service provided by the X protocol.
What you are asking for is something that I'm sure many of us have wished for. It would be nice if some industrious person or group could come up with an extension to X that would allow such a procedure.
One thing that is possible, which is somewhat akin to your wish, and may address part of your requirement, is the 'sharing' of text-based applications across multiple hosts. This can be done with the GNU screen utility, which is probably already installed on your distro. You can run screen, and within screen start up a text-mode application, or just a shell. You can then login from elsewhere, and from a shell, re-connect to the existing screen session. You can even have multiple users connected concurrently to a single screen session, if you configure screen appropriately. It is beyond the scope of a LQ thread to explain all of the details, and sadly, the usual recommendation to 'man screen' will result in a bewildering array of commands and switches explained in confusing language. The good news is that the basic functionality usually works fairly simply and right out of the box.
--- rod.
 
Old 02-05-2009, 05:52 PM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,036

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
The only way I can imagine that this will work is if you run your x clients on a remote server via vpn or something like that. I am no expert in that kind of things so you'll have to investigate yourself. I mostly use text apps, and the few graphical apps that I use are not critical and can be closed and restarted at any time without problem.
 
Old 01-24-2010, 08:47 PM   #4
lolrus
LQ Newbie
 
Registered: Jan 2010
Location: Winchester, UK
Distribution: Ubuntu
Posts: 2

Rep: Reputation: 0
If anyone's still looking for an answer...

... I found this thread, and subsequently found the solution that met my needs in xpra.

I'm running it on 64-bit Ubuntu 9.10 and all seems good. From my (brief) initial efforts it appears that one needs to point an application at the virtual display (xpra concept, AFAICT) when starting it, but after that, I was able to leave a GUI app running, quit the ssh session from my Mac, then log in again and re-acquire the app's GUI again.
 
Old 11-17-2010, 06:02 AM   #5
opusvl
LQ Newbie
 
Registered: Nov 2010
Location: Rugby, UK
Distribution: Debian (Squeeze)
Posts: 4

Rep: Reputation: 0
And there is a nice helper applet

xpra has a nice GUI helper app which makes it easy to use called shifter. Packages available for most O/S. I have added a note here:

http://www.linuxquestions.org/questi...05#post4161705
 
  


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
Loading an application when starting a new session robux Linux - Kernel 2 10-16-2007 02:20 AM
How to move a running window to a different DISPLAY? mtford Linux - Desktop 2 03-13-2007 05:32 PM
specify save location for application session dwpev Linux - Software 1 01-02-2007 02:45 PM
Move application from one distro to another kvalvik Linux - Software 2 07-08-2005 06:45 PM
Dual head - move application between screens rottie Linux - Software 5 12-12-2004 01:40 PM


All times are GMT -5. The time now is 05:34 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration