Code Monkey home page Code Monkey logo

envpane's People

Contributors

chtompki avatar duffn avatar hannes-ucsc avatar hschmidt avatar kant avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

envpane's Issues

Couldn't set DYLD_INSTALL_LIBRARIES environment variable on El Capitan 10.11.6

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

Failed to write agent's launchd job description.

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?

  • Downloaded official release 0.6

What version of OS X are you using (or attempting to use) EnvPane on?

  • Sierra 10.12.6

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?

  • 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.

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.}

Won't work with home dir living on network (EXT4)

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.

Shell interpreted

Feature: Dinamic env values like JavaHome

Exemple:

JAVA_HOME = $(/usr/libexec/java_home)

Doesn't work after restart with "Reopen existing applications"

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

  1. Set a variable in EnvPane
  2. Open iTerm
  3. Restart computer and check the checkbox for restarting all applications
  4. When computer restarts, the iTerm application no longer see the variables set in EnvPane

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.

EnvPane is not setting environment variable PATH

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.

Enable/Disable

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!

Feature Request: Mask values to hide sensitive keys

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.

Uninstallation trouble

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?

Restart required for deleted variables

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.

Not working on MacOS 13.2.1

The pref pane is just blank. I have tried restarting my computer.

Screenshot 2023-06-02 at 12 38 52 PM

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

EnvPane recommended to fldigi on macOS users that require NLS support

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

  • Fldigi is a software modem for Amateur Radio use. It is a sound card based program that is used for both transmitting and receiving data in several modes using voice radio channels.

32bits unsupported on Catalina

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.

Doesn't work on a M1

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

Screenshot 2022-07-06 at 12 06 57

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]

Feature Request: Password Protect EnvPane

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.

Can't be opened due to quarantine flag

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.'

Screenshot 2023-02-21 at 09 47 13

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.

Still alive?

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?

Thanks you

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.

EnvPane "failed to load/start agent"

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?

The variables are not set, even when I open a new terminal shell

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?

Agent is invoked twice for every change

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)

Not working with Big Sur

I recently installed EnvPane as an Administrator directly from GitHub.

If I open the pane in the settings app, it only shows an empty, not for dark mode optimized Pane!

Bildschirmfoto 2020-07-10 um 00 11 06

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

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

Doesn't work when directory has a space in it

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.