-
Notifications
You must be signed in to change notification settings - Fork 61
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
export ENV var before launch thunderbird #313
Comments
I don't know if that is worth doing in Birdtray. Couldn't you use a wrapper shell script to archive that? |
Hi, sure I can use a wrapper and this is something I'm already doing. But if this is something done by a lot of people it may worth.. |
You don't even need a wrapper, just export those variables before starting birdtray. It should inherit the environment and pass it to children processes. |
This is really useful though. You can just use So only necessary thing to solve this issue is to correctly handle launch string because it seems like right now birdtray treats it like whole path to thunderbird executable rather than command. |
@gudvinr That doesn't sound right, did you actually test that? The last time I checked, we did support entering a full command in the advanced tab. |
@Abestanis how would I know that otherwise? Yes, I did test that and it didn't work. I get an error:
If I use launch command as But it works if I run |
Sorry, I'm not a native speaker, do you mean how you could verify that it works or not? You seem to have figured it out.
This doesn't work, because we don't search for the program on the
Exactly like this. 😄👍
That might be true, but it is a working workaround. We could either document it in the README so it is more obvious, or we could add an extra field to the settings page, which would make it more convenient. If you wan't to take a stab at it, go for it. Pull requests are always welcome. |
Why isn't it obvious? This is a standard way to launch binaries with changed environment. Another standard way is a wrapper script. |
Because every other place in the system knows about
That will be more than enough |
Actually only your shell knows about PATH variable, and PATH evaluation is shell-specific thing. However since we do not use shell when starting Thunderbird, you have to specify the absolute path. Normally you'd use a shell script there, such as:
and invoke it directly as "/path/to/your/shell/script". |
Description
Would be great if there will be something that let you export some env variables.
The need comes from the fact that if you are using a dark theme, thunderbird will be unreadable, so I'm exporting GTK_THEME before launch thunderbird
Thanks
The text was updated successfully, but these errors were encountered: