This project provides a daemon to monitor login events from the lock screen to the desktop on GNOME. When a login event is detected, it reloads the user extensions using gsettings
.
- Node.js and npm installed
pm2
installed globally
-
Clone the repository:
git clone https://github.com/jcppkkk/gnome-extensions-watchdog.git cd gnome-extensions-watchdog
-
Install dependencies:
npm install
-
Install
pm2
globally if you haven't already:npm install -g pm2
-
Start the daemon using
pm2
:pm2 start watchdog.js --name gnome-extensions-watchdog --watch
-
Set up
pm2
to start on system boot:pm2 startup
Follow the instructions provided by the command to enable the startup script.
-
Save the current process list:
pm2 save
- The script
watchdog.js
usesgdbus
to monitor login events from the lock screen to the desktop. - When a login event is detected, it executes the following commands to reload the user extensions:
gsettings set org.gnome.shell disable-user-extensions true gsettings set org.gnome.shell disable-user-extensions false
You can customize the script as needed by editing watchdog.js
.
Feel free to submit issues or pull requests. Contributions are welcome!
This project is licensed under the MIT License. See the LICENSE file for details.