Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)? I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
Leslie -- Operating System: Linux Distribution: openSUSE Leap 15.2 x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.10 tde-config: 1.0
Anno domini 2021 Tue, 25 May 03:55:57 -0500 J Leslie Turriff scripsit:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)? I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
hope I get the translation right:
window menu /miniicon -> extended -> special settings for this window (or program) -> check "workspace" and select the one you want it to go.
Nik
Leslie
Operating System: Linux Distribution: openSUSE Leap 15.2 x86_64 Desktop Environment: Trinity Qt: 3.5.0 TDE: R14.0.10 tde-config: 1.0 ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Tuesday 25 May 2021 02:19:08 Dr. Nikolaus Klepp wrote:
Anno domini 2021 Tue, 25 May 03:55:57 -0500
J Leslie Turriff scripsit:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)? I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
hope I get the translation right:
window menu /miniicon -> extended -> special settings for this window (or program) -> check "workspace" and select the one you want it to go.
Nik
At the risk of repeating Nik, here is what I've been doing since KDE3:
#1 (quickie fix) Right-click at the top bar of any open application dialogue; then choose <To Desktop> to shift the application to whatever desktop you want. This choice will not persist, but gets the item moved temporarily to Desktop X.
#2 (permanent) Right-click at top bar of application, then choose <Advanced> / <Special Window Settings>. A new dialogue window will appear. Choose <Geometry>, then click <Desktop>, choose whatever desktop you want. Just to the left of your desktop choices is a menu item which ought to show the default setting of <Do Not Affect>; change this to <Force>, or whatever best suits your needs. (Also, <Remember>, <Apply Intially>, etc., but mostly <Force> is best if you want an application always to open in its own special window.)
For example, all my browsers open in Window 4; Kmail is always in Window 3, KPDF in Window 9, Konqueror in Window 12, all shells/terminals/consoles in Window 11, and so on ... which keeps things better organized in my own little world, rather than just letting everything flop open in whatever window I happen to be. It's pretty annoying if I have 20 docs open, all of the same type, but spread across several different windows and mixed with other kinds of windows.
#3 (a little tip) For some applications, continue on to choose <Advanced> / <Special Window Settings> / <Workarounds>. Here you may find the choices under <Focus stealing prevention> to be useful. Sometimes an application hogs resources, you'll wonder why you can't get things to happen, as you sit there and wait for a minute or two. By clicking <High> or even <Extreme>, you will find that some of these small annoyances cease to bother you.
I hope this is of some help to yourself and others. (I've been doing it like this since 2006 or so.) It's one of those features that seem to be missing in many other DEs, or if the feature exists, it doesn't work so well as in TDE.
Bill
On 2021-05-25 05:09:50 William Morder via tde-users wrote:
On Tuesday 25 May 2021 02:19:08 Dr. Nikolaus Klepp wrote:
Anno domini 2021 Tue, 25 May 03:55:57 -0500
J Leslie Turriff scripsit:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)? I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
hope I get the translation right:
window menu /miniicon -> extended -> special settings for this window (or program) -> check "workspace" and select the one you want it to go.
Nik
At the risk of repeating Nik, here is what I've been doing since KDE3:
#1 (quickie fix) Right-click at the top bar of any open application dialogue; then choose <To Desktop> to shift the application to whatever desktop you want. This choice will not persist, but gets the item moved temporarily to Desktop X.
#2 (permanent) Right-click at top bar of application, then choose <Advanced> / <Special Window Settings>. A new dialogue window will appear. Choose <Geometry>, then click <Desktop>, choose whatever desktop you want. Just to the left of your desktop choices is a menu item which ought to show the default setting of <Do Not Affect>; change this to <Force>, or whatever best suits your needs. (Also, <Remember>, <Apply Intially>, etc., but mostly <Force> is best if you want an application always to open in its own special window.)
For example, all my browsers open in Window 4; Kmail is always in Window 3, KPDF in Window 9, Konqueror in Window 12, all shells/terminals/consoles in Window 11, and so on ... which keeps things better organized in my own little world, rather than just letting everything flop open in whatever window I happen to be. It's pretty annoying if I have 20 docs open, all of the same type, but spread across several different windows and mixed with other kinds of windows.
#3 (a little tip) For some applications, continue on to choose <Advanced> / <Special Window Settings> / <Workarounds>. Here you may find the choices under <Focus stealing prevention> to be useful. Sometimes an application hogs resources, you'll wonder why you can't get things to happen, as you sit there and wait for a minute or two. By clicking <High> or even <Extreme>, you will find that some of these small annoyances cease to bother you.
I hope this is of some help to yourself and others. (I've been doing it like this since 2006 or so.) It's one of those features that seem to be missing in many other DEs, or if the feature exists, it doesn't work so well as in TDE.
Bill
I might also mention that another way to do this is with Control Center => Desktop => Window-Specific Settings, which provides a list of current settings for various windows, and the ability to add/change/remove. (Why would move up/down be useful here?) Now, for the rest of my question, is there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On 2021-05-25 18:07:47 J Leslie Turriff wrote:
Now, for the rest of my question, is there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
| ~ | $ echo kcontrol >kcontrol.dcop;for o in $(dcop kcontrol);do echo;echo $o:;dcop kcontrol $o;done >>kcontrol.dcop | @18:34:33,leslie@pinto rc=0 | ~ | $ grep -i '^$|:$|window|desk' kcontrol.dcop | | qt: | | MainApplication-Interface: | | TDEIO::Scheduler: | | html-widget1: | | kcontrol: | | kcontrol-mainwindow#1: | bool isDesktop() | bool isActiveWindow() | double windowOpacity() | void setWindowOpacity(double windowOpacity) | bool dockWindowsMovable() | void setDockWindowsMovable(bool dockWindowsMovable) | void grabWindowToClipBoard() | void setActiveWindow() | void setActiveWindowFocused() | | moduleIface: | | tdesycoca: | @18:34:37,leslie@pinto rc=0
So it looks like kcontrol, at least, can't help. I don't know where else to search in DCOP.
What I want to do is make a way to get information from TDE in order to manipulate the desktop/location of a window, so that I can restore it to its previous location after logout/login. Ideally, DCOP (or something else?) would provide get() and set() functions for the desktop location of a window.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On Tue, 25 May 2021 18:46:55 -0500 J Leslie Turriff jlturriff@mail.com wrote:
On 2021-05-25 18:07:47 J Leslie Turriff wrote:
Now, for the rest of my question, is there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
I would have thought twin, rather. I mean, it strikes me as a window manager function.
E. Liddell
On Tuesday 25 May 2021 08:14:41 pm E. Liddell wrote:
On Tue, 25 May 2021 18:46:55 -0500
J Leslie Turriff jlturriff@mail.com wrote:
On 2021-05-25 18:07:47 J Leslie Turriff wrote: Now, for the rest of my question, is
there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
I would have thought twin, rather. I mean, it strikes me as a window manager function.
Brute force way to figure this out...
Let your machine sit for about 5 minutes (go to the bathroom, grab a drink, whatever...).
Come back, and change one of the apps to be in a static desktop. Do nothing else!
Then run this on a terminal:
cd /home find {your-user-name} -newermt $(date +%Y-%m-%d -d '1 min ago') -type f
That should tell you which file the change has been saved to. With that you hopefully will be able to create a way to do the other stuff you wanted. Gonna be a kludge, but should work...
HTH, Michael
On 2021-05-25 22:10:37 Michael via tde-users wrote:
On Tuesday 25 May 2021 08:14:41 pm E. Liddell wrote:
On Tue, 25 May 2021 18:46:55 -0500
J Leslie Turriff jlturriff@mail.com wrote:
On 2021-05-25 18:07:47 J Leslie Turriff wrote: Now, for the rest of my question, is
there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
I would have thought twin, rather. I mean, it strikes me as a window manager function.
Brute force way to figure this out...
Let your machine sit for about 5 minutes (go to the bathroom, grab a drink, whatever...).
Come back, and change one of the apps to be in a static desktop. Do nothing else!
Then run this on a terminal:
cd /home find {your-user-name} -newermt $(date +%Y-%m-%d -d '1 min ago') -type f
That should tell you which file the change has been saved to. With that you hopefully will be able to create a way to do the other stuff you wanted. Gonna be a kludge, but should work...
HTH, Michael
That didn't quite work. | ~ | $ find leslie -newermt $(date +%Y-%m-%d -d '1 min ago') -type f | find: ‘leslie’: No such file or directory | @01:33:28,leslie@pinto rc=1
Leslie
On 2021-05-25 22:10:37 Michael via tde-users wrote:
On Tuesday 25 May 2021 08:14:41 pm E. Liddell wrote:
On Tue, 25 May 2021 18:46:55 -0500
J Leslie Turriff jlturriff@mail.com wrote:
On 2021-05-25 18:07:47 J Leslie Turriff wrote: Now, for the rest of my question, is
there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
I would have thought twin, rather. I mean, it strikes me as a window manager function.
Brute force way to figure this out...
Let your machine sit for about 5 minutes (go to the bathroom, grab a drink, whatever...).
Come back, and change one of the apps to be in a static desktop. Do nothing else!
Then run this on a terminal:
cd /home find {your-user-name} -newermt $(date +%Y-%m-%d -d '1 min ago') -type f
That should tell you which file the change has been saved to. With that you hopefully will be able to create a way to do the other stuff you wanted. Gonna be a kludge, but should work...
HTH, Michael
I changed the command to use ~leslie and these turned up at the top of the list: | /home/leslie/.local/share/gvfs-metadata/uuid-c528adb6-160a-47d5-947b-210a5b9c7407-3ae1b940.log | /home/leslie/.local/share/gvfs-metadata/uuid-c528adb6-160a-47d5-947b-210a5b9c7407 | /home/leslie/.local/share/recently-used.xbel | /home/leslie/.trinity/share/config/twinrulesrc | /home/leslie/.trinity/share/config/ksslpolicies | /home/leslie/.trinity/share/config/kdeglobals | /home/leslie/.trinity/share/config/twinrc and in twinrulesrc I found | [20] | Description=Window settings for\s | desktop=4 # <== | desktoprule=2 | maximizevert=true | maximizevertrule=4 | title=X2 Editor Version 2.08.1 # <== | titlematch=1 | types=1 | wmclass=\s | wmclasscomplete=true | wmclassmatch=1 which matches the window that I locked to desktop #4. Nice.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On 2021-05-25 20:14:41 E. Liddell wrote:
On Tue, 25 May 2021 18:46:55 -0500
J Leslie Turriff jlturriff@mail.com wrote:
On 2021-05-25 18:07:47 J Leslie Turriff wrote:
Now, for the rest of my question, is there a way to alter these settings programmatically (e.g. via DCOP or...)?
Leslie
I tried dumping the available DCOP functions for kcontrol, which seems like the most likely place to find such:
I would have thought twin, rather. I mean, it strikes me as a window manager function.
E. Liddell
Indeed, you are correct; the DCOP interface to twin contains | int currentDesktop() | bool setCurrentDesktop(int)
Thank you for the suggestion.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On Tue, 25 May 2021, J Leslie Turriff wrote:
What I want to do is make a way to get information from TDE in order to manipulate the desktop/location of a window, so that I can restore it to its previous location after logout/login.
That's a strange comment. Here "things" I have open when I do a shutdown open back up on the same desktop they were on --- if the "thing" re-opens on a re-boot at all. Most notable, konsole windows re-open in the previous desktop -- as well, konqueror does, too.
Jonesy
On 2021-05-26 08:51:20 Marvin Jones via tde-users wrote:
On Tue, 25 May 2021, J Leslie Turriff wrote:
What I want to do is make a way to get information from TDE in order to manipulate the desktop/location of a window, so that I can restore it to its previous location after logout/login.
That's a strange comment. Here "things" I have open when I do a shutdown open back up on the same desktop they were on --- if the "thing" re-opens on a re-boot at all. Most notable, konsole windows re-open in the previous desktop -- as well, konqueror does, too.
Jonesy
Yeah. The problem I have is with my favourite text editor, X2, which is badly implemented in X and doesn't provide most of the X attributes to the window manager. It is unfortunately closed-source freeware originally written for OS/2, and the code owner is unwilling to fix numerous issues or share the code with non-C experts, so I'm trying to kludge around its desktop interface limitations. Its user interface is (IMO) much superior to GUI-based text editors.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On 2021-05-25 04:19:08 Dr. Nikolaus Klepp wrote:
Anno domini 2021 Tue, 25 May 03:55:57 -0500
J Leslie Turriff scripsit:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)? I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
hope I get the translation right:
window menu /miniicon -> extended -> special settings for this window (or program) -> check "workspace" and select the one you want it to go.
Nik
Aaagh! It was right there, and I missed it! Thank you.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On Tue, 25 May 2021, J Leslie Turriff wrote:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)?
I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
One feature I've always wanted is for whatever I click on to come up IN THE DESKTOP WHERE I DID THE CLICK. Too often I click on a browser and move to another desktop for some different purpose, only to have the browser open up on top of what I'm doing. It shouldn't even be considered a feature. It should be A Given.
Jonesy
On 2021-05-26 08:42:51 Marvin Jones via tde-users wrote:
On Tue, 25 May 2021, J Leslie Turriff wrote:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)?
I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
One feature I've always wanted is for whatever I click on to come up IN THE DESKTOP WHERE I DID THE CLICK. Too often I click on a browser and move to another desktop for some different purpose, only to have the browser open up on top of what I'm doing. It shouldn't even be considered a feature. It should be A Given.
Jonesy
Yes, I find that irritating too. Some applications actually work the way we would like them to, but most don't.
Leslie -- openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0
On Monday 31 May 2021 01:21:34 am J Leslie Turriff wrote:
On 2021-05-26 08:42:51 Marvin Jones via tde-users wrote:
On Tue, 25 May 2021, J Leslie Turriff wrote:
Is there a way, while starting a program, to tell it which desktop to appear on (before it opens its window)?
I looked at the various Window-specific settings (right-click the mini-icon in the menu bar), and there's lots of things that can be set there, but not the desktop. I also looked at kdcop for several kinds of windows, but if there's something in there, I can't recognize it.
One feature I've always wanted is for whatever I click on to come up IN THE DESKTOP WHERE I DID THE CLICK. Too often I click on a browser and move to another desktop for some different purpose, only to have the browser open up on top of what I'm doing. It shouldn't even be considered a feature. It should be A Given.
Jonesy
Yes, I find that irritating too. Some applications actually work the way we would like them to, but most don't.
Leslie
openSUSE Leap 15.2 x86_64 Qt: 3.5.0 TDE: R14.0.9 tde-config: 1.0 ____________________________________________________
Open the app or dialog (window),
right click on the boarder,
go to advanced, then
Special applications setting (for the app).
For a dialog (windows) setting choose special windows settings.
choose geometry to choose desktop for either the app or app dialog.
Hope this helps.
Kate