calculator icon indicating copy to clipboard operation
calculator copied to clipboard

Is there a way to set a window size when starting the calculator? (Linux)

Open eggbean opened this issue 4 years ago • 3 comments

This calculator is great and I use it a lot, often using the touchscreen on my laptop which I don't use for anything else.

However, the default window size is too big, as I am usually using it at the same time as using something else and I nearly always have to resize the window before using it. Is there any way it can be set?

I have tried copying the .desktop file from /var/lib/snapd/desktop/applications to ~/.local/share/applications and adding --geometry=328x504 to the end of the Exec line like this:

Exec=env BAMF_DESKTOP_FILE_HINT=/var/lib/snapd/desktop/applications/uno-calculator_uno-calculator.desktop /snap/bin/uno-calculator --geometry=328x504

Is there possibly an envar or some other method I could use?

eggbean avatar Mar 22 '21 16:03 eggbean

Thanks for the report!

This is an interesting issue. Uno does not explicitly follows the window size, but definitely should be.

What do other applications do in your window manager do? Do they keep the size you've already set when closing them ?

jeromelaban avatar Mar 22 '21 16:03 jeromelaban

Kwin (KDE WM) cannot control window properly (size, location) on boot, I try every parameter including enabling 'Ignore requested geometry' but nothing works. Maybe the problem coming from uno?

mxvin avatar Jul 12 '22 17:07 mxvin