You are not logged in.
Pages: 1
Hello All,
When launching an application it seems to launch on the monitor my cursor is on.
This is causing us issues with certain applications that spawn windows across multiple monitors. The application is meant to load one window on the left monitor and one on the right monitor. If my cursor is on the left monitor when opening the application the windows open as intended, however if my cursor is on the right monitor the windows stack on top of each other on the right monitor (my left monitor is my primary). Is there any way to stop this behavior and default applications to opening with the primary?
Thank you
Offline
Hello and welcome.
Which distro, version of Xfce and most importantly, version of xfce4-settings are you using?
You can get the xfce4-settings version easily via:
xfsettingsd -V
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
Hello and thank you,
We are using CentOS Linux release 7.4.1708 (Core), Xfce4 4.12 and xfce4-settings 4.12.1
Thank you
Offline
Primary support has just been recently added/fixed. See https://simon.shimmerproject.org/2018/1 … play-land/ - though still pending for xfdesktop.
As a workaround for that specific application, you can use a utility like devilspie to force startup window coordinates.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
Ahh okay, that is a very recent post so I assume it won't be released for a while?
I have never used devilspie and my current attempts to force an applications location has not been fruitful. I am just testing forcing firefox onto my second monitor with:
(if (is (application_name) "Firefox") (geometry "1920x1149+1920+0"))
Firefox is still opening on the monitor my cursor is on
Offline
Ahh okay, that is a very recent post so I assume it won't be released for a while?
It will be released as part of the new 4.14 Xfce version. Some distros do make development releases of Xfce available - I'm not sure about CentOS though.
I have never used devilspie and my current attempts to force an applications location has not been fruitful. I am just testing forcing firefox onto my second monitor with:
(if (is (application_name) "Firefox") (geometry "1920x1149+1920+0"))
Firefox is still opening on the monitor my cursor is on
I don't have dual monitors available right now to test, but a few suggestions:
1. Try running devilspie with the "-d" parameter to get debug info. (note you can also use "-a" to apply to existing windows so you don't need to restart the app all the time).
2. Try just changing the shape of the firefox window to see if that works.
3. Try with another application, like mousepad.
Basically, try to get it working first with a simple example then move onto your second screen firefox example. I wil ltry to test this later tonight when I have access to an external monitor.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
It will be released as part of the new 4.14 Xfce version. Some distros do make development releases of Xfce available - I'm not sure about CentOS though.
Okay, I will wait for that to be released. I don't know if CentOS do either, I don't think they do.
1. Try running devilspie with the "-d" parameter to get debug info. (note you can also use "-a" to apply to existing windows so you don't need to restart the app all the time).
I was running the command with a (debug ... ) around it all to see the output but it didn't seem to match the application name even though that was what was printed out as the application name, it was just printing out this
Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1920x1148+0+26
Basically, try to get it working first with a simple example then move onto your second screen firefox example.
Haha that was what I was going for, firefox was the application I was testing with. I want to get it working for an application called Nuke. But I will try with something else like mousepad.
Thank you
Offline
I was running the command with a (debug ... ) around it all to see the output but it didn't seem to match the application name even though that was what was printed out as the application name, it was just printing out this
Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1920x1148+0+26
Can you post the full debug info? Mine looks like this:
Devil's Pie 0.23 starting...
Loading /etc/devilspie
Loading /etc/devilspie/example.ds
Loading /home/toz/.devilspie
Loading /home/toz/.devilspie/jetbrains-toolbox.ds
Loading /home/toz/.devilspie/firefox.ds
3 s-expressions loaded.
Window Title: 'Desktop'; Application Name: 'xfdesktop'; Class: 'Xfdesktop'; Geometry: 1920x1080+0+0
Window Title: 'Terminal - toz@arch:~/.local/share/applications'; Application Name: 'Xfce Terminal'; Class: 'Xfce4-terminal'; Geometry: 484x339+718+381
Window Title: 'Applications launching over two monitors / Desktop / Xfce Forums - Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1049x854+244+80
Setting geometry '1047x829+536+80'
Window Title: 'Pictures - File Manager'; Application Name: 'Thunar'; Class: 'Thunar'; Geometry: 642x505+685+426
Window Title: 'Terminal - toz@arch:~/.local/share/applications'; Application Name: 'Xfce Terminal'; Class: 'Xfce4-terminal'; Geometry: 484x339+145+59
Window Title: 'Terminal - toz@arch:~/.devilspie'; Application Name: 'Xfce Terminal'; Class: 'Xfce4-terminal'; Geometry: 484x339+67+479
Window Title: 'xfce4-panel'; Application Name: 'xfce4-panel'; Class: 'Xfce4-panel'; Geometry: 960x22+480+0
...and my firefox.ds file simply changes the screen location:
(if (is (application_name) "Firefox") (geometry "1047x829+536+80"))
You can see that 3 expressions were loaded (including firefox.ds) and right after acknowledging the firefox window, it sets the geometry as per the directive:
Window Title: 'Applications launching over two monitors / Desktop / Xfce Forums - Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1049x854+244+80
Setting geometry '1047x829+536+80'
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
Can you post the full debug info?
Here is the full debug output
[matta@union18:]$devilspie -d
Devil's Pie 0.22 starting...
Loading /etc/devilspie
Loading /home/users/matta/.devilspie
Loading /home/users/matta/.devilspie/firefox.ds
1 s-expressions loaded.
Window Title: 'Gnote'; Application Name: 'gnote'; Class: 'Gnote'; Geometry: 910x693+108+371
Window Title: 'Terminal - matta@union18:~/.devilspie'; Application Name: 'Xfce Terminal'; Class: 'Xfce4-terminal'; Geometry: 816x506+2184+457
Window Title: 'Terminal - matta@union18:~'; Application Name: 'Xfce Terminal'; Class: 'Xfce4-terminal'; Geometry: 2120x506+1959+214
Window Title: 'root@sol-ldn-sn-001:~'; Application Name: 'terminator'; Class: 'Terminator'; Geometry: 931x783+293+206
Setting geometry '1920x1149+1920+0'
Window Title: 'Custom graphs [refreshed every 30 sec.] - Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1920x1148+0+26
Window Title: 'Applications launching over two monitors / Desktop / Xfce Forums - Google Chrome'; Application Name: 'Applications launching over two monitors / Desktop / Xfce Forums - Google Chrome'; Class: 'Google-chrome'; Geometry: 1920x1174+1920+0
Window Title: 'Desktop'; Application Name: 'xfdesktop'; Class: 'Xfdesktop'; Geometry: 3840x1200+1920+0
Window Title: 'xfce4-panel'; Application Name: 'xfce4-panel'; Class: 'Xfce4-panel'; Geometry: 1920x26+1920+1174
Window Title: 'xfce4-panel'; Application Name: 'xfce4-panel'; Class: 'Xfce4-panel'; Geometry: 1920x26+0+0
Window Title: 'xfce4-panel'; Application Name: 'xfce4-panel'; Class: 'Xfce4-panel'; Geometry: 1920x26+0+1174
Setting geometry '1920x1149+1920+0'
Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1920x1148+0+26
...and my firefox.ds file simply changes the screen location:
That's what I'm trying to do as well
(if (is (application_name) "Firefox") (geometry "1920x1149+1920+0"))
You can see that 3 expressions were loaded (including firefox.ds) and right after acknowledging the firefox window, it sets the geometry as per the directive:
Mine is giving the acknowledgements but before the window is loading, setting the geometry and then setting it wrong?
Setting geometry '1920x1149+1920+0'
Window Title: 'Mozilla Firefox'; Application Name: 'Firefox'; Class: 'Firefox'; Geometry: 1920x1148+0+26
Offline
That is weird. Try adding a delay in the script - maybe the script is processing faster than the window is drawing:
(if (is (application_name) "Firefox") (begin (spawn_sync "sleep 5") (geometry "1047x829+536+80")))
...adjust the sleep value to suit.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Online
Pages: 1
[ Generated in 0.015 seconds, 11 queries executed - Memory usage: 591.9 KiB (Peak: 609.18 KiB) ]