hschmidt / envpane Goto Github PK
View Code? Open in Web Editor NEWEnvPane - An OS X preference pane for environment variables
License: Other
EnvPane - An OS X preference pane for environment variables
License: Other
I am using the downloaded EnvPane-0.6 from the link mentioned in the repo.
El Capiton 10.11.6.
I logged in as an admin.
Log:
0:48:37 ece-al EnvAgent[8525]: Started agent /Users/damodar/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (8525)
Jun 5 10:48:38 ece-al EnvAgent[8525]: Setting environment
Jun 5 10:48:38 ece-al EnvAgent[8525]: Setting 'DYLD_INSTALL_LIBRARIES' to '/user/mylib.dlib' using XPC launchd API.
Jun 5 10:48:38 ece-al EnvAgent[8525]: Exiting agent /Users/damodar/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (PID 8525)
Jun 5 10:48:38 ece-al com.apple.xpc.launchd[1] (com.apple.xpc.launchd.user.domain.504.100007.Aqua): Caller not allowed to perform action: EnvAgent.8525, action = set dyld environment variable, code = 150: Operation not permitted while System Integrity Protection is engaged, uid = 504, euid = 504, gid = 20, egid = 20, asid = 100007
Jun 5 10:49:45 ece-al System Preferences[8479]: Saving environment to /Users/damodar/.MacOSX/environment.plist
When installing the pane, I get this error: "Failed to write agent's launchd job description." and the pane is empty.
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
What version of OS X are you using (or attempting to use) EnvPane on?
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
Did you install EnvPane as an administrative user?
Can you provide relevant system.log messages? You can use the Console
application to get those: Hit Cmd-Space, type Console
, hit enter (the Console
app should open), click on system.log
on the left, click the search bar at
the top and type Env
to filter the list. Copy and paste it below but be sure
to redact any confidential informations such as account names, IP addresses etc.
Nov 7 12:36:43 xxx-macOS System Preferences[15533]: Could not read environment from plist at /Users/xxxx/.MacOSX/environment.plist.
Nov 7 12:36:43 xxx-macOS System Preferences[15533]: Error: Error Domain=EnvLib Code=0 "Failed to write agent's launchd job description." UserInfo={NSLocalizedDescription=Failed to write agent's launchd job description.}
Because [@"" componentsSeparatedByString:...]
returns @[ @"" ]
we end up with envlib_unsetenv()
being invoked unnecessarily with the empty string.
Hi,
I just noticed that with my home directory being mounted from a EXT4 formatted disk on the server, the env pane does not work. It installs but when I try to open it it says "Failed to load/start agent".
With my local admin account it works without problems.
hi
on El Capitan, when i try to install, i get "Failed to write agent's launchd job description"."
http://www.pixhoster.info/f/2016-09/93bb4bdc340fbe366736bf244ab2f465.png
any plans to upgrade?
thx!
Feature: Dinamic env values like JavaHome
Exemple:
JAVA_HOME = $(/usr/libexec/java_home)
Admittedly not the greatest of errors, but it just caused some confusion. If you see any way to fix it, it would be nice.
To recreate
Workaround: Restart iTerm
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
Latest official, 0.6
What version of OS X are you using (or attempting to use) EnvPane on?
Sierra
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
Current user only
Did you install EnvPane as an administrative user?
No
Can you provide relevant system.log messages? You can use the Console
application to get those: Hit Cmd-Space, type Console
, hit enter (the Console
app should open), click on system.log
on the left, click the search bar at
the top and type Env
to filter the list. Copy and paste it below but be sure
to redact any confidential informations such as account names, IP addresses etc.
If I put the following in /etc/launchd.conf
:
setenv PATH /opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
As a consequence of that PATH
for Applications gets modified from:
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
to
/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
If I comment the line from above in /etc/launchd.conf
, reboot and use EnvPane to set the PATH
, the PATH
does not get prefixed with /opt/local/bin:/opt/local/sbin:
in normal applications. As far as I can see EnvPane is creating:
~/.MacOSX/environment.plist
in my $HOME
with the following content:
<?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>
<key>PATH</key>
<string>/opt/local/bin:/opt/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin</string>
</dict>
</plist>
But it looks like OS X does not use the content of ~/.MacOSX/environment.plist
. Is there something wrong with your agent?
How do I test? I wrote a small Java program dumping put the PATH
as follows:
public class Main {
public static void main (String[] args) {
System.out.println("PATH=" + System.getenv().get("PATH"));
}
}
My expectation of EnvPane is to get the environment variable in my application exact the same way as I defined it in EnvPane itself, without rebooting my box, Please correct my if I am wrong.
I found the following output in my logfiles while filtering for net.hannesschmidt
:
3/24/13 9:48:08.410 AM EnvAgent[5645]: Started agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (5645)
3/24/13 9:48:08.413 AM EnvAgent[5645]: Exiting agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (5645)
3/24/13 9:52:35.191 AM EnvAgent[178]: Started agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (178)
3/24/13 9:52:35.281 AM EnvAgent[178]: Exiting agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (178)
3/24/13 9:53:25.570 AM EnvAgent[577]: Started agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (577)
3/24/13 9:53:25.573 AM EnvAgent[577]: Exiting agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (577)
3/24/13 9:54:27.833 AM EnvAgent[718]: Started agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (718)
3/24/13 9:54:27.837 AM EnvAgent[718]: Exiting agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (718)
3/24/13 9:54:27.932 AM com.apple.launchd.peruser.501[137]: (net.hannesschmidt.EnvAgent) Throttling respawn: Will start in 10 seconds
3/24/13 9:54:37.943 AM EnvAgent[736]: Started agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (736)
3/24/13 9:54:37.946 AM EnvAgent[736]: Exiting agent /Users/uwe/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (736)
Just tell me if you need more details or some other information. I am running 10.8.3 at the moment.
A cool feature is a option to enable/disable, think about proxy settings, perhaps the user wish disable at home and in the work enable it!
Thanks!
Title says it all. There is no dark theme in Mac OS Mojave.
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
0.6 downloaded from the releases on Github.
What version of OS X are you using (or attempting to use) EnvPane on?
Catalina version 10.15.7
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
Current user only (as required for it to work, I see the trick. 😄 )
Did you install EnvPane as an administrative user?
Yes my user is an admin and it asked for the password during install as I recall.
Can you provide relevant system.log messages?
Feature request, logs not needed.
Env Pane is a super nifty tool to easily manage env variables. My only concern is that the values are shown by default as fully as they can be. This means if someone is screen recording or sharing then the values could be leaked in full. Rather than doing a per-item toggle or password protect the whole entry (as #8 requested) it might be best to do all values as masked inputs. Then add a toggle for going between masked/cleartext mode to the right of each row.
This would allow all values to be safe, while only exposing those which you want to show for demonstration or educational purposes.
When recently installing EnvPane on a new MacOS 10.10 box, I misclicked and did the installation for all users. Trying to start it, I got a complaint that this is not supported and I need to uninstall and reinstall it for a single user. However, this apparently doesn't work, I'm stuck in an endless loop of uninstalling, reinstalling for the single user and getting the complaint that installation for multiple users is not supported. Apparently, "somewhere" "something" must have been stored by that initial mis-install, which I can't rid of by uninstalling. Any idea how to fix this?
Although changes to the variables are picked up when an app using that variable is restarted, if a variable is deleted, a restart of the computer is required.
The pref pane is just blank. I have tried restarting my computer.
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
v0.8, official release
What version of OS X are you using (or attempting to use) EnvPane on?
13.2.1
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
All users
Did you install EnvPane as an administrative user?
... I think? I only have one user on my computer.
Can you provide relevant system.log messages? You can use the Console
application to get those: Hit Cmd-Space, type Console
, hit enter (the Console
app should open), click on system.log
on the left, click the search bar at
the top and type Env
to filter the list. Copy and paste it below but be sure
to redact any confidential informations such as account names, IP addresses etc.
Looks like there aren't any
Hello @hschmidt:
This is just a quick note to let you know that I am recommending EnvPane to fldigi* on macOS users that require NLS support in their amateur radio operation.
Thanks for releasing EnvPane. It is a great solution for managing the environment variables in macOS.
Regards,
Christian W.
HK4QWC
Can we have a feature to export and import them to another Mac, so we can share our credentials between Macs?
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
Yes. v06
What version of OS X are you using (or attempting to use) EnvPane on?
Catalina
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
Current user
Did you install EnvPane as an administrative user?
No
Can you provide relevant system.log messages? You can use the Console
application to get those: Hit Cmd-Space, type Console
, hit enter (the Console
app should open), click on system.log
on the left, click the search bar at
the top and type Env
to filter the list. Copy and paste it below but be sure
to redact any confidential informations such as account names, IP addresses etc.
The problem with Calatina is that it does not support anymore 32bit applications and we might need to re-compile this to support 64bits.
Version:
0.6 from GitHub
OS:
BigSur on a Macbook Pro M1
The same version works on a non-M1 iMac,
that's why it's a different problem than #31
Did you install EnvPane for the current user only or for all users?
Current user only
Did you install EnvPane as an administrative user?
No
What you see
Can you provide relevant system.log messages?
Jul 6 12:05:21 jeanmichelsMBP com.apple.xpc.launchd[1]: Coalition Cache Hit: app<application.com.apple.systempreferences.1152921500311955177.1152921500311955182(501)> [1078]
Jul 6 12:05:21 jeanmichelsMBP AccountProfileRemoteViewService[28414]: objc[28414]: Class AOSUISpyglassAccountChangeHelper is implemented in both /System/Library/PrivateFrameworks/AOSUI.framework/Versions/A/AOSUI and /System/Library/PrivateFrameworks/AOSUI.framework/Versions/A/XPCServices/AccountProfileRemoteViewService.xpc/Contents/MacOS/AccountProfileRemoteViewService. One of the two will be used. Which one is undefined.
Jul 6 12:05:22 jeanmichelsMBP com.apple.xpc.launchd[1] (com.apple.mdworker.shared.0D000000-0400-0000-0000-000000000000[28382]): Service exited due to SIGKILL | sent by mds[89]
Jul 6 12:05:32 jeanmichelsMBP Google Chrome Helper[17200]: Libnotify: notify_register_coalesced_registration failed with code 9 on line 2835
Jul 6 12:05:46 jeanmichelsMBP com.apple.xpc.launchd[1] (com.apple.systempreferences.legacyLoader.x86_64[28424]): Service exited due to SIGTRAP | sent by exc handler[28424]
Hi there,
great application very useful Thanks a lot.
Just a feature request or idea.
Wouldn't it be a good security feature to password protect the Pane on opening it?
Would be nice not to have them visible right away.
This is due to missing ~/Library/LaunchAgents directory.
When trying to open the PrefPane, I get this message:
'"EnvPane.prefPane" can't be opened because Apple cannot check it for malicious software.
This software needs to be updated.
Contact the developer for more information.'
What version of EnvPane are you using. Did you download the official release or
did you build it yourself?
Version 0.7, downloaded from GitHub
What version of OS X are you using (or attempting to use) EnvPane on?
Ventura 13.2.1
Did you install EnvPane for the current user only or for all users? I admit,
that's a bit of a trick question.
Current user only
Did you install EnvPane as an administrative user?
Yes
Can you provide relevant system.log messages? You can use the Console
application to get those: Hit Cmd-Space, type Console
, hit enter (the Console
app should open), click on system.log
on the left, click the search bar at
the top and type Env
to filter the list. Copy and paste it below but be sure
to redact any confidential informations such as account names, IP addresses etc.
There is nothing in system.log, probably because the PrefPane isn't loading at all.
Since this project was last edited in 2013, I am wondering, is it still alive?
Is the current version still relevant to Yosemite?
If the project is dead, can you recommend an alternate project?
Not an issue. I did not found email or twitter handle, so, I put it here :
It works well (I use macOS 10.12.3), it's very handy, simple and effective.
Thanks you for this tool.
Hi! I use OS X 10.12.2 Sierra and I found that after I click launch EnvPane on System Preferences it show " Failed to load/start agent" any solution?
Hello. I have downloaded EnvPane directly from git.
I am using MacOSX Catalina and of course, I have installed for my user only, as a normal user (not sudo).
I have set a variable in it, TEST_VAR and gave it a string value, "John Smith". I have opened a new terminal and echoed $TEST_VAR but it was empty. How exactly is this supposed to work, please?
Not a showstopper but I would like to find out why this happens.
2/14/13 1:01:44.690 AM EnvAgent[752]: Started agent /Users/Hannes/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (752)
2/14/13 1:01:44.692 AM EnvAgent[752]: Setting environment
2/14/13 1:01:44.693 AM EnvAgent[752]: Setting 'YYY' to 'ZZZ'
2/14/13 1:01:44.694 AM EnvAgent[752]: Unsetting 'XXX'
2/14/13 1:01:44.695 AM EnvAgent[752]: Exiting agent /Users/Hannes/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (752)
2/14/13 1:01:44.703 AM com.apple.launchd.peruser.501[208]: (net.hannesschmidt.EnvAgent) Throttling respawn: Will start in 10 seconds
2/14/13 1:01:54.716 AM EnvAgent[753]: Started agent /Users/Hannes/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (753)
2/14/13 1:01:54.718 AM EnvAgent[753]: Setting environment
2/14/13 1:01:54.719 AM EnvAgent[753]: Setting 'YYY' to 'ZZZ'
2/14/13 1:01:54.721 AM EnvAgent[753]: Exiting agent /Users/Hannes/Library/Application Support/net.hannesschmidt.EnvAgent/EnvAgent (753)
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"
I was attempting to use EnvPane with my Android Studio build which is found in OS X at "/Applications/Android Studio.app". Because of the space I tried to setup my environment variable by escaping the space ("/Applications/Android\ Studio.app") however it doesn't allow this to work in Terminal when calling "cd $MYENVNAME". Am I doing something wrong or does it not support spaces in directories at this time? Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.