LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux Mint (https://www.linuxquestions.org/questions/linux-mint-84/)
-   -   Why Conky disappears? (https://www.linuxquestions.org/questions/linux-mint-84/why-conky-disappears-4175729270/)

MintVictim 09-25-2023 06:41 AM

Why Conky disappears?
 
Hello, I installed Linux Mint MATE 21.1 on an old laptop.

Among many issues, yesterday I came across this problem with Conky I'll explain here, hoping any of you extraordinaire Linux gurus can help fix or troubleshoot.

When the laptop reboots or starts, after a while the taskbar and Conky appear normally, Conky appears on the right, with some cutomizations like colors I made, everything seems to be working well then.

Then I have to wait several seconds until the (only 4!) desktop icons finally appear but 1 second before they appear, Conky disappears. :(

When I reboot or log off, Conky briefly appears again, showing it was running all along, hidden by something or some layer on top that is invisible to me. Not sure what it is or which log would show more details about this.

I tried several tweaks, changes but nothing fixed this problem so far. Can someone please help?

After this text, I'll post a few more details about my current Conky configuration.

This is a part of my .conkyrc config file. I tried own_window_type desktop but in that case, when I click on the desktop, Conky disappears, so I found override seemed to work better.

Code:

double_buffer yes
no_buffers yes
text_buffer_size 2048

gap_x 05
gap_y 0
minimum_size 190 325
maximum_width 325
own_window yes
own_window_type override
own_window_transparent no
own_window_hints sticky,skip_taskbar
border_inner_margin 0
border_outer_margin 0
alignment tr

This is the script executed during startup, I tested and confirmed it's being executed. I tried many changes, like sleep for 5, 10, 20, 25, 30 seconds, nothing worked. I think 20 or 25 work fine, because with those values Conky shows properly at startup, the issue is something else, some apparently invisible layer that appears on top and makes Conky disappear a few instants before desktop icons appear.

Code:

#!/bin/sh
#sleep 20

# Kill Conky If Running
test -z "`pgrep conky`" || killall -9 conky

conky -p 25 -d -c /home/user/.conkyrc


pan64 10-04-2023 10:01 AM

Code:

#instead of this:
test -z "`pgrep conky`" || killall -9 conky
# you can use simply:
pkill conky # (probably works without -9)

Otherwise would be nice to see the logs or console output of conky or other details, hard to say anything.


All times are GMT -5. The time now is 10:12 PM.