-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[Linux][udisks] Always mount optical media by default #20840
Conversation
I've tested this PR and it does what it should ;-) DVDs are mounted automatically and are not mounted if I set advancedsettings.xml to:
Just as a suggestion. The "Disc" menu option is still shown if I set the advancedsettings.xml to not automount it. I'm not too sure if this is something we can cover with this PR, but for me it would make sense if that disc menu is only shown if Kodi has successfully mounted the disc. Otherwise you can't do anything with that menu. The rest is fine and a 👍 from my side |
You can eject it just like today :) |
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.
an accident
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.
lgtm, thanks
I assume this needs to be added to the advancedsettings.xml in here... https://kodi.wiki/view/Advancedsettings.xml#File_system_settings ? And is it as follows for the default setting?
While I am at it, I note that |
@KarellenX yes, default is true but it's only used currently on Linux:
I also plan to kill it at some point. Dvds already work without being mounted the main issue is blurays but I'll get there eventually |
Near future? If yes, I'll just leave it out. If no, I'll add it but if you can remember to add the wiki needed tag when you kill it. I'll make note its for Linux only. |
Definitely not for v21 so please add it. Thanks for looking into this :) |
Description
Currently the experience for optical discs (e.g. physical DVDs) is far from optimal on Linux. By default, once you insert a physical disc on your drive the default skin will show you have a DISC with options to play or eject:
However, to be able to play the disc you have to mount it manually on your desktop environment. This is only true is Kodi is not running standalone (e.g. without providing the
--standalone
arg or running kodi-standalone.sh). If running standalone, the handlemounting advanced setting will be set totrue
automatically and any discs will be automounted by kodi (all of them, including DVDs/BRs). While I understand the reason for this distinction so distros like Libreleec that run kodi standalone can handle generic disc mounting (while modern DEs automatically mount media for us) I think that by default Kodi should have an exception for optical discs. DEs like gnome, for example, do not automount DVDs by default without further settings/configs by the user.IMHO if kodi, as a GUI application, shows in the UI that a disc is available for playback, it should be able to play it. It should handle the mounting of the optical disk on behalf of the user. This behaviour should be default... and at most... advanced users could disable it via an advancedsetting (not the opposite).
That's what this PR does, by default Kodi (udisks and udisks2 storage providers) mounts optical media unless "automountopticalmedia" advanced setting is set to false. "handleautomounting" bypasses this setting since it mounts ALL discs (optical or not).
Motivation and context
Improve UX, make it simpler for users to watch their media without having to dive into the code or read 1500 wikis and forum posts :). For example the handlemounting advanced setting was not even documented anywhere.