media:/ protocol does not work in Qt/Gtk #142

Closed
opened 3 years ago by NicePics13 · 4 comments

Basic information

  • TDE version: R14.0.10
  • Distribution: Devuan Beowulf
  • Hardware: amd64

Description

media:/ protocol is not recognized by GTK/Qt application until you open file using the actual filepath (/media/user/mount) from within Konqueror. This fix is temporary though as it resets between different media and after a logout.

Native TDE applications and pure X programs like MPlayer or ImageMagick do not exhibit this problem.

GIMP
Opening 'media:/sdb1/dank.jpg' failed: volume doesn’t implement mount

SMPlayer (mpv backend)
Playing: media:/sdb1/Videos/stuff.mp4 [file] Cannot open file 'media:/sdb1/Videos/stuff.mp4': No such file or directory

Steps to reproduce

  1. Mount storage media
  2. Open file in GTK/Qt application via Konqueror's media:/ url

Screenshots

<!-- This is a comment. Please fill in the required fields below. The comments provide instructions on how to do so. Note: You do not need to remove comments. --> ## Basic information - TDE version: R14.0.10 - Distribution: Devuan Beowulf - Hardware: amd64 <!-- Use SL/* labels to set the severity level. Please do not set a milestone. --> ## Description media:/ protocol is not recognized by GTK/Qt application until you open file using the actual filepath (*/media/user/mount*) from within Konqueror. This fix is temporary though as it resets between different media and after a logout. Native TDE applications and pure X programs like MPlayer or ImageMagick do not exhibit this problem. **GIMP** `Opening 'media:/sdb1/dank.jpg' failed: volume doesn’t implement mount` **SMPlayer** (mpv backend) `Playing: media:/sdb1/Videos/stuff.mp4 [file] Cannot open file 'media:/sdb1/Videos/stuff.mp4': No such file or directory ` ## Steps to reproduce 1. Mount storage media 2. Open file in GTK/Qt application via Konqueror's media:/ url ## Screenshots <!-- If it seems useful, please provide provide one or more screenshots. -->
NicePics13 changed title from media:/ protocol does not work at first to media:/ protocol does not work 3 years ago
blu.256 changed title from media:/ protocol does not work to media:/ protocol does not work in Qt/Gtk 3 years ago
Collaborator

AFAIK media:// is only implemented by TDEIO and available for apps using it (TDE applications).

GTK-based apps use GVFS which does not seem to implement the media:// protocol. It is really annoying when you try do DnD something in GIMP from Konqueror. (Don't know about Qt apps though.)

What utterly surprises me is that "pure X applications" work for you with this protocol.

As such, it is not so much a TDE provblem, as GVFS et al. do not implement this protocol. The
best thing to do in this case would be some sort of workaround for non-TDE applications.

AFAIK media:// is only implemented by TDEIO and available for apps using it (TDE applications). GTK-based apps use GVFS which does not seem to implement the media:// protocol. It is really annoying when you try do DnD something in GIMP from Konqueror. (Don't know about Qt apps though.) What utterly surprises me is that "pure X applications" work for you with this protocol. As such, it is not so much a TDE provblem, as GVFS et al. do not implement this protocol. The best thing to do in this case would be some sort of workaround for non-TDE applications.
Owner

You can open the real folder of the media (right click and choose "open medium system folder". This will open the real location on the disk, so it should then we usable from non-TDE applications.

You can open the real folder of the media (right click and choose "open medium system folder". This will open the real location on the disk, so it should then we usable from non-TDE applications.
Poster

Yes, and opening a konsole window or even another file manager entirely; right-click drive, open in Double Commander works just fine (must test Krusader as well).

Yes, and opening a konsole window or even another file manager entirely; right-click drive, open in Double Commander works just fine (must test Krusader as well).
NicePics13 closed this issue 3 years ago
Owner

This is now definitely solved by #157.

This is now definitely solved by #157.
SlavekB added this to the R14.0.13 release milestone 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
4 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: TDE/tdelibs#142
Loading…
There is no content yet.