waylandgnome-shell

How to setup the screen size with dbus-run-session


When I debug a gnome shell extension, the gjs official documentation tell me use this command to test the new extension.

dbus-run-session -- gnome-shell --nested --wayland

But I got a 800x600 screen, so how can I change the screen size. man dbus-run-session no help.


Solution

  • It can be done by passing variable

    env MUTTER_DEBUG_DUMMY_MODE_SPECS=1024x768 \
    dbus-run-session -- gnome-shell --nested --wayland
    

    as described here

    But I steel not found how to position nested wayland window