Skip to content

qml: Add a "show containing directory" entry in contextual menu of medialibrary items

On medialibrary items we should add a contextual menu that allows to open the folder containing the media in the system explorer, We already do this for the playlist, see playlist_controller.cpp

image

some notes:

  • Code of the contextual menu for ML items is located in MLContextMenu.qml

  • It is possible to open URL with external application using QDesktopService from C++ or qt.openUrlExternally from QML

  • We should open the containing folder, not the URL itself

  • We should probably only propose this for local files

  • We should propose this options for media that have a url/mrl (a genre doesn't have an url)

  • We shouldn't open folder for more than one item (don't launch 50 browsers)

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information