Support relative paths in playlist export

Bug #783232 reported by reacocard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Exaile
Fix Released
Wishlist
Mathias Brodala

Bug Description

The playlist export dialog should support using relative paths for exported playlists. This is necessary when creating playlist files that will be used with the same files but on other OSes, computers, or devices.

Offhand I can think of two ways to implement the user interface for this:

1) The export dialog gains a file chooser button to set the directory to export relative to, which will default to / (thus avoiding any special-casing). If the user attempts to set that path to a path not shared by all files in the current playlist, an error is displayed and the user is sent back into the dialog for choosing the relative path.

2) Instead of a full file chooser, auto-detect the common path elements and provide a means of selecting among them for them - this could be more intuitive and easier to use, but would be harder to implement and if the shared paths are really long could be awkward to display. I think this is the better option if we can handle it sanely however.

Related branches

Revision history for this message
reacocard (reacocard) wrote :

Relatedly, we should probably support relative paths for import as well, prompting the user for a path when a playlist using relative paths is imported. Not much use to be able to export relative paths if we can't use the resulting files. :)

Revision history for this message
Johannes Sasongko (sjohannes) wrote : Re: [Bug 783232] [NEW] Support relative paths in playlist export

For (2), other than creating our own widget similar to the one in
GtkFileChooser (does it have a name?), which is probably overkill, I can
only imagine using a combo box.

Revision history for this message
Brad Conte (brad-3w) wrote :

This is heavily seconded by me. Lack of support for relative paths in playlist export is the only reservation I have about using exaile exclusively. I love exaile, but due to how I sync media and playlists across various devices, I have to have relative paths in my playlists.

Revision history for this message
Mathias Brodala (mathbr) wrote :

Fixed with r4189. The export dialog has gained an option to enable export with relative paths. This option is enabled by default.

On playlist import, all relative track paths will simply be resolved to the directory of the playlist itself.

Changed in exaile:
assignee: nobody → Mathias Brodala (mathbr)
milestone: 0.3.x → 0.3.3.0
status: Confirmed → Fix Committed
Changed in exaile:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.