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

Application becomes translocated after auto-update #252

Open
jhohiselkeeper opened this issue Sep 28, 2020 · 4 comments
Open

Application becomes translocated after auto-update #252

jhohiselkeeper opened this issue Sep 28, 2020 · 4 comments

Comments

@jhohiselkeeper
Copy link

I have recently discovered that our Electron app is not properly installed at the /Applications directory after auto-update. The app does exist in the Applications directory, however it is still translocated.

Steps followed:
Install app via drag-and-drop in Finder to /Applications
Launch app with update available (app is not translocated)
Close application, Squirrel/ShipIt installs the new version (overwriting in the directory /Applications)
Launch updated app, app is translocated

This unfortunately causes future updates to not occur, as the app ends up running from a read-only disk image due to translocation.

The underlying cause of this issue seems to be related to using the rename(2) system call in installItemToURL to move the application from the temp directory back to /Applications.

$ sudo dtruss -a -s -t rename -n ShipIt

29632/0x846c5:    165237     268    157 rename("/var/folders/vh/yqwtvs497p7bd0tn091h0c180000gn/T/com.keepersecurity.passwordmanager.ShipIt.y1qHRve4/Keeper Password Manager.app\0", "/Applications/Keeper Password Manager.app\0")		 = 0 0
@XRenSiu
Copy link

XRenSiu commented Nov 15, 2021

I have the same question.

@peach365
Copy link

How did you solve this problem

@beyondkmp
Copy link

I have the same question.

@beyondkmp
Copy link

The problem I encountered has been resolved in this PR. electron/electron#36130

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

4 participants