Linux - Distributions This forum is for Distribution specific questions.
Red Hat, Slackware, Debian, Novell, LFS, Mandriva, Ubuntu, Fedora - the list goes on and on...
Note: An (*) indicates there is no official participation from that distribution here at LQ. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
02-27-2018, 01:10 PM
|
#1
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,971
|
KNOPPIX with LXDE won't open windows in center of screen after tweaks.
Hi.
I have KNOPPIX (KNOPPIX_V8.1-2017-09-05-EN.iso) with LXDE on a usb pen drive and it won't open windows in the center of the screen after these tweaks.
I edited both '~/.config/openbox/rc.xml' & '~/.config/openbox/lxde-rc.xml' like so:
Code:
<application type="normal">
<position>
<x>center</x>
<y>center</y>
</position>
</application>
I added the code above just below "-->" at the end of these files. I think only editing the rc.xml should have been enough.
The KNOPPIX live ISO remembers settings such as personal files, WiFi login key, etc. so the code above remains on reboot - it just don't do anything.
Last edited by linustalman; 02-27-2018 at 01:11 PM.
|
|
|
02-27-2018, 02:00 PM
|
#2
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
so where is it going, or is it not having any effect on it at all?
is it between these tags
Code:
<applications>
</applications>
|
|
|
02-27-2018, 02:04 PM
|
#3
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,971
Original Poster
|
Quote:
Originally Posted by BW-userx
so where is it going, or is it not having any effect on it at all?
is it between these tags
Code:
<applications>
</applications>
|
Hi BW-userx.
It's having no effect at all. I have Debian LXDE 8 and Debian LXDE 9 on old laptops with the exact same setup and they open windows in the center of the screen without issue.
Here's how the last few lines of lxde-rc.xml looks for them:
Code:
...
# end of the example
-->
<application type="normal">
<position>
<x>center</x>
<y>center</y>
</position>
</application>
</applications>
</openbox_config>
Last edited by linustalman; 02-27-2018 at 02:06 PM.
|
|
|
02-27-2018, 02:49 PM
|
#4
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by linustalman
Hi BW-userx.
It's having no effect at all. I have Debian LXDE 8 and Debian LXDE 9 on old laptops with the exact same setup and they open windows in the center of the screen without issue.
Here's how the last few lines of lxde-rc.xml looks for them:
Code:
...
# end of the example
-->
<application type="normal">
<position>
<x>center</x>
<y>center</y>
</position>
</application>
</applications>
</openbox_config>
|
try setting the positions x,y by pixels anything within your screen to see if it is actually even trying to manipulate any app you open.
|
|
|
02-27-2018, 02:52 PM
|
#5
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,971
Original Poster
|
Quote:
Originally Posted by BW-userx
try setting the positions x,y by pixels anything within your screen to see if it is actually even trying to manipulate any app you open.
|
You mean change to 'right' or 'left' instead of 'center'?
|
|
|
02-27-2018, 03:21 PM
|
#6
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
Quote:
Originally Posted by linustalman
You mean change to 'right' or 'left' instead of 'center'?
|
you can try that too, pixel corrd, x= 100 y = 340 something like that , make them within your screen size.
Code:
<y>300</y>
<x>350</x>
Last edited by BW-userx; 02-27-2018 at 03:22 PM.
|
|
|
03-02-2018, 04:21 AM
|
#7
|
LQ Guru
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,971
Original Poster
|
Quote:
Originally Posted by BW-userx
you can try that too, pixel corrd, x= 100 y = 340 something like that , make them within your screen size.
Code:
<y>300</y>
<x>350</x>
|
I tried that and a few other combinations. No luck. I even did a reboot. I think I'll leave it as it is.
|
|
|
03-02-2018, 09:40 AM
|
#8
|
LQ Guru
Registered: Sep 2013
Location: Somewhere in my head.
Distribution: Slackware (15 current), Slack15, Ubuntu studio, MX Linux, FreeBSD 13.1, WIn10
Posts: 10,342
|
the ability may have been removed, hindered by another process, or rewritten to use a different method of writing it in the interpretation. Like center is interpreted. In the background it has to be processed, get screen height and width preform the math on it to get center of screen then apply more math to it to position the window using its height width to ascertain the x y coords to place the window on the center of the screen which are all variables.
Last edited by BW-userx; 03-02-2018 at 09:41 AM.
|
|
|
All times are GMT -5. The time now is 09:40 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|