kando-menu / kando

🥧 The Cross-Platform Pie Menu.
https://ko-fi.com/post/Kando-1-0-0-released-G2G5Z1DOS
Other
1.18k stars 25 forks source link

Change `~/.config/Kando` to lower-case - `~.config/kando` #411

Closed KAGEYAM4 closed 1 month ago

KAGEYAM4 commented 1 month ago

Everything in ~/.config/ is lowercased, kando is the only one with uppercase. Can you please change the folder to have lower-case letter.

KAGEYAM4 commented 1 month ago

I just checked and this maybe an issue with electron, every applications that i have on my system that uses electron has first-letter-capital in .config

Schneegans commented 1 month ago

Yeah, that's the Electron default behavior. I think it can be overridden, though. I'll look into it. However, even if it's possible, I'll most likely defer this to the 1.0.0 release as it's going to be a very breaking change :wink:

KAGEYAM4 commented 1 month ago

For reference you can use this - https://github.com/sunner/ChatALL

Schneegans commented 1 month ago

I did some investigations... This is a surprisingly difficult thing! I guess there is a reason why most Electron apps stick to the upper-case config directory :sweat_smile:

I have found a solution though. It's not pretty, but it seems to do the trick. If somebody else finds a better solution, I would be very open! For future reference, here is what I attempted:

The current solution

I have now used run-script-os to execute npm pkg delete productName on Linux before every build and instead set the productName for the deb and rpm packagers. As a consequence, the package.json file will always contain changes after the build process. This is not a real problem, but it may be confusing.