Cairo-Dock / cairo-dock-core

Core part of Cairo-Dock project.
http://glx-dock.org
GNU General Public License v3.0
186 stars 46 forks source link

Allow 3 digits prefix for unique filename #11

Open AlexanderWKoenig opened 3 years ago

AlexanderWKoenig commented 3 years ago

Hi there, i've got an issue with more custom launchers than 98. When creating the 99nth launcher , the following error is shown: "Couldn't create create the icon. Check that you have writing permissions on ~/.config/cairo-dock and its sub-folders"

The issue is in the function cairo_dock_generate_unique_filename in cairo-dock-utils.c, with doesnt allow prefix numbers higher than 98. With theese changes i could create one more custom launcher (prefixed with 99), but the next launcher I want to create is buggy. Its shows up in the dock but the unique file isnt created, Every next launcher i create inherits all configs from the previous one, which gets overwritten when saving it.

Could someone look into this please? It would be really nice to create more custom launchers than 98.

AlexanderWKoenig commented 3 years ago

With the latest commit, you can now create more than 98 custom launchers, Everything seems to work nice, but the code looks quite ugly. Anyway it works for me ;)