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

Updating to 2.3.0 breaks any application with a space in its name #78

Closed
MarshallOfSound opened this issue Apr 30, 2016 · 8 comments
Closed

Comments

@MarshallOfSound
Copy link
Member

MarshallOfSound commented Apr 30, 2016

As of 2.3.0 we are using a version of Squirrel.Windows that "fixes" the space = "%20" bug that has been around for a while. The problem is that some pre-existing applications have shortcuts set up with that '%20' in the name.

This means that updating to the new naming scheme breaks existing installations as these shortcuts stop working rendering the application useless and unstartable.

Not sure where this fix should go (probably Squirrel.Windows) but posting this here to warn other users

@MarshallOfSound
Copy link
Member Author

And as a side note it doesn't appear that you can un-update this patch, releasing another update using 2.2.0 to package the application still ends up with the new "fixed" exe name. I'm guessing it applies the fix on update aswell which means that somewhere there are 134 people staring at a borked update and there is nothing I can do about it 😢

@anaisbetts
Copy link
Contributor

Ugh, this sucks, sorry @MarshallOfSound. To work around this, developers should create the shortcut in their squirrel-updated hook (i.e. do the same thing they are doing in the install hook)

@MarshallOfSound
Copy link
Member Author

MarshallOfSound commented Apr 30, 2016

@paulcbetts Yep that's what I quickly did, but this brings up two issues still.

I think the fix for this is to add backwards compatibility with the old %20 scheme. E.g. When you receive the --processStart command check if the version with spaces or the version with %20 exists and start the one that does.

@MarshallOfSound
Copy link
Member Author

Also there is not yet a released version of windows-installer that has the Squirrel/Squirrel.Windows#670 fix in it which is also related to this shortcut issue.

@rgoliveira
Copy link

rgoliveira commented May 2, 2016

@MarshallOfSound, it was I who opened issue MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-#962. Today I updated to 3.2.4 and noticed the shortcut was created again, although you closed MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-#962 on MarshallOfSound/Google-Play-Music-Desktop-Player-UNOFFICIAL-@fd3ffe1.

Was this intentional as a way to fix this %20 problem?

@MarshallOfSound
Copy link
Member Author

@rgoliveira Yes, unfortunately the needs of the many outweighed the needs of the few 😢

The only way to get the update working was to force the shortcut upon everyone. Once someone (maybe me) gets around to fixing this issue I will revert our code so that the shortcut doesn't keep coming back 👍

@rgoliveira
Copy link

@MarshallOfSound I see... No big deal, just wanted to be sure 👍 Hope it gets fixed soon. Cheers 🍻

@MarshallOfSound
Copy link
Member Author

@paulcbetts I'm happy to keep using 2.2.0 (I don't see how I can upgrade with this issue) but is it possible to back release a 2.2.1 version with this commit 92b1ee4 in it?

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

3 participants