[opensuse-support] [Leap 15] Running a script at startup automatically
I have a script which starts a multimedia server: /home/bob/Serviio/serviio-2.1/bin/serviio.sh When run in a terminal, it works as expected. When the script is added to Settings > System Settings > Startup and Shutdown > Autostart > Script File, it doesn't. The file is owned by bob and is executable. What voodoo am I missing? -- Bob Williams System: Linux 5.3.18-lp152.47-default Desktop: KDE Frameworks: 5.71.0, Qt: 5.12.7 and Plasma: 5.18.5 https://useplaintext.email/
On 11/11/2020 14.59, Bob Williams wrote:
I have a script which starts a multimedia server:
/home/bob/Serviio/serviio-2.1/bin/serviio.sh
When run in a terminal, it works as expected. When the script is added to Settings > System Settings > Startup and Shutdown > Autostart > Script File, it doesn't. The file is owned by bob and is executable.
What voodoo am I missing?
You will have to say what desktop you are running, then someone that is familiar with that desktop can tell you. I assume you want the script to run when the desktop starts. -- Cheers / Saludos, Carlos E. R. (from 15.1 x86_64 at Telcontar)
Op woensdag 11 november 2020 14:59:34 CET schreef Bob Williams:
I have a script which starts a multimedia server:
/home/bob/Serviio/serviio-2.1/bin/serviio.sh
When run in a terminal, it works as expected. When the script is added to Settings > System Settings > Startup and Shutdown > Autostart > Script File, it doesn't. The file is owned by bob and is executable.
What voodoo am I missing? Easy path is to create a symlink in /home/bob/.config/autostart
-- Gertjan Lettink a.k.a. Knurpht openSUSE Forums Team
On Wednesday, 11 November 2020 13:59:34 GMT Bob Williams wrote:
I have a script which starts a multimedia server:
/home/bob/Serviio/serviio-2.1/bin/serviio.sh
When run in a terminal, it works as expected. When the script is added to Settings > System Settings > Startup and Shutdown > Autostart > Script File, it doesn't. The file is owned by bob and is executable.
What voodoo am I missing?
I had a similar problem a long time ago. if "#!/bin/sh" is not the first line of the script, it tends to go bad. I've just tested my start up script without it and when it eventually got to the desktop and I loaded any program, i didn't have an window title bars or decorations for that program. -- opensuse:tumbleweed:20201108 Qt: 5.15.1 KDE Frameworks: 5.75.0 - KDE Plasma: 5.20.2 - kwin 5.20.2 kmail2 5.15.2 (20.08.2) - akonadiserver 5.15.2 (20.08.2) - Kernel: 5.9.1-1-default - xf86-video-nouveau: 1.0.16
participants (4)
-
Bob Williams
-
Carlos E. R.
-
Ianseeks
-
Knurpht-openSUSE