acyed / qtFx

Simple Qt program for changing the colors on Alienware 17
Apache License 2.0
17 stars 7 forks source link

Great little util, one question #5

Open WildWeasel109 opened 3 years ago

WildWeasel109 commented 3 years ago

Hi,

This is an excellent utility and works well on my Alienware 17 R1. I do however have a question. What's the best way to execute the program so it starts automatically (running Linux Mint)?

Thanks

Ian

tkizm1 commented 3 years ago

how about use systemd

vi /lib/systemd/system/v2.service

[Unit]
Description=v2 service
After=network.target

[Service]
Type=simple
PIDFile=/run/v2.pid
ExecStart=/opt/v2ray/v2ray -config /opt/v2ray.config
ExecStop=-/sbin/start-stop-daemon --quiet --stop --retry QUIT/5 --pidfile /run/v2.pid
TimeoutStopSec=5
KillMode=mixed
Restart=on-failure
RestartSec=3

[Install]
WantedBy=multi-user.target
WildWeasel109 commented 3 years ago

Thanks for the response, I can get qtFx to start up automatically but it doesn't have a profile to load. How do I pass Region = All and Color = Cherry for example through the command line?

Ian