-
Notifications
You must be signed in to change notification settings - Fork 567
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
profiles: fractal: add ~/.local/share/fractal #6392
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs additional work:
- add
blacklist ${HOME}/.local/share/fractal
todisable-programs.inc
- add
noblacklist ${HOME}/.local/share/fractal
tofractal.profile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR, LGTM now.
Thanks for the looking over it, I amended my previous commit. I should have probably taken a bit more time to look over the differences between the structure of the last release and master. By the way, while debugging this I noticed some accessibility-related errors because of missing access to I didn't see a Though I assume people that need this might want to just put it in their global config anyway. |
If that is exposed via D-Bus we might consider adding it to fractal.profile:
Alternatively we could whitelist ${RUNUSER}/at-spi/bus in the included |
only adding that still leaves it with
Is there a preferred way of documenting settings with different keyword but related to the same feature? The most elegant way to do this would probably be a conditional, but creating one (and looking where else it should be used) would definitely be out-of-scope of this PR. |
Thanks for testing a11y. A conditional would be nice, but like you stated, that's out of scope here. Personally I'd leave out any comments regarding a11y and open a separate issue for it so we can add that in later. @kmk3 What do you think? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm on Arch using Fractal 7 and firejail 0.9.72. Even after fixing #6119,
using Fractal with firejail would either not work (without Internet access)
or show me "Crypto identity incomplete" when using it with, as it stores
(encrypted) messages and key material in ~/.local/share/fractal.This patch fixes that issue for me. Let me know if you'd like me to open an
issue first to discuss the problem there before accepting a pull request
This PR is very simple and self-contained; opening an issue first is more so for
changes that are more complex and/or that affect many files.
or if you have any advice or improvements.
The current commit message title is very long (>72 characters):
$ git show --pretty='%s' -s ba0425fe09
profiles: fractal: mkdir and whitelist ~/.local/share/fractal as it is used for message and key storage
$ git show --pretty='%s' -s ba0425fe09 | tr -d '\n' | wc -m
103
Also, the changes are fairly obvious from the PR title, but for completeness you
could include in the commit message the context from the PR description, such as
the error message.
Suggestion:
profiles: fractal: add ~/.local/share/fractal
Fractal 7 on Arch either does not work (without Internet access) or
shows "Crypto identity incomplete", as it stores (encrypted) messages
and key material in ~/.local/share/fractal.
See the following for details:
Agreed. The more self-contained a PR is, the easier to review. The current changes look good as is and the a11y changes seem a bit trickier. After this PR you could open another one with the a11y changes for fractal and |
Fractal 7 (and possibly earlier) stores messages and key material in ${XDG_DATA_DIR}/fractal which defaults to ~/.local/share/fractal. Lack of access causes it to be unable to load messages offline and de- or encrypt messages even when online without sharing keys again.
Thanks for the feedback and the link @kmk3, I'm pretty new to this. I have adjusted my commit message so everything should be good now. |
No problem; the new message looks good. You made a good attempt to follow the existing conventions and feedback, so Looking forward to more contributions :) |
I'm on Arch using Fractal 7 and firejail 0.9.72. Even after fixing #6119, using Fractal with firejail would either not work (without Internet access) or show me "Crypto identity incomplete" when using it with, as it stores (encrypted) messages and key material in ~/.local/share/fractal.
This patch fixes that issue for me. Let me know if you'd like me to open an issue first to discuss the problem there before accepting a pull request, or if you have any advice or improvements.