-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run start command on system load #12
Comments
Hi, thank you for your comment ! Your desktop environment (gnome) should probably allow you to configure this graphically, maiby : https://help.gnome.org/users/gnome-help/stable/shell-apps-auto-start.html.en ? |
Jersou's answer is the easiest way - use your DE's GUI to add it as a startup item. If you want a different approach (which will also unload it automatically when you leave the GUI) I have a pretty raw service unit file in my OBS build, this is just something I've been working on in the sidelines and isn't necessarily production-ready, but it might get you started, it definitely works (maybe it is production-ready after all, honestly):
Create this file as You may need to change the paths depending on your distro, but put it wherever it puts user unit files and change the Exec* lines in the unit file to wherever you have installed mouse-actions (and append -gui if you aren't installing the daemon-only version but only the GUI version). This one is setup for a standard installation in OpenSUSE TW because it comes from an OpenSUSE package, so change it as you require. (and yes, I will eventually be using the OBS service to build for other distros and DE's so you can have a deb file and a repo... one day in the future ;) ) |
Here is another proposition for that...
All this is in order the user not to be in the input/plugdev group which increases the security risks of other programs to be able to "listen" to all your input devices. The actual system service file, monitors the app for crashes and restarts it automatically. It does restart it also when the GUI is used to change the config (it is because the GUI kills the app and the service talks that as a crash).. Any suggestions for changes are welcome. Hope this helps. |
Hi, first of all thank you for creating this library, I am a huge fan of easystroke but it stopped working on Debian 12 (gnome 43). So because of that I found your library and it is awesome.
I have a question if it is possible to launch the start command on system load so user can use mouse actions without starting any script.
I tried to create custom service in systemd but I got KeyboardError.
Thank you for your work and have a nice day!
The text was updated successfully, but these errors were encountered: