I want to set the windows size in bash script but I don't know which command is used to set the windows size.
When open the File Browser in Ubuntu Desktop, and then change the Windows size of the File Browser by dragging the bottom-right corner of File Browser, and then close the Window and reopen the File Browser, the windows size will change to the last size.
Here is the picture of File Browser:
Where is the config file for storing the last updated windows size of File Browser? Or what bash command can be used to set the windows size?
To open a nautilus window from a script with a specific size, you can first customize the dconf setting
org.gnome.nautilus.window-state initial-size
to the size you want.will open a new nautilus window with the desired size.