Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use relative path to save playlist #362

Closed
JohnCPun opened this issue Mar 6, 2016 · 6 comments
Closed

Use relative path to save playlist #362

JohnCPun opened this issue Mar 6, 2016 · 6 comments

Comments

@JohnCPun
Copy link

JohnCPun commented Mar 6, 2016

Make a playlist of various songs.
Save the play list.
Now copy the songs and playlist to another location.
Open the playlist.

The playlist can't open the songs as in the playlist a absolute path is stored.
It would be nice if the playlist would store a relative path, so the songs can be opened when copying like this.

For myself I see it mostly as being able to set up a playlist on my PC at home and then copy it to the laptop I have at the rehearsal space, which I use for live shows, etc. Right now I can't do that and have to make the playlist on the laptop I will be using live (or edit the path in the XML).

@trebmuh trebmuh mentioned this issue Mar 6, 2016
Closed
@trebmuh
Copy link
Member

trebmuh commented Mar 6, 2016

It might be related to #353

@xjjx
Copy link
Contributor

xjjx commented Mar 6, 2016

Actually , items on playlists can use relative paths. I use it in that way, but you need create/tweak your playlist manualy i.e. it works only for load, not for save.
I also added support for load song relative to Jack Session ( SESSION_DIR environment variable ).
( SongReader::getPath method in code ).
Maybe it should search for file also in directory where playlist is stored ?

@xjjx
Copy link
Contributor

xjjx commented Mar 6, 2016

Oh .. and I see that I added also support for save playlist during saving session ( JackSession ). It copy all songs to session directory and use relative paths on new playlist ;-)

@mauser
Copy link
Member

mauser commented Mar 10, 2016

Hm, maybe this should an option in the playlist dialog. If we would store only relative paths, i bet somebody comes around who wants to move his playlist around (on the same pc) and does not like relative paths in the playlist.

@JohnCPun
Copy link
Author

Yeah, that is pretty much guaranteed :)
So making it an option sounds like the best way to go.

@mauser
Copy link
Member

mauser commented Mar 25, 2016

Hi,

this is now implemented. I've added an option to the preferences dialog which allows you to configure if the playlist uses relative or absolute paths.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants