Tuesday, April 30, 2024
 Popular · Latest · Hot · Upcoming
2
rated 0 times [  2] [ 0]  / answers: 1 / hits: 1498  / 2 Years ago, thu, november 3, 2022, 12:35:15

I recently started using conky, and I'm trying to have it run on startup. To do this, I've used the Startup Application program to run a shell script that starts conky. If I run this script manually, it works fine and conky shows up. However, conky doesn't seem to show up on startup. I can tell that the script runs, as I can see conky running in the system monitor, but nothing appears on my desktop.


This is the .desktop file that was created:


[Desktop Entry]
Type=Application
Exec=/home/nick/start_conky
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_CA]=Conky
Name=Conky
Comment[en_CA]=
Comment=

And my ubuntu version is 21.10 impish.
Any help would be greatly appreciated


More From » gnome

 Answers
0

Possibly conky is loading before the display is available, so it starts but never connects to the display. Try adding a --pause= argument to your conky call.


From man conky:


--
-p | --pause= SECONDS
Time to pause/wait before actually starting Conky.
--

I am also running 21.10 and ran into the same issue. Adding --pause=5 was enough of a delay to resolve the problem. Your timing may vary.


Edit:


I have another system with the same problem and this solution did not fix the problem. https://github.com/brndnmtthws/conky/issues/1087 suggests this is an issue with conky not waiting for Xwayland to load. I built the most recent version of conky and had the same issue.


As a quick-and-dirty workaround, I changed my startup to a script which calls conky, waits, and then forces conky to reload its configuration:


#!/bin/sh

killall conky
/usr/bin/conky -d
sleep 5
killall -SIGUSR1 conky

[#1075] Friday, November 4, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
izeeas

Total Points: 412
Total Questions: 105
Total Answers: 118

Location: Trinidad and Tobago
Member since Fri, May 8, 2020
4 Years ago
;