View previous topic :: View next topic |
Author |
Message |
MaDDeePee Guru
Joined: 18 Aug 2004 Posts: 387 Location: Germany
|
Posted: Tue Oct 10, 2017 5:23 pm Post subject: Execute scripts at kde start.(lack of scripting knowledge) |
|
|
Hello,
i like to start my old retro superkaramba script @ kde bootup, so i added my
"superkaramba_starter.sh" as script at the KDE autostart options.
My problem: it just doesn't start up. no clue why!
thats the file:
Code: | #!/bin/bash
cd /opt/Superkaramba
/opt/Superkaramba/superkaramba "/opt/Stylebase/systemtux_1.2/systemtux.theme"
|
could anyone please tell me whats wrong or at least where i can watch smth like a console output for the reason of its failure?
(executing ./.config/autostart-scripts/superkaramba_starter.sh from bash starts it up, so i assume my .sh file is ok!)
Thanks! |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Oct 11, 2017 8:49 am Post subject: |
|
|
here's a magic lifesaver to add to your script
Code: | touch /tmp/oh_i_m_alive |
|
|
Back to top |
|
|
guitou Guru
Joined: 02 Oct 2003 Posts: 534 Location: France
|
Posted: Wed Oct 11, 2017 12:14 pm Post subject: |
|
|
Hello.
If kde runs as a specific user (not a kde user), it may then require exec permission on your script.
++
Gi) |
|
Back to top |
|
|
MaDDeePee Guru
Joined: 18 Aug 2004 Posts: 387 Location: Germany
|
Posted: Wed Oct 11, 2017 3:10 pm Post subject: |
|
|
krinn wrote: | here's a magic lifesaver to add to your script
Code: | touch /tmp/oh_i_m_alive |
|
very good point and so easy
ok, i redirected the execute line to that oh_i_am_alive file (by "&> /tmp/oh_i_am_alive" added to the line)
and it shows me_:
Code: | /opt/Superkaramba/superkaramba: error while loading shared libraries: libsuperkaramba.so.4: cannot open shared object file: No such file or directory |
for that reason i wanted to change the dir to the specific spript but it looks like a prior "cd" into the directory with the latter execution of the script isn't really a chance_INTO that directory.
Is there any way to "change the working path" for that line:
Code: | /opt/Superkaramba/superkaramba "/opt/Stylebase/systemtux_1.2/systemtux.theme" | ?
(the missing lib is in /opt/Superkaramba/ as well!)
|
|
Back to top |
|
|
MaDDeePee Guru
Joined: 18 Aug 2004 Posts: 387 Location: Germany
|
Posted: Wed Oct 11, 2017 3:51 pm Post subject: |
|
|
Is this any help?
Code: | file superkaramba
superkaramba: ELF 64-bit LSB executable, x86-64, version 1 (GNU/Linux), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, stripped
|
btw: sctipt got exec permissions...
|
|
Back to top |
|
|
|