LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions
User Name
Password
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


Reply
  Search this Thread
Old 02-27-2018, 01:10 PM   #1
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,713

Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Question 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.
 
Old 02-27-2018, 02:00 PM   #2
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
so where is it going, or is it not having any effect on it at all?

is it between these tags
Code:
  <applications>

  </applications>
 
Old 02-27-2018, 02:04 PM   #3
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,713

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by BW-userx View Post
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.
 
Old 02-27-2018, 02:49 PM   #4
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by linustalman View Post
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.
 
Old 02-27-2018, 02:52 PM   #5
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,713

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Quote:
Originally Posted by BW-userx View Post
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'?
 
Old 02-27-2018, 03:21 PM   #6
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
Quote:
Originally Posted by linustalman View Post
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.
 
Old 03-02-2018, 04:21 AM   #7
linustalman
LQ Guru
 
Registered: Mar 2010
Location: Ireland
Distribution: Debian 12 Bookworm
Posts: 5,713

Original Poster
Rep: Reputation: 479Reputation: 479Reputation: 479Reputation: 479Reputation: 479
Post

Quote:
Originally Posted by BW-userx View Post
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.
 
Old 03-02-2018, 09:40 AM   #8
BW-userx
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

Rep: Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242Reputation: 2242
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.
 
  


Reply

Tags
center windows, knoppix, lxde



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
LXDE Control Center in Lubuntu -- why can I figure out how to open it? dadadoodads Linux - Desktop 1 03-03-2015 08:09 PM
How to make GNOME open a window in the center of my screen? QueenZ Linux - Newbie 3 07-17-2010 04:43 AM
Windows decorator for lxde in knoppix ShanxT Linux - Distributions 0 03-27-2009 09:50 AM
How Do I Center Windows On Screen? taurusx5 Linux - Software 4 09-23-2008 04:12 PM
Center cursor/windows on one screen headlessb Linux - General 0 10-28-2005 01:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions

All times are GMT -5. The time now is 04:27 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration