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

Nonsensical folder names #1098

Closed
ben2talk opened this issue Oct 21, 2023 · 1 comment
Closed

Nonsensical folder names #1098

ben2talk opened this issue Oct 21, 2023 · 1 comment
Labels
question Further information is requested

Comments

@ben2talk
Copy link

Question:
I would like to know why, when I can find ~/config/strawberry, and ~/.config/blender, and ~/.config/calibre I cannot find ~/.config/foliate.

It seems the 'standard' for locating and naming files is ignored and some 'com.github.jonfactotum' must be appended.

Version:

  • foliate 2.6.4-3
  • OS/Distribution and version: Manjaro
  • Desktop environment: KDE 5.27.8
  • Installation method: Repo (Pacman)

This causes problems when the program bugs out, for example the library view containing books no longer present, which don't get removed - I want to simply clear the preferences by renaming ~/.config/foliate but find that there are many other folders and it is not so trivial or simple to do the job (as it is with most other software).

@ben2talk ben2talk added the question Further information is requested label Oct 21, 2023
@johnfactotum
Copy link
Owner

It seems the 'standard' for locating and naming files is ignored and some 'com.github.jonfactotum' must be appended.

The reverse domain name thing is pretty common. It's used by many GNOME apps, e.g. GNOME Text Editor.

I would like to know why

I don't think there's any spec that says you should use the reverse domain name for the data/config/cache directories, but many apps (and some libraries, such as WebKitGTK) simply use the application ID, which must be in reverse domain name notation, which is designed to avoid naming conflicts.

This causes problems when the program bugs out, for example the library view containing books no longer present, which don't get removed - I want to simply clear the preferences by renaming ~/.config/foliate

  • The issue has nothing to do with preferences. That's simply how it behaves now and you can't fix it by clearing the preferences. (You could almost say that it's working as intended, as Foliate deliberately avoids tracking files. But see Hide missing files in Library View #582.)
  • Preferences are stored using GSettings. For how to clear those settings, see How can I purge *all* settings? #919.

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

No branches or pull requests

2 participants