artemgordinskiy / Spotifree

An OS X app that automatically mutes ads on Spotify [DISCONTINUED]
http://spotifree.gordinskiy.com
MIT License
1.05k stars 70 forks source link

System Information app forces open randomly when Spotifree is running #13

Closed ghost closed 11 years ago

ghost commented 11 years ago

Hi there,

I've noticed that the System Information utility opens both when I start Spotifree manually or if I set it to open at login. Afterwards, System Information will not quit or force quit once it is open. If I go into Activity Monitor and manually quit Spotifree, only then am I able to quit out of System Information app. It's interesting behavior. I don't know much about scripts but it looks like you do call upon the System Information utility to do some work. I appreciate this app; it's a blessing. Thanks for any feedback.

I am running a Macbook Pro with 10.7.5. Let me know if I can provide any more information.

EDIT: I realize now there have been updates to the script since my last download. I have replaced my current Spotifree app with the most recent and will let you know if this happens in the future.

artemgordinskiy commented 11 years ago

Hi Michael, The issue is gone, I assume?

ghost commented 11 years ago

I believe so. It has not happened in about four startups. I apologize for not downloading the new version before posting. Thanks for the help and the script!

On Mar 23, 2013, at 7:29 AM, Artem Gordinsky notifications@github.com wrote:

Hi Michael, The issue is gone, I assume?

— Reply to this email directly or view it on GitHub.

artemgordinskiy commented 11 years ago

You're welcome! I'm glad it's ok now :)

ghost commented 11 years ago

And then as soon as we closed this, it happened again on startup.

ghost commented 11 years ago

Same problem as ever.

ghost commented 11 years ago

when it happened, it showed the pop up about running on startup. it hadn't done this since reinstalling.

artemgordinskiy commented 11 years ago

It's really strange, as Spotifree does not interact with the System Information app at all. The only system app it does work with, is System Events, but it has no GUI.

You could download the debug version of Spotifree and replace the current one. It'll write its errors to the log file on your Desktop, so we could investigate further.

ghost commented 11 years ago

Okay I've replaced my version with the debug version. The next time it happens I will get some instructions from you as to how to retrieve the log file.

artemgordinskiy commented 11 years ago

You don't have to retrieve a log – the app should automatically create "Spotifree_log.txt" on your Desktop. So when the System Information app launches again, you can send the log to me.

ghost commented 11 years ago

Hi Artem,

When I started my computer today the following error wrote to the log file:


Monday, March 25, 2013 7:42:39 PM Error number: -1728 Error message: System Information got an error: Can’t get «class logi» "Spotifree".

Diagnostic message: checking if Spotify is in Login Items

So here's the state of my machine right now: The pop up window asking me if I wish to add Spotifree to the login items is open. System Information is open and will not quit. I had already previously authorized Spotifree to open at login. Let me know if you need any more information.

artemgordinskiy commented 11 years ago

That's helpful, thanks! I'll look into it. Thank you for your patience :)

artemgordinskiy commented 11 years ago

Okay, I have no idea why the System Information app got called in the first place. Also, I have not found any cause of the logged error. I guess 10.7.5 may have a bug in AppleScript itself, but I have no way to test it myself. I have removed all the functionality related to manipulating with the login items. If Spotifree is not in login items currently, you can add it yourself by going to the System Preferences → Users & Groups → Login Items. Here is the app. Please test it thoroughly. Do not forget to kill the Spotifree process from the Activity Monitor prior to running the updated version.

ghost commented 11 years ago

So you're saying kill the current Spotifree process, then replace the current version of the app with this new version, and finally, manually add it to the list of login items?

On Mar 26, 2013, at 4:14 AM, Artem Gordinsky notifications@github.com wrote:

Okay, I have no idea why the System Information app got called in the first place. Also, I have not found any cause of the logged error. I guess 10.7.5 may have a bug in AppleScript itself, but I have no way to test it myself. I have removed all the functionality related to manipulating with the login items. If Spotifree is not in login items currently, you can add it yourself by going to the System Preferences → Users & Groups → Login Items. Here is the app. Please test it thoroughly. Do not forget to kill the Spotifree process from the Activity Monitor prior to running the updated version.

— Reply to this email directly or view it on GitHub.

artemgordinskiy commented 11 years ago

Yes, exactly. If it isn't in your Login Items already.

ghost commented 11 years ago

Okay, done. Do you think it matters whether I select the "Hide" checkbox in Login Items? I'll let you know if I get any errors.

artemgordinskiy commented 11 years ago

Okay, thanks. I think it doesn't. The Dock icon is hidden by default.

ghost commented 11 years ago

Yeah so it just happened again on my last startup. There was no log file created, but I'm assuming you knew that. If you think this is an AppleScript bug then I can always go back to placing the icon in the dock and just manually starting it. When I do that, this error happens about 1/4 as often. Let me know if you have any other suggestions.

Thanks again,

Michael

artemgordinskiy commented 11 years ago

Hi Michael, Are you by any chance planning to get Mountain Lion anytime soon? Maybe this would solve the issue. Other than that – I'm officially out of ideas.

ghost commented 11 years ago

Maybe if I upgrade to a solid state hard drive. My Macbook Pro is a late 2007 and when I updated to Lion it slowed down considerably. So for right now I'll just deal with it. Thanks for all the help. Feel free to close it up. If I find a fix or update my machine I will email you.

Michael

On Mar 28, 2013, at 3:03 PM, Artem Gordinsky wrote:

Hi Michael, Are you by any chance planning to get Mountain Lion anytime soon? Maybe this would solve the issue. Other than that – I'm officially out of ideas.

— Reply to this email directly or view it on GitHub.

artemgordinskiy commented 11 years ago

As a last resort, you could use a cracked version of Spotify, with both audio and visual ads ripped out. Here is how to get it: Please notice, If there are any applications in your /[user]/Applications folder (as opposed to HD/Applications), ask for different instructions. If there are none, follow the instructions closely:

  1. Download the cracked Spotify app and replace the current one;
  2. Before starting it, execute these commands in Terminal: chmod a-w ~/Applications chmod a-w /Applications/Spotify.app These directories shall now be writable only by root, so Spotify will not be able to auto-update without asking for your password.
  3. Start up Spotify and press "Cancel" on password prompt. Also, disregard the update notifications. Always press "Cancel" on password prompts. Otherwise, Spotify will update itself and you'll get all the ads back.

I hope it helps.

ghost commented 11 years ago

This scares me a little bit. But I'll let you know if I give it a shot.

Edelstone

On Mar 29, 2013, at 1:28 AM, Artem Gordinsky notifications@github.com wrote:

As a last resort, you could use a cracked version of Spotify, with both audio and visual ads ripped out. Here is how to get it: If there are any applications in your /[user]/Applications folder (as opposed to HD/Applications), ask for different instructions. If there are none, follow the instructions closely:

  1. Download the cracked app and replace the current one;
  2. Before starting it, execute these commands in Terminal (to prevent auto-update): chmod a-w ~/Applications (if User/Applications/ is not your active folder) chmod a-w /Applications/Spotify.app
  3. Start up Spotify and press "Cancel" on password prompt. Disregard the update notifications. Always press "Cancel" on password prompts. Otherwise, Spotify will update itself and you'll get all the ads back.

I hope it helps.

— Reply to this email directly or view it on GitHub.

artemgordinskiy commented 11 years ago

Ok. It's completely safe. I'm using it now.

ghost commented 11 years ago

Thanks for the tip. I'll check this put tomorrow.

On Mar 29, 2013, at 1:45 AM, Artem Gordinsky notifications@github.com wrote:

Ok. It's completely safe. I'm using it now.

— Reply to this email directly or view it on GitHub.

ghost commented 11 years ago

I'm going to try downloading the ad-free version. The recent updates to spotify are terrible anyhow. I'll let you know how it goes. Thanks.

artemgordinskiy commented 11 years ago

Hi, how is it going?

ghost commented 11 years ago

The version that I downloaded wouldn't load content in the main section or on the "people following" sidebar. Instead a message appeared indicating that I was missing a key component of some kind. I didn't pay much attention to it and promptly reverted back to the newest Spotify.

It's really not a big deal. I like being able to update to the newest software whenever possible.

I'm pretty happy with the setup I have now. I just run Spotifree manually each time I start Spotify and there are no problems.

Thanks again,

Michael

On Apr 18, 2013, at 3:53 AM, Artem Gordinsky notifications@github.com wrote:

Hi, how is it going?

— Reply to this email directly or view it on GitHub.