ublue-os / beyond

Cassidy’s playground for GNOME experiments
Apache License 2.0
54 stars 6 forks source link

Automatically configure GNOME extensions upon login #80

Open cassidyjames opened 1 year ago

cassidyjames commented 1 year ago

I think the direction I'd like to move with Beyond is more opinionated and faster-moving with the desktop experience. E.g. if I dial in some settings or a new extension and want to ship those, existing users of Beyond should get those new extensions and settings the next time they reboot.

For this, I think we'd need to just install the extensions (and maybe reset the related GSettings to default?) on every login. Perhaps there should be a way to opt out of this for folks who know they want to fiddle with things (maybe even on my own machine since I'm testing new things out!), but the default experience of Beyond should be that you get the new stuff as soon as it ships without having to reset GSettings or run a command.

xalt7x commented 1 year ago

Isn't it the way it works now?

You specify extensions in config

/etc/dconf/db/local.d/01-ublue

[org/gnome/shell]
enabled-extensions = ['activities-filled-pill@verdre', 'dash-to-dock@micxgx.gmail.com']

And then system reloads config at startup

/etc/systemd/system/dconf-update.service /usr/bin/dconf update


The only thing that might help is the extension lock

_/etc/dconf/db/local.d/locks/dont_disable_extensions /org/gnome/shell/disable-user-extensions

Because in some cases GNOME could disable all user extensions and user needs to either revert gsettings set org.gnome.shell disable-user-extensions false or reset setting dconf reset -f /org/gnome/shell/disable-user-extensions