Bug 374624 - Relative paths to resources get a "/" that breaks them
Summary: Relative paths to resources get a "/" that breaks them
Status: RESOLVED FIXED
Alias: None
Product: kdenlive
Classification: Applications
Component: Rendering & Export (show other bugs)
Version: 16.12.0
Platform: Debian testing Linux
: NOR major
Target Milestone: ---
Assignee: Jean-Baptiste Mardelle
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-06 09:34 UTC by François
Modified: 2018-10-11 19:26 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description François 2017-01-06 09:34:09 UTC
When using Kdenlive 16.12 "relative paths" new feature, I noticed that sometimes (after a few saves?) a "/" gets added to the beginning of the path in the project file.

assets/audio/mysong.mp3
becomes
/assets/audio/mysong.mp3

This breaks the link to the resource when reopening the project file and a recursive search to fix it, changes it to an absolute path (which is not ideal in my case).

If I manually, remove the unwanted "/" in my project file, everything works again.

Thanks!
Comment 1 Jean-Baptiste Mardelle 2017-01-06 10:58:57 UTC
Thanks for your report. I have also encountered this issue a few times but was not able to reproduce to understand what causes it. In case you find a way to reproduce, please let me know.
Comment 2 Jean-Baptiste Mardelle 2017-01-06 11:19:56 UTC
Git commit fd4cad470fc004add0cb55b1316c93fbf9c62f95 by Jean-Baptiste Mardelle.
Committed on 06/01/2017 at 11:19.
Pushed by mardelle into branch 'Applications/16.12'.

Fix possible corruption on document saving (slash prepended to filename)

M  +2    -2    src/doc/kdenlivedoc.cpp
M  +7    -4    src/mainwindow.cpp
M  +4    -1    src/project/dialogs/archivewidget.cpp

https://commits.kde.org/kdenlive/fd4cad470fc004add0cb55b1316c93fbf9c62f95
Comment 3 François 2017-01-06 14:45:19 UTC
Thank you Jean-Baptiste! I will check if the problem happen again with your fix.

Unfortunately, I wasn't able to reproduce when it happened. I think that it happened after I made proxies from my clips, but I am not sure that it is related.