Jump to content
citelao

Spotifious: a natural Spotify controller for Alfred

Recommended Posts

Doesn't seem to work with Alfred 4.

 

I'm getting a segmentation fault on the main.php script when I start Spotifious in Alfred 4.

 

[10:49:11.232] ERROR: Spotifious[Script Filter] Code 139: /bin/bash: line 3: 50585 Segmentation fault: 11  php -f main.php -- ""

Press the hotkey

See "Getting Spotifious data..."

After a few seconds, goes back to the regular Alfred prompt

 

(Tried reinstalling)

Share this post


Link to post

It seems unlikely that Alfred 4 is causing a segfault in PHP. Which version of macOS are you using?

Share this post


Link to post

Duh, you're right.  Put in the absolute path to the system PHP ('/usr/bin/php') and it works again.  Was using the Homebrew version based on the path.

 

 

Share this post


Link to post
Posted (edited)
2 hours ago, Tim H said:

Was using the Homebrew version based on the path.

 

That’s odd. Have you changed your $PATH in launchd? Normally, /usr/local/bin isn’t on your path in Alfred.

 

I also wonder why it was segfaulting. That’s really not supposed to happen.

 

Anyhow, glad it’s working

Edited by deanishe

Share this post


Link to post
8 hours ago, deanishe said:

 

That’s odd. Have you changed your $PATH in launchd? Normally, /usr/local/bin isn’t on your path in Alfred.

 

I also wonder why it was segfaulting. That’s really not supposed to happen.

 

Anyhow, glad it’s working

 

Thanks for your help!

 

10 hours ago, Tim H said:

Duh, you're right.  Put in the absolute path to the system PHP ('/usr/bin/php') and it works again.  Was using the Homebrew version based on the path.

 

 

 

I'm glad you fixed it, too!

Share this post


Link to post
20 hours ago, deanishe said:

 

That’s odd. Have you changed your $PATH in launchd? Normally, /usr/local/bin isn’t on your path in Alfred.

 

 

Actually, just noticed that Spotifious sets the path to `/usr/local/bin` explicitly in the script filter, so it will pick up Homebrew PHP if it's there. 

 

# Add Homebrew to path for those who need :)
export PATH="/usr/local/bin:${PATH}"

php -f main.php -- "{query}"

# In case you are experiencing unsolveable issues,
# you can generate a log file to help me. Modify the
# first line of this script so it looks like this:
# php -f main.php -- "{query}" | tee ~/Desktop/Spotifious.log

 

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...