Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]autorun a script after kde starts
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
calvin1857
n00b
n00b


Joined: 15 Nov 2012
Posts: 13

PostPosted: Tue Jan 21, 2014 10:57 am    Post subject: [Solved]autorun a script after kde starts Reply with quote

Hi,
I am trying to start conky when kde starts. So i am used this commonly used script

#! /bin/bash
feh --bg-scale `grep 'wallpaper=' ~/.kde/share/config/plasma-desktop-appletsrc | tail --bytes=+11`
sleep 15
conky -&

and saved it as conkystart.sh and did chmod +x to it. Now if I call the script from terminal or even execute it by double clicking it, it launches conky fine as expected.

But I am unable to autorun this script on kde startup. I tried putting it in $HOME/.config/autostart and $HOME/.kde4/Autostart and $HOME/.kde4/share/Autostart both directly and symlinking it but non of the above ways work.

What am I doing wrong? I am using kde 4.11

Thank you


Last edited by calvin1857 on Tue Jan 21, 2014 4:00 pm; edited 1 time in total
Back to top
View user's profile Send private message
aCOSwt
Bodhisattva
Bodhisattva


Joined: 19 Oct 2007
Posts: 2537
Location: Hilbert space

PostPosted: Tue Jan 21, 2014 11:13 am    Post subject: Reply with quote

Launch System Settings => Startup & Shutdown => Autostart

Then Add Program... | Add Script
_________________
Back to top
View user's profile Send private message
calvin1857
n00b
n00b


Joined: 15 Nov 2012
Posts: 13

PostPosted: Tue Jan 21, 2014 11:15 am    Post subject: Reply with quote

Thanks aCOSwt,
But I have already tried your method and it fails.
Any other ideas?

Thanks
Back to top
View user's profile Send private message
Kidov
n00b
n00b


Joined: 20 Jul 2006
Posts: 56
Location: Finland

PostPosted: Tue Jan 21, 2014 2:05 pm    Post subject: Reply with quote

Have you tried running any other scripts at startup, just to make sure autostartup works?
Back to top
View user's profile Send private message
calvin1857
n00b
n00b


Joined: 15 Nov 2012
Posts: 13

PostPosted: Tue Jan 21, 2014 3:13 pm    Post subject: Reply with quote

Hi ,
Thanks Kidov , as per your suggestion, i tried a few more scripts in autostart mode using kde but they all failed.
I am clueless

thanks
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Tue Jan 21, 2014 3:21 pm    Post subject: Reply with quote

I can't say I ever had this issue when setting up kde before, just to be sure though: are the scripts executable and working before trying to have kde execute them?
Back to top
View user's profile Send private message
calvin1857
n00b
n00b


Joined: 15 Nov 2012
Posts: 13

PostPosted: Tue Jan 21, 2014 3:48 pm    Post subject: Reply with quote

hi ,
yeah they are executable and work when opened via konsole or by double clicking.

By the way , is there something wrong with my script ?
Back to top
View user's profile Send private message
calvin1857
n00b
n00b


Joined: 15 Nov 2012
Posts: 13

PostPosted: Tue Jan 21, 2014 4:00 pm    Post subject: Reply with quote

Hey..
Sorry to bother you guys but now its working. It was my mistake.
Initially the shell script was hidden having the name .conkystart.sh , after changing it to conkystart.sh - its working

Sorry Guys :oops:
Back to top
View user's profile Send private message
GFCCAE6xF
Apprentice
Apprentice


Joined: 06 Aug 2012
Posts: 295

PostPosted: Tue Jan 21, 2014 4:09 pm    Post subject: Reply with quote

Oops, well I see again now in the op, I was reading a load of threads from the past few days and just started typing away :P

It seems you just fixed it anyway, but I guess it must be 'OK' if it works, I'm not sure what the first line does? feh? Some kind of wallpaper setting app but sourcing kde settings? Can kde not start and set the paper and you create some entry for autostarting just conky? Or does conky act a little weird on kde desktop? I had many oddities in the past with conky so blah :lol:
Back to top
View user's profile Send private message
Yamakuzure
Advocate
Advocate


Joined: 21 Jun 2006
Posts: 2284
Location: Adendorf, Germany

PostPosted: Wed Jan 22, 2014 12:27 pm    Post subject: Reply with quote

Just a question, why are you using feh with KDE?

You just have to Autostart it and set it's config to contain:
Code:
 $ grep "own_" /etc/conky/conky.conf
own_window yes
own_window_class Conky
own_window_type desktop
to have it be placed upon your wallpaper in KDE. At least this is what I did and it works since KDE 4.1 this way.
_________________
Important German:
  1. "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
  2. "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments 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