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

Symlink Spotify app instead of copying it #2

Closed
citelao opened this issue Jun 26, 2013 · 8 comments
Closed

Symlink Spotify app instead of copying it #2

citelao opened this issue Jun 26, 2013 · 8 comments

Comments

@citelao
Copy link
Contributor

citelao commented Jun 26, 2013

Symlinking the custom Spotify app to the ~/Spotify directory should allow easier updates.

PHP has a standard filesystem library. I believe symlink() works.

@vdesabou
Copy link
Owner

That's what I used to do:

screencapture

But many users got issues with it, so I ended up doing a "cp -R"

I think i tried to use symlink but did not manage to make it work (I'm a newbie in PHP)

The copy is only done once, the first time the workflow is launched after an update, so it is quite acceptable :-)
But if you manage to use symlink, I'll steal your code !

Are you planning to use the same Spotify App?

Thanks

@citelao
Copy link
Contributor Author

citelao commented Jun 26, 2013

First I want to test speed differences for search using the metadata API vs the app API, then I'll try implementing my own program.

I'll do some tinkering with symlinks and see what I get.

@citelao
Copy link
Contributor Author

citelao commented Jun 26, 2013

What errors where people getting? Perhaps ~/Spotify didn't exist?

@vdesabou
Copy link
Owner

No, it existed but it was not a valid directory. As if the sym link was corrupted

Le 26 juin 2013 à 19:19, Ben Stolovitz notifications@github.com a écrit :

What errors where people getting? Perhaps ~/Spotify didn't exist?


Reply to this email directly or view it on GitHub.

@citelao
Copy link
Contributor Author

citelao commented Jun 26, 2013

You need to mkdir ~/Spotify and then symlink to ~/Spotify/miniplayer— otherwise it won't work.

On Wednesday, June 26, 2013 at 1:29 PM, vdesabou wrote:

No, it existed but it was not a valid directory. As if the sym link was corrupted

Le 26 juin 2013 à 19:19, Ben Stolovitz <notifications@github.com (mailto:notifications@github.com)> a écrit :

What errors where people getting? Perhaps ~/Spotify didn't exist?


Reply to this email directly or view it on GitHub.


Reply to this email directly or view it on GitHub (#2 (comment)).

@vdesabou
Copy link
Owner

I did that:

exec("mkdir -p ~/Spotify");
exec("ln -s '".$w->path()."/spotify-app-miniplayer' ~/Spotify");

Shouldn't it be working?

@citelao
Copy link
Contributor Author

citelao commented Jun 26, 2013

Try

exec("ln -s '".$w->path()."/spotify-app-miniplayer' ~/Spotify/miniplayer");

On Wednesday, June 26, 2013 at 1:49 PM, vdesabou wrote:

I did that:
exec("mkdir -p ~/Spotify"); exec("ln -s '".$w->path()."/spotify-app-miniplayer' ~/Spotify");
Shouldn't it be working?


Reply to this email directly or view it on GitHub (#2 (comment)).

@citelao
Copy link
Contributor Author

citelao commented Jun 26, 2013

See pull request #3

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

No branches or pull requests

2 participants