On Tue, 2021-06-29 at 19:37 +0100, Patrick O'Callaghan wrote: > On Tue, 2021-06-29 at 21:28 +0800, Qiyu Yan wrote: > > 在 2021-06-29星期二的 12:42 +0100,Patrick O'Callaghan写道: > > > I'm trying to get a specific service to start on login, and the > > > usual > > > method (KDE Autostart) isn't working so I'm trying to do it with > > > a > > > systemd unit: > > > > How is that not working? Is it due to systemd-xdg-autostart- > > generator? > > I need to call a command with an argument, but KDE Autostart only > allows you to specify the name of an executable with no arguments. > Even > putting it in a Shell script doesn't work because although the script > is called it immediately terminates, even though the exact same > command > when executed from the command line puts itself in the background, > which is what it's supposed to do. After re-reading systemd.service(1) I added the line: Type=forking to the service file, and now the script is not being terminated, which is what I wanted. IOW, this seems to be the solution, or at least *a* solution. There may be an alternate solution using KDE Autostart, but for now I'm satisfied. poc _______________________________________________ users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure