Skip to content
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

Automatically Running g600 on startup #9

Open
Edwardius opened this issue Sep 25, 2023 · 1 comment
Open

Automatically Running g600 on startup #9

Edwardius opened this issue Sep 25, 2023 · 1 comment

Comments

@Edwardius
Copy link

Anyone know how to have the compiled ./g600 file run on startup? This is with Ubuntu 20.04.

@mafik
Copy link
Owner

mafik commented Sep 25, 2023

There are probably many ways to do this. One approach:

  1. Change the owner of the g600 binary to root (or any user that can access input devices): chown root:root ./g600
  2. Enable suid bit in the binary - so that any user can start it: chmod u+s ./g600
  3. Use the mechanism provided by your desktop environment to start the binary when the desktop starts. There seems to be something called "Startup Applications Preferences" in Ubuntu (based on https://linuxconfig.org/how-to-autostart-applications-on-ubuntu-20-04-focal-fossa-linux).

Another approach might be to write a systemd service file and start this as a "user service". Arch has some docs about this here: https://wiki.archlinux.org/title/systemd/User . This mechanism should work identically on any distro, so don't worry that it's not Ubuntu-specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants