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

Unable to use it on Macbook Pro (2012) with 10.8.2 #1

Closed
jagdishadusumalli opened this issue Feb 13, 2013 · 7 comments
Closed

Unable to use it on Macbook Pro (2012) with 10.8.2 #1

jagdishadusumalli opened this issue Feb 13, 2013 · 7 comments
Labels

Comments

@jagdishadusumalli
Copy link

Hey,
I was basically having an issue with js2coffee plugin path on sublimetext 2 as below
nibblebot/sublime-js2coffee#5

Then came across this stackoverflow link to resolve the path problems on mac for GUI apps.
http://stackoverflow.com/questions/135688/setting-environment-variables-in-os-x/

Tried to install the EnvPane but am getting an error as
"You can’t open Environment Variables preferences
because it doesn’t work on an Intel-based Mac"

Screenshot attached
Screen Shot 2013-02-13 at 7 41 09 PM

@hschmidt
Copy link
Owner

I can reproduce this. Working on a fix. In the mean time, could you please post any relevant system log messages (see Console app) that occur when you attempt to open the "Environment Variables" preference pane?

@jagdishadusumalli
Copy link
Author

13/02/13 11:33:25.682 PM System Preferences[58283] net.hannesschmidt.EnvPane failed to load.
-[__NSDictionaryI toArrayOfEntries]: unrecognized selector sent to instance 0x7fc61940bd20
13/02/13 11:34:44.384 PM CoreServicesUIAgent[58290] Error: qtn_file_apply_to_path error: Read-only file system
13/02/13 11:36:15.469 PM Locum[58294] Connection with distnoted server was invalidated

Hope this helps..Thanks

@hschmidt
Copy link
Owner

Ok, that's what I am getting. As a workaround, you can run

mkdir ~/.MacOSX

before opening the preference pane.

@jagdishadusumalli
Copy link
Author

Tried that..still facing same issue..
New message..appears on trying to open the pane second time
"Could not load Environment Variables preference pane"

@hschmidt
Copy link
Owner

Shoot, yes, I've overlooked something. This should do it:

mkdir -p ~/.MacOSX && cat > ~/.MacOSX/environment.plist <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
</dict>
</plist>
EOF

New version with fix will be out soon.

@hschmidt
Copy link
Owner

... and restart System Preferences afterwards.

hschmidt added a commit that referenced this issue Feb 13, 2013
Create ~/.MacOSX, if necessary before writing to environment.plist in it.
@hschmidt
Copy link
Owner

Fixing this revealed another, similar problem: #2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants