Automattic / studio

Studio by WordPress.com, a free desktop app that helps developers streamline their local WordPress development workflow.
https://developer.wordpress.com/studio/
GNU General Public License v2.0
184 stars 17 forks source link

Error when opening the app #204

Open menjilx opened 4 months ago

menjilx commented 4 months ago

Quick summary

I installed the Studio on my Mac and of course, the app is in my "application" folder already but every time I open the app, I will always prompt this error.

image

Steps to reproduce

  1. download Studio
  2. move the app to "Application" folder
  3. start the app

What you expected to happen

When you open the app.

What actually happened

Prompt warning

Impact

All

Available workarounds?

No and the app is unusable

Platform

Mac Intel

Logs or notes

No response

wojtekn commented 4 months ago

@menjilx thanks for your report. Could you please share the full path to Studio? Does it happen when you launch it from the correct directory using CLI?

open /Applications/Studio.app
menjilx commented 4 months ago

@menjilx thanks for your report. Could you please share the full path to Studio? Does it happen when you launch it from the correct directory using CLI?

open /Applications/Studio.app

Here's the studio app location.

image

And yes running the CLI command will trigger that warning prompt as well.

image
wojtekn commented 4 months ago

@menjilx, thanks for confirming that. I would like to know if it is an issue with Studio being placed in a read-only directory or another issue related to permissions. Could you check that part?

ls -al /Applications/Studio.app 
menjilx commented 4 months ago

@menjilx, thanks for confirming that. I would like to know if it is an issue with Studio being placed in a read-only directory or another issue related to permissions. Could you check that part?

ls -al /Applications/Studio.app 

Here's what I got @wojtekn

image
sejas commented 2 weeks ago

Hi @menjilx, could you try completely removing /Applications/Studio.app and downloading it again from https://developer.wordpress.com/studio ?

On my computer, the group for /Applications/Studio.app is set to staff instead of admin. However, I’ve already confirmed that this is likely not the root cause of the error, as Wojtek also has the group set to admin.

Image

FWIW, Here is the code that attempts to update Studio and displays the error message:

https://github.com/Automattic/studio/blob/587292a9a0e64bbee0b4c223cb228e10a47dab6a/src/updates.ts#L74-L77