Increase pfind dialog box size to show correctly#3953
Increase pfind dialog box size to show correctly#3953Overdrive5 wants to merge 1 commit intopuppylinux-woof-CE:testingfrom
Conversation
Increase pfind dialog box size to show correctly. 450x700 is to small. 750x950 shows the entire app without having to resize every time.
|
It should not that big by default in case Puppy is running on small screen. If size should be enlarged, it should be only on screens that are big enough. xrandr | grep '*' | head -n1 The existing solution for this issue is found in the 'File' menu. - Quit and save geometry. |
|
Oh!! I see!. Never observed that before. Always just used the standard mouse 'x' close method. |
Yes, xrandr won't work. |
|
Maybe use?: xdpyinfo | grep dimensions |
|
I find my scrollbars disappear at 679 x 936 Maybe do a xdpyinfo test if it exceeds these dimensions then set accordingly? |
|
xdpyinfo | grep -oP 'dimensions:\s+\K\S+' |
|
I am unfamiliar with 'xdpyinfo', and don't know if this would work outside X. It would still an option to include a test for both xrandr and xdpyinfo. If it doesn't give any valuable feedback, we just go back to the default values. This test must not override the default settings in $HOME/.pfind/pfindrc. The rc file could have blank values at first startup and the test could save its new value for later use. |
|
I found the method of getting each dimension separately. Width: xdpyinfo | awk '/dimensions/ {print $2}' | cut -d 'x' -f1 |
|
So we could confirm both width exceed 936 and height exceed 679 then set pfindrc to those dimensions. |
|
And I checked pup-431.iso and xdpyinfo is located in /usr/bin so it should be available for most recent distributions |
|
xdpyinfo won't work in a Puppy that uses Wayland. Make sure you have some fallback if xdpyinfo fails (or if it's missing). |


Increase pfind dialog box size to show correctly. 450x700 is to small. 750x950 shows the entire app without having to resize every time.