Allow MXPI to remember window size and location

Report Bugs, Issues and non- package Requests
Message
Author
advice1010
Posts: 340
Joined: Tue Feb 21, 2023 3:50 pm

Allow MXPI to remember window size and location

#1 Post by advice1010 »

MX 23.4 XFCE

Suggesting that maybe can add a setting for MXPI to be able to remember its window size and maybe location on screen based on size/location when MXPI is closed.
For example if user decides to maximize MXPI, then the next time they open up MXPI the window is maximized.

I apologize if this already exists.
Little confused, I have tried this on a couple of systems and one MXPI opens automatically snapped to left side of screen and other machines MXPI loads up in center as a floating window a little closer to the top of screen, so not sure.

Thank You

User avatar
j2mcgreg
Global Moderator
Posts: 6814
Joined: Tue Oct 23, 2007 12:04 pm

Re: Allow MXPI to remember window size and location

#2 Post by j2mcgreg »

@advice1010 wrote:
Suggesting that maybe can add a setting for MXPI to be able to remember its window size and maybe location on screen based on size/location when MXPI is closed.
For example if user decides to maximize MXPI, then the next time they open up MXPI the window is maximized.
On my HP 15 and 17, it does remember the size / location if MXPI is closed and then reopened within the same session. But in a shutdown / restart it does not.
HP 15; ryzen 3 5300U APU; 500 Gb SSD; 8GB ram
HP 17; ryzen 3 3200; 500 GB SSD; 12 GB ram
Idea Center 3; 12 gen i5; 256 GB ssd;

In Linux, newer isn't always better. The best solution is the one that works.

MXRobo
Posts: 1834
Joined: Thu Nov 14, 2019 12:09 pm

Re: Allow MXPI to remember window size and location

#3 Post by MXRobo »

I know this isn't exactly what your seeking, but I constantly use "Alt+X" for Maximize window which is found in Window Manager -> Keyboard in XFCE MX-21.3.
It toggles.
I think Devilpie(2) might do what your seeking, maybe????? xdev, but I don't think it's intended for this. I have about zero knowledge of the apps, just slight recall from the forum.

Edit: regarding the suggestion, it may be tied to the desktop environment - maybe.

Good Luck!

User avatar
artytux
Posts: 398
Joined: Wed Apr 26, 2023 3:58 am

Re: Allow MXPI to remember window size and location

#4 Post by artytux »

Do you have anything similar to -> Configure Special Apps Settings - in XFCE



Image
" Outside the square , inside the cube "

advice1010
Posts: 340
Joined: Tue Feb 21, 2023 3:50 pm

Re: Allow MXPI to remember window size and location

#5 Post by advice1010 »

Thank you guys for the responses.
That is strange so there are users who also experience the windows size/location being remembered.
That is actually the behavior I thought I remembered experiencing in the past as well, which is one of the reasons I questions this.

So now have seen/heard of
-Left side of screen snapped, not maximized, just about 2/3 of screen
-Window loads in center as floating window
-Window remembers size/location per session

I use that hotkey as well to maximize, but that is not what I am looking for, that was just an example for it to remember that previous window state used.

No I do not have anything similar to this
"Configure Special Apps Settings"
I assume this is some kind of addon/application.
I do not think I have any 3rd party applications like this installed, just whatever comes with XFCE.

If anyone else has any other information please let me know.
Even just confirming which one of the three (that I mentioned above) you experience, or if you have a fourth experience not mentioned :)

Thank again for the responses

User avatar
Adrian
Developer
Posts: 8955
Joined: Wed Jul 12, 2006 1:42 am

Re: Allow MXPI to remember window size and location

#6 Post by Adrian »

Check something for me, do you have a ~/.config/MX-Linux/mxpi-launcher.conf or perhaps a ~/.config/MX-Linux/mx-packageinstaller.conf ? Can you check if they are user writable?

Also if you have /root/.config/MX-Linux/mx-packageinstaller.conf please delete it.

All of these can happen if you launch the MXPI as root or might have survived from times when we used to launch MX apps as root, by now I moved all the apps to launch as normal user and elevate when needed, but if you have settings written as root it won't be able to overwrite them.

User avatar
mxer
Posts: 239
Joined: Fri Sep 21, 2018 9:09 am

Re: Allow MXPI to remember window size and location

#7 Post by mxer »

My regular desktop XFCE allows me to 'Save Session' when I logout, as far as I know it is a part of XFCE itself.
(FOSS, Linux, & BSD since 1999)

User avatar
Kermit the Frog
Posts: 626
Joined: Mon Jul 08, 2024 8:52 am

Re: Allow MXPI to remember window size and location

#8 Post by Kermit the Frog »

Errr @Adrian just btw:

Code: Select all

$ sudo ls -l /root/.config/MX-Linux/
total 28
-rw-r--r-- 1 root root 2098 Aug  1  2023 apt-notifier.conf
-rw-r--r-- 1 root root  236 Feb 18  2024 job-scheduler.conf
-rw-r--r-- 1 root root  208 Nov  8  2023 mx-cleanup.conf
-rw-r--r-- 1 root root  207 Nov  9  2023 mx-packageinstaller.conf
-rw-r--r-- 1 root root  200 Nov 17  2023 mx-repo-manager.conf
-rw-r--r-- 1 root root  186 Nov  8  2023 mx-service-manager.conf
-rw-r--r-- 1 root root  202 Jan 26  2024 mx-user.conf
-rw-r--r-- 1 root root    0 Aug  1  2023 xdg_check
A general question: Should we (all users) remove some / all of these?

User avatar
Adrian
Developer
Posts: 8955
Joined: Wed Jul 12, 2006 1:42 am

Re: Allow MXPI to remember window size and location

#9 Post by Adrian »

You can remove all that start with "mx" also job-scheduler too.

User avatar
Kermit the Frog
Posts: 626
Joined: Mon Jul 08, 2024 8:52 am

Re: Allow MXPI to remember window size and location

#10 Post by Kermit the Frog »

Thank you :)

Post Reply

Return to “Bugs and Non-Package Requests Forum”