Bug 468834 - wish: Delayed autostart of an application per user
Summary: wish: Delayed autostart of an application per user
Status: RESOLVED INTENTIONAL
Alias: None
Product: systemsettings
Classification: Applications
Component: kcm_autostart (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR wishlist
Target Milestone: ---
Assignee: Nicolas Fella
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-22 20:29 UTC by Joerg Schiermeier
Modified: 2023-07-07 21:16 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Joerg Schiermeier 2023-04-22 20:29:53 UTC
I would like to have the option to choose a delay in seconds when starting up an app/script/somethingelse via "Autostart".

SOFTWARE/OS VERSIONS
Operating System: Devuan GNU/Linux 5
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8
Kernel Version: 6.1.0-7-amd64 (64-bit)
Graphics Platform: X11
Processors: 16 × AMD Ryzen 7 2700X Eight-Core Processor
Memory: 62.7 GiB of RAM
Graphics Processor: NVIDIA GeForce GTX 1660/PCIe/SSE2

Some applications need a completely loaded and activated environment to start. This shouldn't be necessary, but ok - it happens. Others should wait until I'm also in place. Here are some examples for use cases: 

1.) The Google Drive: if it starts with autostart, it will crash or stall 
2.) Or to start my mail program one minute after login

I know this: https://bugs.kde.org/show_bug.cgi?id=456332 but seems not to be convenient.
Also, I know a similar feature from Gnome and Cinnamon: 
https://www.linuxuprising.com/2020/11/how-to-launch-startup-applications-with.html

Gnome has the "X-GNOME-Autostart-Delay=3" in Desktop files which reside in the user's "autostart" folder (~/.config/autostart) to manage the delayed start of individual applications. This would be nice also in KDE/plasma.
Comment 1 Alberto 2023-05-07 19:44:41 UTC
I have to say that this feature is needed for me too. A few apps that are started on wayland with xwayland crash, freeze, incorrectly working and so on, fixed before adding sleep to the launh command, but since the "new" way to work, is imposible to use it again...
Comment 2 Nicolas Fella 2023-05-18 13:05:42 UTC
In my testing not even Gnome supports X-GNOME-Autostart-Delay any more.

If you want to delay the start of a certain app you can write a script that starts the app after sleeping for the desired amount of time.

That said it seems like you want to use this to work around application bugs. Please report these to the application developers so that they can get properly addressed.
Comment 3 Joerg Schiermeier 2023-05-18 15:38:34 UTC
> That said it seems like you want to use this to work around application bugs. Please report these to the application developers so that they can get properly addressed.

NO.
Please see number #2: Or to start my mail program one minute after login.
Another point is to run my streaming radio player after my IDE is up and all files are loaded. Not before.

An error, caused by a bug or something else, will be reported in a suitable bug tracker.
Comment 4 Joerg Schiermeier 2023-07-07 16:46:36 UTC
(In reply to Nicolas Fella from comment #2)
> In my testing not even Gnome supports X-GNOME-Autostart-Delay any more.

Äh, from where you took this crazy idea?
Please see:
https://wiki.ubuntuusers.de/Autostart/#Autostart-verzoegern from January 23rd, 2023.

I don't agree with you to close this bug. If you have any questions about it, you may send me a private mail.
Comment 5 David Edmundson 2023-07-07 18:02:59 UTC
Gnome don't when they use the xdg-aurostart-generator.

We're not going to send any private email. Bug is closed. You can still leave comments.
Comment 6 Joerg Schiermeier 2023-07-07 21:16:43 UTC
(In reply to David Edmundson from comment #5)
> Gnome don't when they use the xdg-aurostart-generator.

I just read the specification for the "xdg-autostart-generator":
https://www.freedesktop.org/software/systemd/man/systemd-xdg-autostart-generator.html
This means in the first line for systemwide configurations, or?
Could not find something for a specific user.

And this wish is for KDE. So a specification for KDE will help.
My reference to GNOME was an example and should show a way to do it in a (not so) similar "Desktop Environment".

> We're not going to send any private email.
OK. I understand!