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

Format files accessed from Flatpak via portals #2891

Merged
merged 2 commits into from
Dec 4, 2023
Merged

Format files accessed from Flatpak via portals #2891

merged 2 commits into from
Dec 4, 2023

Conversation

amolenaar
Copy link
Member

PR Type

What kind of change does this PR introduce?

  • Bug fix
  • Feature
  • Chore (refactoring, formatting, local variables, other cleanup)
  • Documentation content changes

What is the current behavior?

On Flathub, Gaphor has a big "Potential risk" thingy. This is due to the requested file system access. Strictly speaking we do not need this permission, since we can open files via Portals.

Issue Number: flathub/org.gaphor.Gaphor#91

What is the new behavior?

Filenames of files accessed through Portals are shown with the file name only.

I added a remark at the end "(Flatpak Document Portal)", but I'm not sure if that's needed or even a good idea. Do average users care about Portals?

image

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

If we agree this is a good idea, we can drop the filesystem permissions for the next release.

@github-actions github-actions bot added the python Pull requests that update Python code label Dec 2, 2023
Try to hide the (ugly) mount folder name if flatpak is run without
filesystem permissions.
@danyeaw danyeaw added feature A new feature and removed python Pull requests that update Python code labels Dec 4, 2023
Copy link
Member

@danyeaw danyeaw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yay, I like this use of the portal! I'm not sure if we need the Document Portal text either, but let's roll with it.

@danyeaw danyeaw merged commit b4f1ad3 into main Dec 4, 2023
20 checks passed
@danyeaw danyeaw deleted the file-portal branch December 4, 2023 03:01
@amolenaar
Copy link
Member Author

The text is sort of similar to what you see in Text Editor, once you revoked filesystem access through Flatseal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants