Skip to content

Commit

Permalink
Automatic refresh of library failing when path contains space #619
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Dec 2, 2023
1 parent 3e5b225 commit cd6fc12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spotify-mini-player/src/action.php
Original file line number Diff line number Diff line change
Expand Up @@ -457,7 +457,7 @@ function main($query, $type, $add_to_option)
exec('launchctl stop com.vdesabou.spotify.mini.player');
exec('launchctl unload -w ~/Library/LaunchAgents/com.vdesabou.spotify.mini.player.plist');
exec('rm ~/Library/LaunchAgents/com.vdesabou.spotify.mini.player.plist');
exec('sed -e "s|:INTERVAL:|'.$interval_in_seconds.'|g" "'.exec('pwd').'/src/com.vdesabou.spotify.mini.player-template.plist'.'". > ~/Library/LaunchAgents/com.vdesabou.spotify.mini.player.plist');
exec('sed -e "s|:INTERVAL:|' . $interval_in_seconds . '|g" \'' . exec('pwd') . '/src/com.vdesabou.spotify.mini.player-template.plist\' > ~/Library/LaunchAgents/com.vdesabou.spotify.mini.player.plist');
exec('launchctl load -w ~/Library/LaunchAgents/com.vdesabou.spotify.mini.player.plist');
exec('launchctl start com.vdesabou.spotify.mini.player');
displayNotificationWithArtwork($w, 'Refresh of library every '.$setting[1].' minutes', './images/settings.png', 'Settings');
Expand Down

0 comments on commit cd6fc12

Please sign in to comment.