Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
delaying conky startup [solved]
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
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Wed Oct 03, 2007 4:08 pm    Post subject: delaying conky startup [solved] Reply with quote

I'm trying to run conky automatically when I start xwindows, but if I put it in my session profile (I'm using gnome), it gets started before the desktop background image is loaded. Unfortunately when this happens it's no longer visible, and I have to kill it and manually restart it. How can I run conky when I start xwindows, but with a delay?
_________________
The door resists!


Last edited by aleron on Fri Oct 05, 2007 2:11 pm; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Wed Oct 03, 2007 4:15 pm    Post subject: Reply with quote

You could use something like `(sleep 2 && conky) &`, I remember using something like that before for the same thing.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Wed Oct 03, 2007 7:25 pm    Post subject: Reply with quote

Awesome, thanks. :)
_________________
The door resists!
Back to top
View user's profile Send private message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Fri Oct 05, 2007 1:57 pm    Post subject: Reply with quote

When I throw it in the session properties as the conky command, it doesn't start up (I'm assuming the && is throwing it off). Where else could I put the command other than gnome-session-properties?

edit:

Nevermind, I just threw it in a sh script and gave the script as the command to gnome-session-properties and it works fine. :P
_________________
The door resists!
Back to top
View user's profile Send private message
Naib
Watchman
Watchman


Joined: 21 May 2004
Posts: 6051
Location: Removed by Neddy

PostPosted: Fri Oct 05, 2007 4:20 pm    Post subject: Reply with quote

gnome-session-proporties provides you with the option to "priorities" starting apps

However... I dont' get my background being over-written???

what is yr conky file, you are probably missing an option (to be more gnome-friendy)
_________________
Quote:
Removed by Chiitoo
Back to top
View user's profile Send private message
aleron
n00b
n00b


Joined: 07 Jul 2007
Posts: 33

PostPosted: Wed Oct 10, 2007 12:06 pm    Post subject: Reply with quote

Here are the relevant portions of my .conkrc file (I'm using gnome btw, which is why I have to have the options like this):

Code:
own_window_transparent yes
own_window_type override
own_window yes
double_buffer yes


Again, this is only an issue if conky starts before the desktop background gets loaded. If I manually start conky, or use a script with a delay like I am now so that it starts after the background is loaded, it's a non-issue. I'm sure this behavior is related to the fact that I'm using the transparent option, which causes conky to use the relevant portion of the desktop background as it's background (to simulate transparency). Maybe conky is getting a handle to a display resource for the background (or something akin to acquiring the desktop's HDC on a win32 system) which might not be valid after the background image gets loaded.

Either way, the problem is solved for me. Now if I could only find a conky developer so I can figure how to get the mouse click coordinate translation issue fixed. :P
_________________
The door resists!
Back to top
View user's profile Send private message
Knute
Guru
Guru


Joined: 28 Jun 2004
Posts: 362
Location: Fargo, ND

PostPosted: Wed Oct 10, 2007 9:40 pm    Post subject: Reply with quote

So what happens if you set the "own_window_type" to desktop?
_________________
Knute
----------
The human race has one really effective weapon, and that is laughter.
-- Mark Twain

If you want proof of that, take a look at windows sometime. :)
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