<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	>
<channel>
	<title>Comments on: Setting an environment variable for all your apps</title>
	<atom:link href="http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps/feed" rel="self" type="application/rss+xml" />
	<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps</link>
	<description>scratched tallies on the prison wall</description>
	<pubDate>Mon, 01 Dec 2008 22:18:25 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.5</generator>
		<item>
		<title>By: Dennis Fisher</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122440</link>
		<dc:creator>Dennis Fisher</dc:creator>
		<pubDate>Thu, 04 Sep 2008 17:06:53 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122440</guid>
		<description>Did you ever find a solution to this elsewhere? I'm quite interested in this as well.</description>
		<content:encoded><![CDATA[<p>Did you ever find a solution to this elsewhere? I&#8217;m quite interested in this as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter Oliver</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122109</link>
		<dc:creator>Peter Oliver</dc:creator>
		<pubDate>Sun, 10 Aug 2008 22:20:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122109</guid>
		<description>CDE sources your profile at login if you set DTSOURCEPROFILE=true in ~/.dtprofile.  It sounds like this is the behaviour you're after.

You could get this by creating a .xsession that starts
#!/bin/bash --login</description>
		<content:encoded><![CDATA[<p>CDE sources your profile at login if you set DTSOURCEPROFILE=true in ~/.dtprofile.  It sounds like this is the behaviour you&#8217;re after.</p>
<p>You could get this by creating a .xsession that starts<br />
#!/bin/bash &#8211;login</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Maclean</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122061</link>
		<dc:creator>Michael Maclean</dc:creator>
		<pubDate>Tue, 05 Aug 2008 09:28:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122061</guid>
		<description>Oh, I didn't realise it was after the autostart apps. But then, I don't have any :)</description>
		<content:encoded><![CDATA[<p>Oh, I didn&#8217;t realise it was after the autostart apps. But then, I don&#8217;t have any :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122058</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Tue, 05 Aug 2008 00:41:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122058</guid>
		<description>Well it doesn't sound like there is any single clean way of accomplishing it at the mo then.

You can get anything run before starting your session using ~/.dmrc ~/.xsession and ~/.profile.

in ~/.dmrc
[Desktop]
Session=default

in ~/.xsession (assuming your still using gnome)
export XDG_CONFIG_HOME=$HOME/Settings
gnome-session

in ~/.profile add your XDG_CONFIG_HOME line to the end (or beginning) too. .profile wont be read till after things have autostarted, but that dont matter as the var is already exported in ~/.xsession. It is only there for when you open terminals/bash/dash.</description>
		<content:encoded><![CDATA[<p>Well it doesn&#8217;t sound like there is any single clean way of accomplishing it at the mo then.</p>
<p>You can get anything run before starting your session using ~/.dmrc ~/.xsession and ~/.profile.</p>
<p>in ~/.dmrc<br />
[Desktop]<br />
Session=default</p>
<p>in ~/.xsession (assuming your still using gnome)<br />
export XDG_CONFIG_HOME=$HOME/Settings<br />
gnome-session</p>
<p>in ~/.profile add your XDG_CONFIG_HOME line to the end (or beginning) too. .profile wont be read till after things have autostarted, but that dont matter as the var is already exported in ~/.xsession. It is only there for when you open terminals/bash/dash.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122057</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Mon, 04 Aug 2008 19:05:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122057</guid>
		<description>Michael Maclean: aha. Yes. It does get run. *After* your autostart applications are autostarted. Useful, I don't think. :)</description>
		<content:encoded><![CDATA[<p>Michael Maclean: aha. Yes. It does get run. *After* your autostart applications are autostarted. Useful, I don&#8217;t think. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Michael Maclean</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122053</link>
		<dc:creator>Michael Maclean</dc:creator>
		<pubDate>Mon, 04 Aug 2008 17:28:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122053</guid>
		<description>I can confirm that ~/.profile is called when you log in - I use it to load the colour profile for my monitor, and so just after I log in first the screen does a noticeable colour shift.</description>
		<content:encoded><![CDATA[<p>I can confirm that ~/.profile is called when you log in - I use it to load the colour profile for my monitor, and so just after I log in first the screen does a noticeable colour shift.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: karl</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122038</link>
		<dc:creator>karl</dc:creator>
		<pubDate>Mon, 04 Aug 2008 02:12:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122038</guid>
		<description>You&#160;will&#160;find&#160;that&#160;~/.profile&#160;is&#160;parsed&#160;when&#160;you&#160;login&#160;both&#160;via&#160;gdm&#160;(with&#160;almost&#160;all&#160;sessions&#160;managers&#160;too)&#160;and&#160;when&#160;you&#160;ssh&#160;in.

Go&#160;ahead&#160;and&#160;try&#160;it:
echo&#160;".profile&#160;was&#160;called"&#160;&#62;&#62;&#160;$HOME/bash-startup

</description>
		<content:encoded><![CDATA[<p>You&nbsp;will&nbsp;find&nbsp;that&nbsp;~/.profile&nbsp;is&nbsp;parsed&nbsp;when&nbsp;you&nbsp;login&nbsp;both&nbsp;via&nbsp;gdm&nbsp;(with&nbsp;almost&nbsp;all&nbsp;sessions&nbsp;managers&nbsp;too)&nbsp;and&nbsp;when&nbsp;you&nbsp;ssh&nbsp;in.</p>
<p>Go&nbsp;ahead&nbsp;and&nbsp;try&nbsp;it:<br />
echo&nbsp;&#8221;.profile&nbsp;was&nbsp;called&#8221;&nbsp;&gt;&gt;&nbsp;$HOME/bash-startup</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122037</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Mon, 04 Aug 2008 00:38:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122037</guid>
		<description>&lt;pre style="font-size:80%"&gt;Tester:&#160;.bashrc&#160;isn't&#160;sourced&#160;as&#160;part&#160;of&#160;startup.&#160;I&#160;know&#160;this&#160;because&#160;I&#160;wrote

echo&#160;"I&#160;was&#160;called"&#160;&gt;&gt;&#160;$HOME/bash-startup

in&#160;.bashrc&#160;and&#160;reboted&#160;the&#160;machine;&#160;no&#160;bash-startup&#160;file&#160;was&#160;created.&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<pre style="font-size:80%">Tester:&nbsp;.bashrc&nbsp;isn't&nbsp;sourced&nbsp;as&nbsp;part&nbsp;of&nbsp;startup.&nbsp;I&nbsp;know&nbsp;this&nbsp;because&nbsp;I&nbsp;wrote

echo&nbsp;"I&nbsp;was&nbsp;called"&nbsp;>>&nbsp;$HOME/bash-startup

in&nbsp;.bashrc&nbsp;and&nbsp;reboted&nbsp;the&nbsp;machine;&nbsp;no&nbsp;bash-startup&nbsp;file&nbsp;was&nbsp;created.</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tester</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122036</link>
		<dc:creator>Tester</dc:creator>
		<pubDate>Mon, 04 Aug 2008 00:36:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122036</guid>
		<description>I think .bashrc is loaded whenever bash is started.. And the gdm startup is a bash script (or maybe you use a crappy distro that uses another shell for gdm? Maybe this shell has an equivalent file?) On a unix system, I'll bet there's a shell somewhere in starting mostly anything.</description>
		<content:encoded><![CDATA[<p>I think .bashrc is loaded whenever bash is started.. And the gdm startup is a bash script (or maybe you use a crappy distro that uses another shell for gdm? Maybe this shell has an equivalent file?) On a unix system, I&#8217;ll bet there&#8217;s a shell somewhere in starting mostly anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sil</title>
		<link>http://www.kryogenix.org/days/2008/08/03/setting-an-environment-variable-for-all-your-apps#comment-122034</link>
		<dc:creator>sil</dc:creator>
		<pubDate>Sun, 03 Aug 2008 22:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.kryogenix.org/days/?p=1533#comment-122034</guid>
		<description>Roberto: you're all comedy all the time, you are :-)</description>
		<content:encoded><![CDATA[<p>Roberto: you&#8217;re all comedy all the time, you are :-)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
