[Thunar-dev] Thunar losing environment settings on customisable actions

Erlend Davidson E.R.M.Davidson at sms.ed.ac.uk
Tue Jun 26 20:32:39 CEST 2007


Brian J. Tarricone wrote:
> On Tue, 26 Jun 2007 18:27:31 +0100 Erlend Davidson wrote:
>
>   
>> On trying to write a plugin for thunar which interfaces with the "User 
>> Customisable Actions" feature I have noticed what might be a bug...
>>
>> For example, if I create the UCA:
>> Name: Test
>> Command:xterm -e "echo $BROWSER;read"
>> (and just make it always appear)
>>
>> and then trigger it (by right-clicking a file and selecting "Test"
>>     
> >from the menu) the terminal prints just a blank line - $BROWSER is
>   
>> empty! $BROWSER is however normally set to "exo-open" on my system.
>>     
>
> Depends on a few things -- how Thunar is launched (does Thunar get
> launched in an environment where BROWSER is set?), how the shell is
> launched (login shell?  interactive?  non-interactive?), and where you
> set BROWSER (.profile?  .bash_profile?  .bashrc?).  I'd start poking
> around there.
Ahh... now I see.  If I run thunar from a terminal window (where 
$BROWSER is set because of my .bashrc) everything is fine.

However if I start thunar from the xfce panel then the $BROWSER is not set.

Why is this?  Is there a solution?

Thanks,

Erlend



More information about the Thunar-dev mailing list