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

Detect mounted devices using system capability on Linux #13107

Open
acolombier opened this issue Apr 15, 2024 · 0 comments
Open

Detect mounted devices using system capability on Linux #13107

acolombier opened this issue Apr 15, 2024 · 0 comments

Comments

@acolombier
Copy link
Contributor

Currently on Linux, mounted devices are detected by listing directory in /media or /var/media. This isn't ideal as:

  1. User may have defined custom mount directory (e.g using udisk) for specific devices
  2. System may have configuration to mount device somewhere else

Options for improving this could be to:

  1. Parse the content of /proc/mounts / result of df commands (easy, not able to detect available but not yet mounted devices)
  2. Integrate with udisk dbus (complete but significant amount of work)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant