Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Lowrida opened this issue Aug 16, 2022 · 2 comments
Open

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

Lowrida opened this issue Aug 16, 2022 · 2 comments

Comments

@Lowrida
Copy link

Lowrida commented Aug 16, 2022

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!

@zcot
Copy link
Owner

zcot commented Aug 28, 2022

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:]]*=

@Lowrida
Copy link
Author

Lowrida commented Aug 29, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants