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
List external disk drives in FileDialog on Linux #1118
Comments
Mint 13 here, udisks and udisksctl are both available. |
Thanks. @diizy Mint 13 is based on Ubuntu 12.04LTS, but 12.04 doesn't have
|
udisks2: |
Thanks. This means However, I suggest only supporting udisks2, as implementing the feature for both udisks and udisks2 would be too much effort, and udisks doesn't even have a C library. Therefore we'll have to make udisks2 an optional dependeny and disable the feature where it's not available. |
Note: Qt 5.4 probably solves this issue for us on all platforms with QStorageInfo. |
LMMS requires Qt 5.6 now, so it could be implemented quite easily(not only for Linux). |
LMMS on Windows has this feature already I think... There is QStorageInfo::mountedVolumes() but I don't see any way to mount volumes like you would with udisks. Displaying the mounted ones on Linux would maybe be helpful, but would that include /home and /var etc...? And subvolumes on btrfs...? I'm was trying to implement localized sorting and bak-files in the file browser, but the more I tried the deeper mess I got into. Now it has become something of a refactor... so I might as well look into this. |
Hello. Is @lukas-w still tackling this issue? I'd like to work on this since I happen to specialise in linux internals (at least in theory). So, not only does this make for a great first issue, it'll help me easily put into perspective some of the interactions of LMMS with the OS (in this case, retrieving block device data) and understand coding conventions and community! |
@Owl-A I'm glad you're up for the task! But I'm not sure QStorageInfo provides the best solution... Guess we'll see when you've dug deeper. |
@Owl-A I see no activity here so I'm unassigning you. Please bump us if you're still deep into this. :) |
Does anyone is working on it? It could be a good start for me. |
@MrTopom Have a go! 👍 |
Just like we did with OS X (see #1058), we should find a way to list external drives on Linux.
On OS X, we just included the
/Volumes
directory, which contains all mounted drives, and new drives automatically get mounted and land in there. On Linux however, it's not that easy. Because of the many flavours of Linux, there's no common place for mounting disks, and on top of that, they might not even be mounted.So the proper way to do this would be using the udisk API. As far as I know, udisk or udisk2 is shipped with most popular distros.
However, to make sure, I'd like to ask everyone to try if the commands
udisks
and/orudisksctl
are available on their Linux system, and write the result and the used distro here. Thanks 🍺Oh and if someone else than me wants to tackle this, feel free to assign yourself to the issue, as I probably won't be able to do it very soon.
The text was updated successfully, but these errors were encountered: