Bug 381349 - Relative path for audio files not working
Summary: Relative path for audio files not working
Status: RESOLVED WORKSFORME
Alias: None
Product: parley
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: parley bug tracker
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-18 07:32 UTC by René Fritz
Modified: 2022-12-08 05:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
fixes relative paths handling in reader (2.22 KB, patch)
2017-08-12 14:22 UTC, René Fritz
Details

Note You need to log in before you can comment on or make changes to this bug.
Description René Fritz 2017-06-18 07:32:16 UTC
When you add an audio file in editor mode the absolute path of the file is shown and you can play the audio file.

When the  vocabulary file is saved the absolute path of the audio is converted to a relative which is the expected behaviour.

But when the vocabulary file is loaded the relative path is not handled correctly and the audio file can't be played. When clicking the play button following error message is on the console:

GStreamer; Unable to pause - "file:Assets/au02834218_ew_0001.mp3"
GStreamer; Unable to pause - "file:Assets/au02834218_ew_0001.mp3"
Error: "Could not open resource for reading."

Parley Version 2.1.0
Comment 1 René Fritz 2017-07-19 14:13:49 UTC
I found this change which might be related

https://git.reviewboard.kde.org/r/129992/diff/3/
Comment 2 René Fritz 2017-07-19 14:17:14 UTC
The bug is already mentioned here:

https://mail.kde.org/pipermail/kde-edu/2017-March/013344.html
Comment 3 Christoph Feck 2017-08-01 19:20:03 UTC
Is your Parley version from the KDE Applications 17.04 package? You could check Dolphin version number, but applications do not need to come from the same package.
Comment 4 René Fritz 2017-08-01 20:08:49 UTC
Yes 17.04 package. From Neon user packages.
Comment 5 René Fritz 2017-08-12 14:22:36 UTC
Created attachment 107232 [details]
fixes relative paths handling in reader

if (QUrl::fromLocalFile(currentElement.text()).isRelative()) ...

did not work because the url has a scheme and a scheme means it's not relative.

My knowledge of Qt is veeeery limited, so I hope the patch makes sense.
Comment 6 René Fritz 2017-08-12 14:48:03 UTC
added patch to review board https://git.reviewboard.kde.org/r/130224/
Comment 7 Justin Zobel 2022-11-08 06:50:12 UTC
Thank you for reporting this issue in KDE software. As it has been a while since this issue was reported, can we please ask you to see if you can reproduce the issue with a recent software version?

If you can reproduce the issue, please change the status to "REPORTED" when replying. Thank you!
Comment 8 Bug Janitor Service 2022-11-23 05:14:27 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 9 Bug Janitor Service 2022-12-08 05:14:00 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!