How to set Chrome download popup window size?

a very small Live CD shaped to look and act like Puppy Linux.

Moderator: fredx181

Post Reply
dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

How to set Chrome download popup window size?

Post by dcung »

Anyone knows how to set Chrome download popup (default) window size?
On monitors/laptops that have lower res, I can't see the bottom part, and have to resize the popup each time to use it.

2024-11-05-065509_1920x1080_scrot.png
2024-11-05-065509_1920x1080_scrot.png (92.32 KiB) Viewed 374 times
User avatar
pp4mnklinux
Posts: 1107
Joined: Wed Aug 19, 2020 5:43 pm
Location: Edinburgh
Has thanked: 629 times
Been thanked: 281 times
Contact:

Re: How to set Chrome download popup window size?

Post by pp4mnklinux »

Hi, @dcung ;

I'm sorry, I had the same problem and unfortunately, Chrome doesn't provide a built-in way to set the default size of the download popup window, but you can try some tricks:

The easier is use a Chrome Extension so u are not going to see this screen again (I don't like it a lot, but it is an option). There is another solution, I can't explain it because it's a question of "good luck".

You must resize this popup and close it.- As I told u, I don't know why, but after resizing it to your preferred size when you close it sometimes, Chrome remembers the last size used, so reopening might maintain the new size. (to close it don't use the cross icon at the top right corner, but right click at the top and close -memory).

These solutions are workarounds since there isn't a direct setting in Chrome to adjust the popup size.

It is possible someone can explain it better and solve your problem ,but, meanwhile , you can try this.

Have a nice day.

:arrow:

XFCE_FUSILLI . ===> https://puppyxfcefusilli.wordpress.com/

YouTube How_To . ==> https://bit.ly/f96ce_xfce_fusilli_HOWTO

Learning EASY OS . => https://easyos.org/

User avatar
mikewalsh
Moderator
Posts: 6126
Joined: Tue Dec 03, 2019 1:40 pm
Location: King's Lynn, UK
Has thanked: 782 times
Been thanked: 1956 times

Re: How to set Chrome download popup window size?

Post by mikewalsh »

@dcung :-

As @pp4mnklinux says, there's no direct way to alter the popup window size. Another possibility is to move the window around, in order to be able to reach the bits you need.....

Linux has long had the ability to move a window without needing to access the title bar. To do this, place the cursor anywhere you like within the window itself. Click and hold the 'Alt' key, then click - and hold - the left mouse button. The cursor changes to a '4-way arrow'.....and NOW you can drag the window in any direction you want. :D

Image

Let us know if that functionality helps you at all.

Mike. ;)

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

mikewalsh wrote: Tue Nov 05, 2024 3:45 am

Linux has long had the ability to move a window without needing to access the title bar.

I know this.

The point is that I prefer not to have default window size that is bigger than screen resolution.

User avatar
MochiMoppel
Posts: 1227
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: How to set Chrome download popup window size?

Post by MochiMoppel »

dcung wrote: Mon Nov 04, 2024 8:25 pm

Anyone knows how to set Chrome download popup (default) window size?

I don't know Chrome. I'm using Bookworm64 and sometimes Chromium where I have set the window size of these "popup" windows via a JWM Group option.

You can check if Chrome, like Chromium, assigns a dedicated window name:

  • Open the "Location" window (as in your screenshot)
  • Open a terminal window and run the command xprop WM_CLASS
  • Mouse cursor will turn into cross
  • Click on the "Location" window

The terminal output in my case would be
WM_CLASS(STRING) = "xdg-desktop-portal-gtk", "Xdg-desktop-portal-gtk

This means that in file /root/.jwm/jwmrc-personal I can add Group options for all windows with the name "xdg-desktop-portal-gtk". This name is used by Chromium for Open/Save dialogs and maybe other windows (haven't checked)
<Group>
<Name>xdg-desktop-portal-gtk</Name>
<Option>width:600</Option>
<Option>height:450</Option>
<Option>centered</Option>
</Group>

After running the obligatory jwm -restart command all File Open/Save dialogs in Chromium are opened with a size 600x450.
May also work in Chrome.

dancytron
Posts: 715
Joined: Fri Dec 13, 2019 6:26 pm
Has thanked: 508 times
Been thanked: 215 times

Re: How to set Chrome download popup window size?

Post by dancytron »

Another non-answer, but in MX Linux there is a setting to put the buttons at the top of the screen instead of at the bottom, so they aren't cut off.

It applies everywhere, not just Chrome.

User avatar
fredx181
Posts: 3013
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 366 times
Been thanked: 1280 times
Contact:

Re: How to set Chrome download popup window size?

Post by fredx181 »

@dcung

On monitors/laptops that have lower res, I can't see the bottom part, and have to resize the popup each time to use it

.
Same thing here, tested with LXQT build (not sure if it's different with another DE perhaps).

I may have to do with running as user from root login (user puppy in this case), found a little trick:
- login as puppy, resize the popup window, try again and the size is remembered from what I tested.
- login as root again, run chrome and the popup window size should be as you adjusted earlier.
Inconvenient workaround though, but can't figure out what's a real solution.

HerrBert
Posts: 355
Joined: Mon Jul 13, 2020 6:14 pm
Location: Germany, NRW
Has thanked: 18 times
Been thanked: 125 times

Re: How to set Chrome download popup window size?

Post by HerrBert »

I may be wrong, but the screenshot in the first post looks like the gtk3 filechooser.

In s15pup64, i can change the window size for min browser running as spot using gsettings:
run-as-spot gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

User avatar
MochiMoppel
Posts: 1227
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 436 times

Re: How to set Chrome download popup window size?

Post by MochiMoppel »

HerrBert wrote: Tue Nov 05, 2024 3:00 pm

In s15pup64, i can change the window size for min browser running as spot using gsettings:
run-as-spot gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

Nice :thumbup2:
Works here too and affects all applications that use the GTK3 FileChooser. I'm running as root, thus
gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

fredx181 wrote: Tue Nov 05, 2024 1:54 pm

Same thing here, tested with LXQT build (not sure if it's different with another DE perhaps).

I may have to do with running as user from root login (user puppy in this case), found a little trick:
- login as puppy, resize the popup window, try again and the size is remembered from what I tested.
- login as root again, run chrome and the popup window size should be as you adjusted earlier.
Inconvenient workaround though, but can't figure out what's a real solution.

This has been bugging me for a while, just not enough to post about it. Been looking for answer in background on net, but none that suitable for me yet.
My daily laptop is 1920x1080 - so a non-issue here, but as a tinkerer I do laptop/pc hopping often, and when I do, I get reminded about this annoying issue from time to time.

I already noticed that it happened on multiple DE (at least LXQT, DDOG builds that I am positive).
I don't use login manager, but I understand the gist of your suggestion.
I have tested your suggested little trick, and found it working.
Initially tested with LXQT, and since I know it also happened/annoyed me in DDOG, I tested on that too, and it works there too (DDOG build).

Now, while doing that, I also found/realized that - puppy user in LXQT and DDOG has different defaults (ie. notice different sizes).
I thought/expected they are the same, since root user has same default. But the little trick works nonetheless - which is good.
This reminded me articles/postings that I encountered during my background research that I didn't/don't understand. Which in short, related to what @MochiMoppel & @HerrBert suggested. If I can understand what they are saying, maybe later I can incorporate this into my mod-mklive and have 'the solution' built-in OOTB.
I do 'crash & burn' frugal install too frequently - OOTB solution is nice to have.

But meanwhile, your trick is the closest solution to what I am after. Thanks Fred!

Now I will try to digest @MochiMoppel & @HerrBert suggestions.
Thanks to all suggestions. :thumbup:

User avatar
fredx181
Posts: 3013
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 366 times
Been thanked: 1280 times
Contact:

Re: How to set Chrome download popup window size?

Post by fredx181 »

HerrBert wrote: Tue Nov 05, 2024 3:00 pm

I may be wrong, but the screenshot in the first post looks like the gtk3 filechooser.

In s15pup64, i can change the window size for min browser running as spot using gsettings:
run-as-spot gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

Thanks !

@dcung
So probably for DebianDog this will do (using equivalent (run-as-user) of run-as-spot):
run-as-user gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

fredx181 wrote: Tue Nov 05, 2024 7:02 pm

So probably for DebianDog this will do (using equivalent (run-as-user) of run-as-spot):
run-as-user gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'

I already tried it. I thought if works, I can put it in startup.
(Note - I autologin as root - in all my builds).

In DDOG, got error.

Code: Select all

root@live:~# gsettings set org.gtk.Settings.FileChooser window-size '(824, 622)'
bash: gsettings: command not found
root@live:~# 

In LXQT, no error. Tried both as root and using run-as-user.
But no difference in file-chooser windows size. I tried varying the sizes.
run-as-user gsettings set org.gtk.Settings.FileChooser window-size '(600, 480)'

User avatar
fredx181
Posts: 3013
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 366 times
Been thanked: 1280 times
Contact:

Re: How to set Chrome download popup window size?

Post by fredx181 »

@dcung
Indeed with gsettings it doesn't seem to work, but found this post https://forum.xfce.org/viewtopic.php?pid=55276#p55276 , followed the instructions and works for me (on LXQT, I tested)
- install dconf-cli apt install dconf-cli
- extract attached archive etc_dconf.tar.gz in / (so you get new added files in /etc/dconf/)
(modify window-size=(500, 500) in /etc/dconf/db/local.d/00-filechooser as you'd like)
- run dconf update

etc_dconf.tar.gz
extract in /
(403 Bytes) Downloaded 5 times
dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

fredx181 wrote: Tue Nov 05, 2024 8:51 pm

@dcung
Indeed with gsettings it doesn't seem to work, but found this post https://forum.xfce.org/viewtopic.php?pid=55276#p55276 , followed the instructions and works for me (on LXQT, I tested)
- install dconf-cli apt install dconf-cli
- extract attached archive etc_dconf.tar.gz in / (so you get new added files in /etc/dconf/)
(modify window-size=(500, 500) in /etc/dconf/db/local.d/00-filechooser as you'd like)
- run dconf update
etc_dconf.tar.gz

I tried it both LXQT-Full and LXQT-mini.
Check additional files mentioned existed. Run dconf update. With or without reboot same - not working.
Both not working for me. But my build is not using online conf. I use gvfs instead of pup-volume-monitor.
I'll do more test and report of findings.

Edit 1:
Just tested with DDOG.
Works - I varied windows sizes, run dconf update, works, even without reboot/re-login (root).

No idea yet, why (my) Lxqt not working. These are refresh builds done 2 days ago...both use gvfs.

Edit 2:
Works in OBDOG.
No reboot/relogin needed. Just run dconf update

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

I make fresh build of Lxgt_Full with online conf, only took out slim.
<do dconf stuff as before, extract etc_dconf.tar.gz, dconf update>
Does not work.

I make fresh build Lxqt (minimal), unmodified online conf, using unmodified mklive.
Then

Code: Select all

apt update
apt install google-chrome-stable run-as-user dconf-cli
extract etc_dconf.tar.gz <as per instruction before>
dconf update

Does not work.

I did this on Fujitsu laptop.
But I tested my Lxqt builds (even from earlier refresh set) on 3 laptops - samsung, fujitsu, Dell D630
None of Lxqt DE works for me. :(

DDOG, OBDOG DE works.

User avatar
fredx181
Posts: 3013
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 366 times
Been thanked: 1280 times
Contact:

Re: How to set Chrome download popup window size?

Post by fredx181 »

dcung wrote: Wed Nov 06, 2024 12:35 am

I make fresh build of Lxgt_Full with online conf, only took out slim.
<do dconf stuff as before, extract etc_dconf.tar.gz, dconf update>
Does not work.

I make fresh build Lxqt (minimal), unmodified online conf, using unmodified mklive.
Then

Code: Select all

apt update
apt install google-chrome-stable run-as-user dconf-cli
extract etc_dconf.tar.gz <as per instruction before>
dconf update

Does not work.

I did this on Fujitsu laptop.
But I tested my Lxqt builds (even from earlier refresh set) on 3 laptops - samsung, fujitsu, Dell D630
None of Lxqt DE works for me. :(

DDOG, OBDOG DE works.

Well, sorry, I tested now with a clean LXQT install and doesn't work for me either.
Tried to find out why it worked earlier for me (not on a clean install). but couldn't . Frustrating ! :(

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

fredx181 wrote: Wed Nov 06, 2024 6:05 pm

Well, sorry, I tested now with a clean LXQT install and doesn't work for me either.
Tried to find out why it worked earlier for me (not on a clean install). but couldn't . Frustrating ! :(

@fredx181 Thanks for doing that.
I have been pulling my hair making builds using unmod mklive variations of Lxqt with online conf (NMU, Non-NMU, mini, full, with and without slim, etc).
All does not work. I persisted since you could, and I couldn't get it to work - and I 'gotta' know why..
But with your confirmation, at least I know it happens to not only me...

Anyway, I am happy that at least for those low res screen, I now know to put DDOG, OBDOG to avoid this windows size issue.
Glad that you found the 'dconf channel locking' trick nonetheless.

Thanks Fred!

dcung
Posts: 456
Joined: Fri Sep 25, 2020 4:31 am
Has thanked: 55 times
Been thanked: 65 times

Re: How to set Chrome download popup window size?

Post by dcung »

@fredx181

I observed these during testing.

In those that works (DDOG, OBDOG), these non-text files exist OOTB, i.e. clean, fresh build, first login.
/root/.config/dconf/user
/home/puppy/.config/dconf/user
Deleting these files affect the filechooser windows size, i.e. no longer follow what is set in 00-filechooser
I didn't check timestamp, but assume that it gets updated whenever dconf update run

These, don't exist in Lxqt (mklive - OOTB).
After installing dconf-cli, etc, I tried copying these files from DDOG/OBDOG, it gets ignored.

I don't know what the significance, but thought to report what I noticed, in case you can see any connection/relevance.

Post Reply

Return to “DebianDogs”