ubports / ubuntu-touch

A simple and beautiful mobile OS for everyone! This repository is for Ubuntu Touch issue tracking. It does not contain any code used to create Ubuntu Touch.
https://ubports.com
1.28k stars 110 forks source link

media-hub (Media Player app) fails to open file with filename containing '#' (sharp) symbol #2018

Open Talkless opened 1 year ago

Talkless commented 1 year ago

Steps to reproduce

Expected behavior

Media file should be played regardless of it's file name contents, if that file name contains Linux-supported filename characters.

Actual behavior

"Error playing video", "Fail to open the source video." message box, media file is not played.

Also, it says "video" when opening audio-onlyfiles (mp3, opus) too, but that's other cosmetic issue.

Logfiles and additional information

$ tail -f ~/.cache/upstart/media-hub.log -n0
media-hub: 
media-hub: Requested state change.
media-hub: Setting state: lomiri::MediaHubService::Engine::State::stopped
media-hub: 
media-hub: apparmor profile name: unconfined
media-hub: is_unconfined(): true
media-hub: has_package_name(): false
media-hub: Warning: Failed to open uri file:///home/phablet/.cache/Media Player/HubIncoming/12/Joe Rogan Experience because it can't be found.
media-hub: 
media-hub: ==== Pausing all other multimedia player sessions
media-hub: 
media-hub: ==== Updating the current player
media-hub: Requested state change.
media-hub: State changed on playbin: READY

Note: "because it can't be found.".

Flohack74 commented 1 year ago

Good catch. Say thanks to Qt ;) - but we can probably fix it...