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

flatpak hardening #34

Closed
paolostivanin opened this issue Dec 27, 2017 · 1 comment
Closed

flatpak hardening #34

paolostivanin opened this issue Dec 27, 2017 · 1 comment

Comments

@paolostivanin
Copy link
Owner

  • use only a specific folder (for example, app's .config folder)
  • update manifest
@paolostivanin
Copy link
Owner Author

paolostivanin commented Jan 3, 2018

One solution could be:
CMakeLists.txt

option(USE_FLATPAK_APP_FOLDER "Use the flatpak app's config folder, so the app doesn't require access to the user's home" OFF)

app.c

#ifdef FLATPAK
use_default_flatpak_folder()
#else
get_folder()
#endif

manifest.json:

"config-opts": ["-DUSE_FLATPAK_APP_FOLDER=ON"],

paolostivanin added a commit that referenced this issue Jan 3, 2018
when using flatpak, the user can't select a location for the database. Instead, the app's config folder will be used.
In this way, the app doesn't need access to the user's home filesystem.

fix #34
@paolostivanin paolostivanin added this to the 1.0.5 milestone Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant