LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (https://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   KNOPPIX with LXDE won't open windows in center of screen after tweaks. (https://www.linuxquestions.org/questions/linux-distributions-5/knoppix-with-lxde-wont-open-windows-in-center-of-screen-after-tweaks-4175624576/)

linustalman 02-27-2018 01:10 PM

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.

BW-userx 02-27-2018 02:00 PM

so where is it going, or is it not having any effect on it at all?

is it between these tags
Code:

  <applications>

  </applications>


linustalman 02-27-2018 02:04 PM

Quote:

Originally Posted by BW-userx (Post 5825011)
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>


BW-userx 02-27-2018 02:49 PM

Quote:

Originally Posted by linustalman (Post 5825014)
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.

linustalman 02-27-2018 02:52 PM

Quote:

Originally Posted by BW-userx (Post 5825034)
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'?

BW-userx 02-27-2018 03:21 PM

Quote:

Originally Posted by linustalman (Post 5825035)
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>


linustalman 03-02-2018 04:21 AM

Quote:

Originally Posted by BW-userx (Post 5825043)
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.

BW-userx 03-02-2018 09:40 AM

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.


All times are GMT -5. The time now is 02:09 PM.