Do we really need /mnt permissions?

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Domain
desktop, security

Research direction

Review the app's Flatpak permission declarations for /media, /mnt, and /run/media, then verify whether projects on USB storage still work without them. Done means unnecessary permissions are removed while those project scenarios continue to function; confirm any remaining edge cases in the issue thread.

Written by the indexing model from the issue text.

Description

Hi,
OpenCode requires these permissions:

  - --filesystem=/media
  - --filesystem=/mnt
  - --filesystem=/run/media

I removed these permissions on my end, and everything works as expected, even with projects running from a USB stick.
I guess that if we can remove them, it would help clean up some scary nonsense on Flathub. Like this one:

Image
Dominant language
Python
Stars
1
Forks
3
Avg merge
22h 35m
Merged PRs (30d)
3

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from flathub/ai.opencode.opencode

All issues in flathub/ai.opencode.opencode

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.