Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Execute scripts at kde start.(lack of scripting knowledge)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
MaDDeePee
Guru
Guru


Joined: 18 Aug 2004
Posts: 387
Location: Germany

PostPosted: Tue Oct 10, 2017 5:23 pm    Post subject: Execute scripts at kde start.(lack of scripting knowledge) Reply with quote

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! :D
Back to top
View user's profile Send private message
krinn
Watchman
Watchman


Joined: 02 May 2003
Posts: 7470

PostPosted: Wed Oct 11, 2017 8:49 am    Post subject: Reply with quote

here's a magic lifesaver to add to your script
Code:
touch /tmp/oh_i_m_alive

:)
Back to top
View user's profile Send private message
guitou
Guru
Guru


Joined: 02 Oct 2003
Posts: 534
Location: France

PostPosted: Wed Oct 11, 2017 12:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
MaDDeePee
Guru
Guru


Joined: 18 Aug 2004
Posts: 387
Location: Germany

PostPosted: Wed Oct 11, 2017 3:10 pm    Post subject: Reply with quote

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 :D

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"
?

8O

(the missing lib is in /opt/Superkaramba/ as well!) :?:

:wink:
Back to top
View user's profile Send private message
MaDDeePee
Guru
Guru


Joined: 18 Aug 2004
Posts: 387
Location: Germany

PostPosted: Wed Oct 11, 2017 3:51 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum