Xfce Forum

Sub domains
 

You are not logged in.

#1 2022-12-16 03:55:42

lazygeek
Member
Registered: 2021-01-11
Posts: 7

Thunar 4.18.0 - Can't set custom window size

Hi,

I've been using devilspie2 for a while, to have any new Thunar window to a custom size of 720x540px, which I really like  smile
I'm using this specific rule for devilspie2:

if (get_window_name(), "Thunar") then
   set_window_size (720, 540);
--   maximize();
end

This has been working for me, for years!
But now, since today's update to 4.18, Thunar will always open to a specific, annoying window size of 1074x511px.
Weird?

I also tried this rule for devilspie2:

if string.match(get_window_name(), "Thunar") then
   set_window_size (720, 540);
--   maximize();
end

Same results...

I also tried using a class instead of window_name:

if (get_window_class() == "Thunar") and (get_window_type() == "WINDOW_TYPE_NORMAL") then
   set_window_size (720, 540);
end

With no luck...

However, my devilspie2 works pretty well, because this custom window size works perfectly well with any other application...
Any idea how I can fix this?

Thanks  smile

Offline

#2 2022-12-16 12:45:09

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Thunar 4.18.0 - Can't set custom window size

I'm noticing something similar with original devilspie - thunar seems to be changing the size. I wonder if it might be a result of the column auto-resizing enhancements. From which version of thunar did you upgrade from (where it was working properly)?

You might want to create a bug report.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2022-12-16 21:13:14

lazygeek
Member
Registered: 2021-01-11
Posts: 7

Re: Thunar 4.18.0 - Can't set custom window size

Hi @ToZ, thank you for the quick reply.

Well, a quick look at my package manager's cache (archlinux) reveals this:

ls -l /var/cache/pacman/pkg/thunar*
-rw-r--r-- 1 root root 1.3M Apr 29  2022 /var/cache/pacman/pkg/thunar-4.16.11-2-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  310 Apr 29  2022 /var/cache/pacman/pkg/thunar-4.16.11-2-x86_64.pkg.tar.zst.sig
-rw-r--r-- 1 root root 1.5M Dec 15 08:46 /var/cache/pacman/pkg/thunar-4.18.0-1-x86_64.pkg.tar.zst
-rw-r--r-- 1 root root  310 Dec 15 08:46 /var/cache/pacman/pkg/thunar-4.18.0-1-x86_64.pkg.tar.zst.sig

4.18.0-1 is the current one, just installed yesterday.
So I do believe 4.16.11-2 is the one!  smile

Shall I file a bug report?

Also, I'm really wondering...  Am I the only one with this problem?
I am guessing that pretty much everyone should see Thunar as a big rectangular window as well?

Last edited by lazygeek (2022-12-21 18:37:11)

Offline

#4 2022-12-16 23:59:46

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Thunar 4.18.0 - Can't set custom window size

There is a thunar hidden setting to remember window geometries (/misc-remember-geometry). Can you try setting that to true and then in the settings editor, thunar channel, set values for "last-window-width" and "last-window-height" to see if that works?

Otherwise, yes, create a bug report to see what the developer says.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2022-12-17 00:59:39

lazygeek
Member
Registered: 2021-01-11
Posts: 7

Re: Thunar 4.18.0 - Can't set custom window size

I have tried your workaround solution, with no luck.
According to the docs you mentioned, it is well advised to run "thunar -q" before editing the settings, which I did.

So I have played around with the setting "/misc-remember-geometry", and whether I set it to TRUE or FALSE (along with forcing correct values for "last-window-width" and "last-window-height"), I get the same results.  That big rectangular Thunar window!

That's not a huge problem though.  I'm so satisfied with the new features in Xfce 4.18, I'm not gonna go back to the previous version just to fix window size.

I filed a bug here, let's see what happens  smile

Thank you very much for your help!  I discovered a few other hidden settings for Thunar,  which I am now using!

Last edited by lazygeek (2022-12-17 02:07:28)

Offline

#6 2022-12-22 06:09:25

Cencar
Member
Registered: 2022-12-22
Posts: 20

Re: Thunar 4.18.0 - Can't set custom window size

Hi lazygeek,
Could you expand on your hidden settings. I am a noob and have searched every where to try and find an answer to set "custom window size".
The only thing I Manjaro Settings Editor>thumar.
Tried to change /last-window-width 590 every new window reverted to the over size. Yet the Settings editor still shows 590?
Any advice appreciated.

Offline

#7 2022-12-22 11:29:34

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: Thunar 4.18.0 - Can't set custom window size

@Cencar, this was a bug in thunar that has been fixed and will be released with the next release of thunar coming soon.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#8 2022-12-22 14:56:44

Cencar
Member
Registered: 2022-12-22
Posts: 20

Re: Thunar 4.18.0 - Can't set custom window size

Thanks for the info and quick response

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.016 seconds, 8 queries executed - Memory usage: 547.43 KiB (Peak: 548.27 KiB) ]