<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://forum.xfce.org/extern.php?action=feed&amp;tid=7555&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Xfce Forums / Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
		<link>http://forum.xfce.org/viewtopic.php?id=7555</link>
		<description><![CDATA[The most recent posts in Can't get ~/.bachrc and ~/.bash_logout to work.]]></description>
		<lastBuildDate>Tue, 30 Oct 2012 23:50:48 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27841#p27841</link>
			<description><![CDATA[<p>I would prefer the personalised &quot;xinitrc&quot; file in&#160; ~/.config/xfce4/<br />Would it be posible to add a &quot;.bash_login&#039;&quot; at the beginning of this file, so as to<br />where it would run before the start of the session?</p><p>If so, this would allow the desktop icon settings that were saved from the previous <br />logout ( via .bash_logout ) to be loaded back in.&#160; The xfce I am using ( 4.8 ) does not<br />remember the desktop icon configuration at log-in from the setting at previous log-out.</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Tue, 30 Oct 2012 23:50:48 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27841#p27841</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27839#p27839</link>
			<description><![CDATA[<p>.bash_logout will not run if you just login into Xfce from GDM (or similar like KDM, XDM). It will work if you login to a console or virtual terminal. The way to get this working in Xfce is by modifying xinitrc. You can do this either by modifying the system-wide version at/etc/xdg/xfce4/xinitrc or by creating a personalised xinitrc and file that in ~/.config/xfce4/.</p><p>Mine reads as follows, starting about two thirds down, <strong>above</strong> the note saying &#039;IMPORTANT NOTE&#039;</p><div class="codebox"><pre><code># Run xfce4-session if installed
if which xfce4-session &gt;/dev/null 2&gt;&amp;1; then
    xfce4-session

    if test &quot;$ssh_agent_kill_cmd&quot;; then
        echo &quot;running &#039;$ssh_agent_kill_cmd&#039;&quot;
        eval &quot;$ssh_agent_kill_cmd&quot;
    fi
   /home/username/.bash_logout
    exit 0
fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (Pindakoe)]]></author>
			<pubDate>Tue, 30 Oct 2012 18:17:17 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27839#p27839</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27837#p27837</link>
			<description><![CDATA[<p>/tmp/running appears when I run the script manually, but it does not appear when I have it in the application-autostart and log off then log back on.</p><p>( also, I am using 12.04.01 with 4.8 )</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Tue, 30 Oct 2012 12:41:06 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27837#p27837</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27836#p27836</link>
			<description><![CDATA[<p>Try this script :</p><div class="codebox"><pre><code>#!/bin/bash

touch /tmp/running</code></pre></div><p>Make it executable. Make it run on startup. Delete /tmp/running if exist. Re-login.<br />Does /tmp/running appear ?</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Tue, 30 Oct 2012 10:45:26 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27836#p27836</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27835#p27835</link>
			<description><![CDATA[<p>I have tried putting these in the start-up as a command:</p><p>${HOME}/bin/bash_login<br />~/bin/bash_login<br />cody/bin/bash_login</p><p>I can&#039;t get anything to work.</p><p>bash_login does nothing except copy a file from one directory to another.<br />It works fine when I click on it with the mouse, but just won&#039;t work on auto-startup.</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Tue, 30 Oct 2012 10:41:18 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27835#p27835</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27834#p27834</link>
			<description><![CDATA[<p>To make sure that the script is not run, put something like &quot;touch /tmp/myscript&quot; in your startup script and check if the file /tmp/myscript is created or not (don&#039;t forget to delete it afterward). <br />Otherwise, errors are logged in ~/.xsession-errors</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Tue, 30 Oct 2012 10:11:42 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27834#p27834</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27830#p27830</link>
			<description><![CDATA[<p>I miss-typed.<br />This is the script file, but it won&#039;t load on log in.<br />cp -f ~/.config/xfce4/desktop.bak/icons*&#160; &#160;~/.config/xfce4/desktop</p><p>My desktop icon files are saved in folder desktop.bak and upon login I want them to be loaded in folder desktop,<br />It is checked, but does not run.</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Mon, 29 Oct 2012 22:59:53 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27830#p27830</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27829#p27829</link>
			<description><![CDATA[<p>I mean that I have this:<br />cp -f ~/.config/xfce4/desktop/icons* ~/.config/xfce4/desktop.bak<br />in a file in my folder that is executable, and I have it checked in the <br />&quot;Settings/Session and startup/Application Autostart&quot;<br />but it will not execute on login</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Mon, 29 Oct 2012 22:50:34 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27829#p27829</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27828#p27828</link>
			<description><![CDATA[<p>About .bashrc and .bash_logout, you will have better change on your distriib forum.<br />About &quot;I can&#039;t even get a script to run&quot; : what do you mean ?? You don&#039;t have the add button ? Don&#039;t do anything ?</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Mon, 29 Oct 2012 22:07:32 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27828#p27828</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27827#p27827</link>
			<description><![CDATA[<p>Well, I can&#039;t even get a script to run in &quot;Application Autostart&quot; in &quot;Session and Startup&quot;</p><p>so back to base 1</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Mon, 29 Oct 2012 21:40:13 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27827#p27827</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27826#p27826</link>
			<description><![CDATA[<p>I think I might try to make a startup script to put in start-up, so that they will load in as saved, and I will just have to <br />have a script on my desktop (&#160; cp -f ~/.config/xfce4/desktop/icons* ~/.config/xfce4/desktop.bak ) to save the icons<br />whenever I get them the way I want. </p><p>~Or, I have a script that I can put on my desktop, to either:<br />sudo chattr +i ~/.config/xfce4/desktop/icons*&#160; or&#160; &#160;sudo chattr -i ~/.config/xfce4/desktop/icons*<br />to &quot;lock&quot; or &quot;unlock&quot; the icon files. Unlock, get them the way I want, then lock them back.<br />(Except, one would have to be a sudo user to do it)</p><p>I read on some post somewhere that there was a new desktop manager being used for Ubuntu&#160; -&gt;&#160; &#160;/etc/lightdm<br />and that settings would have to work with lightdm to get bascrc and bash_logout to work on the desktop.</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Mon, 29 Oct 2012 21:18:26 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27826#p27826</guid>
		</item>
		<item>
			<title><![CDATA[Re: Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27823#p27823</link>
			<description><![CDATA[<p>I&#039;m pretty sure that .bashrc is loaded each time you open an Terminal/console, if you ever open one ... I think it&#039;s better if you put the copy code in an autostart script so it will be executed once during login.<br />For .bash_logout, normally it is ran when logout, but that was in older time where you use console only. Now, with Xorg, session manager, etc ... I don&#039;t know if it is really loaded when you logout from Xfce ... Plus, it may depend on how your linux distribution configured it. <br />I remember that on Fedora 8 (once upon a time ... lol), .bash_login is not loaded when you login graphically. May be it&#039;s a bug but no one ever fix it.</p><p>PS: stupid question but ... make sure that your default shell is bash :-p</p>]]></description>
			<author><![CDATA[dummy@example.com (angstrom)]]></author>
			<pubDate>Mon, 29 Oct 2012 19:06:25 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27823#p27823</guid>
		</item>
		<item>
			<title><![CDATA[Can't get ~/.bachrc and ~/.bash_logout to work]]></title>
			<link>http://forum.xfce.org/viewtopic.php?pid=27821#p27821</link>
			<description><![CDATA[<p>hi</p><p>I am trying to get some commands to run at logout and at login.<br />Specifically:</p><p>At logout, I want to save my desktop icon settings by doing this with ~/.bash_logout:<br />&#160; &#160;mkdir -p ~/.config/xfce4/desktop.bak<br />&#160; &#160;cp -f ~/.config/xfce4/desktop/icons* ~/.config/xfce4/desktop.bak</p><br /><p>and at login, I want to load the saved icon positions back in using ~/.bashrc:<br />&#160; &#160;cp -f ~/.config/xfce4/desktop.bak/icons* ~/.config/xfce4/desktop</p><br /><p>For some reason, ~/.bash_logout &amp; ~/.bashrc will not run.</p>]]></description>
			<author><![CDATA[dummy@example.com (shakebake)]]></author>
			<pubDate>Mon, 29 Oct 2012 18:48:15 +0000</pubDate>
			<guid>http://forum.xfce.org/viewtopic.php?pid=27821#p27821</guid>
		</item>
	</channel>
</rss>
