0

For using RoboVM on OSX, I need to edit a file called info.plist, which resides inside the contents of the application called Android Studio.

Last year I managed to edit the file for Android Studio 1.5 (right image), but I now installed Android Studio 2.13 and I didn't succeed (left image).

It seems that the contents of this application are read only. How do I edit this file? I only need to change one value.

enter image description here

1

Assuming you're an admin you can add write permission to the group using the chmod command:

sudo chmod g+w /path/to/info.plist

Update: Turns out they were launching the application directly from the disk image, which was likely mounted as read-only. Copying it to the local disk lets you make changes like this.

  • Thank you for your answer. I know the path to the .dmg file, but I do not know the path to the info.plist file which resides inside the contents of the package. The properties say that I have read and write access, but it says above it "Read only". I cannot say for example: /path/to/dmg/Contents/Info.plist – Z0q Sep 10 '16 at 13:41
  • Oh- this file lives inside a disk image? I assume the disk image is read-only then. Where will the file end up? Are you running this from the disk image or installing (copying) to a local disk? – MacManager Sep 10 '16 at 13:44
  • Yes, it does. I am not sure. When I open it, it shows two icons. Android Studio with a logo and a shortcut to the Applications folder. I just double click on Android Studio and it will launch the application. But as you can see in the screenshot: Previously I could just open the application directly from my desktop. The location is different now. – Z0q Sep 10 '16 at 13:45
  • Ah, you're just launching from the read-only disk image it sounds like. Try copying it it your Applications folder. Then control-click (right-click) on the copy in /Applications and select "Show Package Contents" and look for the file somewhere in there. – MacManager Sep 10 '16 at 13:48
  • Thank you very much. Looks like I just needed to copy it to my hard drive. I'm new to OSX :) Maybe you can update the answer? – Z0q Sep 10 '16 at 13:50

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .