Re: [e-users] environment variable

2014-01-13 Thread mh
On 01/12/2014 07:29 PM, Christopher Barry wrote:
 On Sat, 11 Jan 2014 17:15:16 -0500
 mh mhe...@member.fsf.org wrote:

 On 01/11/2014 01:03 PM, Christopher Barry wrote:
 On Sat, 11 Jan 2014 10:18:08 -0500
 mh mhe...@member.fsf.org wrote:

 On 01/10/2014 10:11 AM, mh wrote:
 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there
 adding /opt/e18/bin to PATH. Where is that set?
 I've searched and read about environmental variables, looked at
 /etc/profile, /etc/bash.bashrc, .profile, .bashrc and don't see
 where it's set.  Interactive and non-interactive terminals.

 Logging into a tty after starting e show the paths I expect shown in
 /etc/profile. I'm running Debian.

 If I start terminology in e as user, echo $PATH has /opt/e18/bin: as
 the first location, but if I become root, echo $PATH does not
 have /opt/e18/bin.

 Is the path to the enlightenment bin directory built into e at
 compile time? I just want to understand where that's being read
 from.

 Thanks,

 mike



 how about trying this:

 # grep -H -r -w PATH= {/etc,/opt,~/} | grep e18

 to show you all files that mention e18 in the PATH var. You either
 see it spelled out or not. That should show whether e is setting it
 internally from compiled code or not, from it's non-presence in the
 grep output, or it'll show you the file where it's defined.

 --
 Regards,
 Christopher Barry

 Random geeky fortune:
 The UNIX philosophy basically involves giving you enough rope to
 hang yourself.  And then a couple of feet more, just to be sure.
 Thanks Christopher. I ran the grep command ( I need to spend more time
 with grep! ). I didn't seen any output from /etc or my home directory.
 The /opt directory matched in these:

 Binary file /opt/e18/lib/libeina.so.1.8.3 matches
 Binary file /opt/e18/lib/enlightenment/utils/enlightenment_sys matches
 Binary file /opt/e18/lib/libeina.so.1.8.4 matches
 Binary file /opt/e18/bin/enlightenment matches

 So it looks like it might be compiled in? I also tried creating a new
 user account that didn't have a ~/.bashrc file. PATH still included
 the /opt/e18/bin at the front. I bet Raster knows for sure, but I'm
 sure Raster is wicked busy too :)

 Thanks again,
 mike


 Mike,

 My assumption is you set PREFIX=/opt when compiling. Logically, the
 code wants other 'e' things to know that. xfce does not need to know
 about /opt, so it's not included in the path. If you just want xfce to
 know about /opt/e18/bin (or wherever), then simply add it to your PATH.


 --
 Regards,
 Christopher Barry

 Random geeky fortune:
 Virginia law forbids bathtubs in the house; tubs must be kept in the
 yard.

Christopher,

Exactly, I set the install location with .configure --prefix=/opt/e18. 
Raster also explained that e adds that to PATH. It makes sense, I didn't 
understand that it did that. I was, mistakenly, looking at the bashrc 
files thinking because my PATH can also be changed there. Thanks for 
your help!

mike



--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-12 Thread Christopher Barry
On Sat, 11 Jan 2014 17:15:16 -0500
mh mhe...@member.fsf.org wrote:

On 01/11/2014 01:03 PM, Christopher Barry wrote:
 On Sat, 11 Jan 2014 10:18:08 -0500
 mh mhe...@member.fsf.org wrote:

 On 01/10/2014 10:11 AM, mh wrote:
 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there
 adding /opt/e18/bin to PATH. Where is that set?
 I've searched and read about environmental variables, looked at
 /etc/profile, /etc/bash.bashrc, .profile, .bashrc and don't see
 where it's set.  Interactive and non-interactive terminals.

 Logging into a tty after starting e show the paths I expect shown in
 /etc/profile. I'm running Debian.

 If I start terminology in e as user, echo $PATH has /opt/e18/bin: as
 the first location, but if I become root, echo $PATH does not
 have /opt/e18/bin.

 Is the path to the enlightenment bin directory built into e at
 compile time? I just want to understand where that's being read
 from.

 Thanks,

 mike



 how about trying this:

 # grep -H -r -w PATH= {/etc,/opt,~/} | grep e18

 to show you all files that mention e18 in the PATH var. You either
 see it spelled out or not. That should show whether e is setting it
 internally from compiled code or not, from it's non-presence in the
 grep output, or it'll show you the file where it's defined.

 --
 Regards,
 Christopher Barry

 Random geeky fortune:
 The UNIX philosophy basically involves giving you enough rope to
 hang yourself.  And then a couple of feet more, just to be sure.

Thanks Christopher. I ran the grep command ( I need to spend more time 
with grep! ). I didn't seen any output from /etc or my home directory. 
The /opt directory matched in these:

Binary file /opt/e18/lib/libeina.so.1.8.3 matches
Binary file /opt/e18/lib/enlightenment/utils/enlightenment_sys matches
Binary file /opt/e18/lib/libeina.so.1.8.4 matches
Binary file /opt/e18/bin/enlightenment matches

So it looks like it might be compiled in? I also tried creating a new 
user account that didn't have a ~/.bashrc file. PATH still included
the /opt/e18/bin at the front. I bet Raster knows for sure, but I'm
sure Raster is wicked busy too :)

Thanks again,
mike



Mike,

My assumption is you set PREFIX=/opt when compiling. Logically, the
code wants other 'e' things to know that. xfce does not need to know
about /opt, so it's not included in the path. If you just want xfce to
know about /opt/e18/bin (or wherever), then simply add it to your PATH.


--
Regards,
Christopher Barry

Random geeky fortune:
Virginia law forbids bathtubs in the house; tubs must be kept in the
yard.

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


[e-users] environment variable

2014-01-11 Thread mh
On 01/10/2014 10:11 AM, mh wrote:
 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin to
 PATH. Where is that set?

I've searched and read about environmental variables, looked at 
/etc/profile, /etc/bash.bashrc, .profile, .bashrc and don't see where 
it's set.  Interactive and non-interactive terminals.

Logging into a tty after starting e show the paths I expect shown in 
/etc/profile. I'm running Debian.

If I start terminology in e as user, echo $PATH has /opt/e18/bin: as the 
first location, but if I become root, echo $PATH does not have /opt/e18/bin.

Is the path to the enlightenment bin directory built into e at compile 
time? I just want to understand where that's being read from.

Thanks,

mike





--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-11 Thread Christopher Barry
On Sat, 11 Jan 2014 10:18:08 -0500
mh mhe...@member.fsf.org wrote:

On 01/10/2014 10:11 AM, mh wrote:
 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin
 to PATH. Where is that set?

I've searched and read about environmental variables, looked at 
/etc/profile, /etc/bash.bashrc, .profile, .bashrc and don't see where 
it's set.  Interactive and non-interactive terminals.

Logging into a tty after starting e show the paths I expect shown in 
/etc/profile. I'm running Debian.

If I start terminology in e as user, echo $PATH has /opt/e18/bin: as
the first location, but if I become root, echo $PATH does not
have /opt/e18/bin.

Is the path to the enlightenment bin directory built into e at compile 
time? I just want to understand where that's being read from.

Thanks,

mike




how about trying this:

# grep -H -r -w PATH= {/etc,/opt,~/} | grep e18

to show you all files that mention e18 in the PATH var. You either see
it spelled out or not. That should show whether e is setting it
internally from compiled code or not, from it's non-presence in the
grep output, or it'll show you the file where it's defined.

--
Regards,
Christopher Barry

Random geeky fortune:
The UNIX philosophy basically involves giving you enough rope to
hang yourself.  And then a couple of feet more, just to be sure.

--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-11 Thread Shawn Haworth
Ahoy!

 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin to
 PATH. Where is that set?

First off, install the bash-doc package.  ie $ sudo apt-get install bash-doc
Which contains:

Bash_aliases Some useful aliases (Fox).
Bash_profile Sample startup file for bash login shells (Fox).
bash-profile Sample startup file for bash login shells (Ramey).
bashrc Sample Bourne Again SHell init file (Ramey).
Bashrc.bfox Sample Bourne Again SHell init file (Fox).
README README

apple Example Start-up files for Mac OS X.
apple/aliases Sample aliases for Mac OS X.
apple/bash.defaults Sample User preferences file.
apple/environment Sample Bourne Again Shell environment file.
apple/login Sample login wrapper.
apple/logout Sample logout wrapper.
apple/rc Sample Bourne Again Shell config file.
apple/README README

I've _attached_ the example bash-profile and bashrc.  I suggest you
read docs and learn about bash(1) before you consider using it as your
long term shell.

Also, remember, in bash(1): ~/.profile: executed by the command
interpreter for login shells.  This file is not read by bash(1), if
~/.bash_profile or ~/.bash_login exists.

Shawn
--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-11 Thread mh
On 01/11/2014 04:02 PM, Shawn Haworth wrote:
 Ahoy!

 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin to
 PATH. Where is that set?
 First off, install the bash-doc package.  ie $ sudo apt-get install bash-doc
 Which contains:

 Bash_aliases Some useful aliases (Fox).
 Bash_profile Sample startup file for bash login shells (Fox).
 bash-profile Sample startup file for bash login shells (Ramey).
 bashrc Sample Bourne Again SHell init file (Ramey).
 Bashrc.bfox Sample Bourne Again SHell init file (Fox).
 README README

 apple Example Start-up files for Mac OS X.
 apple/aliases Sample aliases for Mac OS X.
 apple/bash.defaults Sample User preferences file.
 apple/environment Sample Bourne Again Shell environment file.
 apple/login Sample login wrapper.
 apple/logout Sample logout wrapper.
 apple/rc Sample Bourne Again Shell config file.
 apple/README README

 I've _attached_ the example bash-profile and bashrc.  I suggest you
 read docs and learn about bash(1) before you consider using it as your
 long term shell.

 Also, remember, in bash(1): ~/.profile: executed by the command
 interpreter for login shells.  This file is not read by bash(1), if
 ~/.bash_profile or ~/.bash_login exists.

 Shawn

Thank you. As I said, I have been reading all the bash docs I could 
find, and I understand that non-interactive login shells use 
/etc/profile or ~/.profile for environmental variables, and that 
interactive shells use /etc/bash.bashrc or ~/.bashrc. I also said that I 
looked at the bashrc files and could not find anything put /opt/e18/bin 
in my usr PATH.

This led to my question about whether or not the e18/bin path was 
something that was added during the compile process. It seems that this 
would be useful to do.

Can you shed any light on this, or just provide shell recommendations?

mike


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-11 Thread mh
On 01/11/2014 01:03 PM, Christopher Barry wrote:
 On Sat, 11 Jan 2014 10:18:08 -0500
 mh mhe...@member.fsf.org wrote:

 On 01/10/2014 10:11 AM, mh wrote:
 I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
 terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
 installed in /opt/e18/.

 If I logout and then login to xfce, echo $PATH, I get:
 /usr/local/bin:/usr/bin:/bin

 I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin
 to PATH. Where is that set?
 I've searched and read about environmental variables, looked at
 /etc/profile, /etc/bash.bashrc, .profile, .bashrc and don't see where
 it's set.  Interactive and non-interactive terminals.

 Logging into a tty after starting e show the paths I expect shown in
 /etc/profile. I'm running Debian.

 If I start terminology in e as user, echo $PATH has /opt/e18/bin: as
 the first location, but if I become root, echo $PATH does not
 have /opt/e18/bin.

 Is the path to the enlightenment bin directory built into e at compile
 time? I just want to understand where that's being read from.

 Thanks,

 mike



 how about trying this:

 # grep -H -r -w PATH= {/etc,/opt,~/} | grep e18

 to show you all files that mention e18 in the PATH var. You either see
 it spelled out or not. That should show whether e is setting it
 internally from compiled code or not, from it's non-presence in the
 grep output, or it'll show you the file where it's defined.

 --
 Regards,
 Christopher Barry

 Random geeky fortune:
 The UNIX philosophy basically involves giving you enough rope to
 hang yourself.  And then a couple of feet more, just to be sure.

Thanks Christopher. I ran the grep command ( I need to spend more time 
with grep! ). I didn't seen any output from /etc or my home directory. 
The /opt directory matched in these:

Binary file /opt/e18/lib/libeina.so.1.8.3 matches
Binary file /opt/e18/lib/enlightenment/utils/enlightenment_sys matches
Binary file /opt/e18/lib/libeina.so.1.8.4 matches
Binary file /opt/e18/bin/enlightenment matches

So it looks like it might be compiled in? I also tried creating a new 
user account that didn't have a ~/.bashrc file. PATH still included the 
/opt/e18/bin at the front. I bet Raster knows for sure, but I'm sure 
Raster is wicked busy too :)

Thanks again,
mike




--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users


Re: [e-users] environment variable

2014-01-11 Thread The Rasterman
On Sat, 11 Jan 2014 16:19:37 -0500 mh mhe...@member.fsf.org said:

 On 01/11/2014 04:02 PM, Shawn Haworth wrote:
  Ahoy!
 
  I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a
  terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e
  installed in /opt/e18/.
 
  If I logout and then login to xfce, echo $PATH, I get:
  /usr/local/bin:/usr/bin:/bin
 
  I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin to
  PATH. Where is that set?
  First off, install the bash-doc package.  ie $ sudo apt-get install bash-doc
  Which contains:
 
  Bash_aliases Some useful aliases (Fox).
  Bash_profile Sample startup file for bash login shells (Fox).
  bash-profile Sample startup file for bash login shells (Ramey).
  bashrc Sample Bourne Again SHell init file (Ramey).
  Bashrc.bfox Sample Bourne Again SHell init file (Fox).
  README README
 
  apple Example Start-up files for Mac OS X.
  apple/aliases Sample aliases for Mac OS X.
  apple/bash.defaults Sample User preferences file.
  apple/environment Sample Bourne Again Shell environment file.
  apple/login Sample login wrapper.
  apple/logout Sample logout wrapper.
  apple/rc Sample Bourne Again Shell config file.
  apple/README README
 
  I've _attached_ the example bash-profile and bashrc.  I suggest you
  read docs and learn about bash(1) before you consider using it as your
  long term shell.
 
  Also, remember, in bash(1): ~/.profile: executed by the command
  interpreter for login shells.  This file is not read by bash(1), if
  ~/.bash_profile or ~/.bash_login exists.
 
  Shawn
 
 Thank you. As I said, I have been reading all the bash docs I could 
 find, and I understand that non-interactive login shells use 
 /etc/profile or ~/.profile for environmental variables, and that 
 interactive shells use /etc/bash.bashrc or ~/.bashrc. I also said that I 
 looked at the bashrc files and could not find anything put /opt/e18/bin 
 in my usr PATH.
 
 This led to my question about whether or not the e18/bin path was 
 something that was added during the compile process. It seems that this 
 would be useful to do.

we can't go adding it to your shell during compile.

1. it may be a non-interactive build on a build server or packaging system.
2. shells vary. it may be zsh, bash, dash, tcsh, ksh, ... which one does the
user actually use?
3. how users set up their shell rc files varies a lot - there is no way we can
sensibly PARSE them to find out where path is set and do this right - maybe
append at the end, but modifying a usewrs config files during a compile of e or
efl is so anti-social it's not funny. this will *NEVER* happen. if we ever did
do it the world would rise up in revolt.
4. if you - the user, are unable to fix your own path because you compiled e to
go into let's say /opt/e18 - well sorry. that's your problem. :( it's your job
to integraye to your system based on where you put it. we can't do that. now
imagine we change your user files... what about other users? we miss them too.
then we have to start editing system shell files as above. that's just ASKING
to destroy a persons system.

it's not a useful thing to do. it's probably the worst idea ever. :) no one
does this - ever. there are good reasons, and probably more than i listed above
by a vast margin... but the above is enough to just begin to give a taste for
it.

if you want to modify your path put:

  export PATH=dir1:dir2:dir3...

in your .bashrc. you can source your .profile from your .bashrc too:

  . ~/.profile

yes the . command reads in another file and runs it (sources it).

you could modify the system profile if you want:

/etc/profile
/etc/bashrc

i personally use zsh - it's my favorite interactive shell.

as for what adds e's install path to PATH - enlightenment_start does. and
enlightenment_start is the babysitter for enlightenment - enlightenment
inherits it.. and anything enlightenment launches also inherits it, unless it
resets it.

 Can you shed any light on this, or just provide shell recommendations?
 
 mike
 
 
 --
 CenturyLink Cloud: The Leader in Enterprise Cloud Services.
 Learn Why More Businesses Are Choosing CenturyLink Cloud For
 Critical Workloads, Development Environments  Everything In Between.
 Get a Quote or Start a Free Trial Today. 
 http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
 ___
 enlightenment-users mailing list
 enlightenment-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/enlightenment-users
 


-- 
- Codito, ergo sum - I code, therefore I am --
The Rasterman (Carsten Haitzler)ras...@rasterman.com


--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, 

[e-users] environment variable

2014-01-10 Thread mh
I don't understand. Running e18.2, efl 1.8.4, if I echo $PATH in a 
terminal I get: /opt/e18/bin:/usr/local/bin:/usr/bin:/bin. I have e 
installed in /opt/e18/.

If I logout and then login to xfce, echo $PATH, I get: 
/usr/local/bin:/usr/bin:/bin

I looked in ~/.bashrc but there is nothing there adding /opt/e18/bin to 
PATH. Where is that set?



--
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments  Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431iu=/4140/ostg.clktrk
___
enlightenment-users mailing list
enlightenment-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-users