View previous topic :: View next topic |
Author |
Message |
calvin1857 n00b
Joined: 15 Nov 2012 Posts: 13
|
Posted: Tue Jan 21, 2014 10:57 am Post subject: [Solved]autorun a script after kde starts |
|
|
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 |
|
|
aCOSwt Bodhisattva
Joined: 19 Oct 2007 Posts: 2537 Location: Hilbert space
|
Posted: Tue Jan 21, 2014 11:13 am Post subject: |
|
|
Launch System Settings => Startup & Shutdown => Autostart
Then Add Program... | Add Script _________________
|
|
Back to top |
|
|
calvin1857 n00b
Joined: 15 Nov 2012 Posts: 13
|
Posted: Tue Jan 21, 2014 11:15 am Post subject: |
|
|
Thanks aCOSwt,
But I have already tried your method and it fails.
Any other ideas?
Thanks |
|
Back to top |
|
|
Kidov n00b
Joined: 20 Jul 2006 Posts: 56 Location: Finland
|
Posted: Tue Jan 21, 2014 2:05 pm Post subject: |
|
|
Have you tried running any other scripts at startup, just to make sure autostartup works? |
|
Back to top |
|
|
calvin1857 n00b
Joined: 15 Nov 2012 Posts: 13
|
Posted: Tue Jan 21, 2014 3:13 pm Post subject: |
|
|
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 |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Tue Jan 21, 2014 3:21 pm Post subject: |
|
|
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 |
|
|
calvin1857 n00b
Joined: 15 Nov 2012 Posts: 13
|
Posted: Tue Jan 21, 2014 3:48 pm Post subject: |
|
|
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 |
|
|
calvin1857 n00b
Joined: 15 Nov 2012 Posts: 13
|
Posted: Tue Jan 21, 2014 4:00 pm Post subject: |
|
|
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 |
|
Back to top |
|
|
GFCCAE6xF Apprentice
Joined: 06 Aug 2012 Posts: 295
|
Posted: Tue Jan 21, 2014 4:09 pm Post subject: |
|
|
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
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 |
|
Back to top |
|
|
Yamakuzure Advocate
Joined: 21 Jun 2006 Posts: 2284 Location: Adendorf, Germany
|
Posted: Wed Jan 22, 2014 12:27 pm Post subject: |
|
|
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:- "Aha" - German reaction to pretend that you are really interested while giving no f*ck.
- "Tja" - German reaction to the apocalypse, nuclear war, an alien invasion or no bread in the house.
|
|
Back to top |
|
|
|