From: Arnout E. <ar...@bz...> - 2015-09-03 14:17:40
|
I don't think there's a 'standard' way to do that. http://raboof.github.io/notion/tour/#specifying-that-a-certain-program-should-always-be-in-a-certain-frame might be of interest to you, though it solves a different problem. I do think it would be interesting to be able to do this (don't worry, I won't make it default behaviour :) ). Let's see what would be needed: - when an application is started from the notion prompt, remember: -- the pid of the spawned process -- the workspace (or even frame) on which the prompt was shown - when the application maps a window -- put it on the right workspace Now to put the window on the right workspace, we'll have to know the PID of the application that spawned the PID, and go up the process hierarchy until we find the pid of the spawned process saved above. 'Finding the PID of the process mapping the window' might also be tricky. There is the _NET_WM_PID property - is that accessible already when the window is mapped, or is that added later? And (how) will requesting the _NET_WM_PID property affect performance? For applications started e.g. from a terminal, we'd have to find the window on which the terminal was mapped, and then open the new window on the same workspace where that window is. This is even harder, as that PID could have multiple windows open, and those windows could be mapped on multiple workspaces. But for the simple case 'this PID is associated with windows on just one workspace', it could work. I suppose we should monitor this by keeping track of changes to _NET_WM_PID, too? Kind regards, Arnout On Wed, Jul 1, 2015 at 11:12 AM, Alexey Khmara <ale...@gm...> wrote: > I often start some application (using Notion command line) and then switch > to another workspace. Then window of this application appears in workspace > I switched to. Is there any way to force it to open where it was started? > > -- > With best regards > Alex Khmara > > > ------------------------------------------------------------------------------ > Don't Limit Your Business. Reach for the Cloud. > GigeNET's Cloud Solutions provide you with the tools and support that > you need to offload your IT needs and focus on growing your business. > Configured For All Businesses. Start Your Cloud Today. > https://www.gigenetcloud.com/ > _______________________________________________ > Notion-general mailing list > Not...@li... > https://lists.sourceforge.net/lists/listinfo/notion-general > > |