zcot / conky-manager2

Fork of GUI for managing Conky widgets. Support added for latest conky config version, and works with Ubuntu 16-22, Mint 18-21 and more.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

At startup, search for conky's takes a long time!

Lowrida opened this issue · comments

All of a sudden it takes at least 15 seconds for conky-manager to start up. Before it was 5 seconds and it had all the conky's found. I tried starting conky-manager from the terminal, but that gave me no information on what it is doing while searching.

admin@p3300lx:~/.conky/MyPanels/release/koentje$ conky-manager2
[02:18:13] Desktop: cinnamon
[02:18:13] Themapakket gevonden [geïnstalleerd]: /usr/share/conky-manager2/themepacks/default-themes-2.1.cmtp.7z
[02:18:13] App-configuratie geladen: '/home/admin/.config/conky-manager2.json'
[02:18:26] Bezig met zoeken naar conkyrc-bestanden... 72 gevonden

The above one took 13 seconds.. but that was after i tried a few times, so this one seems a little quicker. But 15 - 20 seconds is most common!

commented

When you run conky-manager2 it will parse all files under the configured conky configs path recursively:

grep is used to distinguish which files should be managed: ^[[:blank:]]*TEXT[[:blank:]]*$\\|conky\\.text[[:blank:]]*=

So it opens every file to check if it has these words in it. Wow.. that explains a lot! With all the conky scripts, bash scripts, lua scripts, images files, tempfiles, logfiles etc etc there are 382 files in the ./conky folder and subs!

edit: and i just found what caused this slow start!? With my home made camera monitor system i log every wget command to get still images.. these logs can grow big if i don't delete them on time. When i just calculated with nemo how many files were in the ./conky folder i saw the folder was 4.9Gb in size!! Oops.. forgot to delete the logs! Now it start instantly like it should! I think i'm going to make a cron for that!