Two solution:
1. Create a systemd user service
https://superuser.com/questions/1037466/how-to-start-a-systemd-service-af...
https://unix.stackexchange.com/questions/597990/enabled-systemd-user-serv...
2. Let kde switch back to old boot scripts, rather than current systemd
user instance, then you can use kde's autostart normally. It's not
recommanded.
https://blog.davidedmundson.co.uk/blog/plasma-and-the-systemd-startup/
在 2021/6/10 18:29, Patrick O'Callaghan 写道:
> I want to run something in the background on every login, but it
> requires a command-line argument to start up:
>
> insync-headless start
>
> I could just package it in a shell script and leave it at that, but
> surely there must be a way to do with directly from the Autostart
> settings? I've tried the "run in a terminal" option but to no avail.
>
> poc
> _______________________________________________
> kde mailing list -- kde(a)lists.fedoraproject.org
> To unsubscribe send an email to kde-leave(a)lists.fedoraproject.org
> 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/kde@lists.fedoraproject.org
> Do not reply to spam on the list, report it:
https://pagure.io/fedora-infrastructure
>