<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4732&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / execute a script on log-in]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4732</link>
		<description><![CDATA[The most recent posts in execute a script on log-in.]]></description>
		<lastBuildDate>Fri, 04 Feb 2022 18:24:44 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34389#p34389</link>
			<description><![CDATA[<p>Remove the PATH line from ~/.xsessionrc if it&#039;s being set in ~/.profile and also remove the <span class="bbc">bash</span> line from ~/.profile then you can call the script from .xsessionrc, like this:</p><div class="codebox"><pre><code>0-BitTwisters-siggen.bsh</code></pre></div><p>^ That&#039;s all you need if the script is executable, is in a PATH directory and has a <span class="bbc">#!/bin/bash</span> shebang. No need to call the full path or prepend <span class="bbc">bash</span>.</p><p>Alternatively remove any PATH additions and just call the full path to the script.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Feb 2022 18:24:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34389#p34389</guid>
		</item>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34367#p34367</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Here&#039;s a solution (run as your normal user):</p><div class="codebox"><pre><code>tee ~/.xessionrc &lt;&lt;!
export PATH=&quot;$PATH&quot;:&quot;$HOME&quot;/bashers-linked
[ -f ~/.profile ] &amp;&amp; . ~/.profile
!</code></pre></div><p>Then log out &amp; back in again.</p><p>EDIT: that creates a file at ~/.xsessionrc with the content listed between the exclamation marks. Note to self: stop being such an insufferable smart-ass...</p></div></blockquote></div><p>...done</p><p>Now I can click the script I credit to&#160; </p><p>0-BitTwisters-siggen.bsh </p><p>which creates the sig below</p><p>The call is still in .profile&#160; as well</p><div class="codebox"><pre><code>###########################################################
###########################################################
#https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752129
export PATH=$PATH:$HOME/0/bashers-linked
bash ~/0/bashers-linked/0-BitTwisters-siggen.bsh
###########################################################
###########################################################</code></pre></div><p>How do I get this done auto on log-in?&#160; I&#039;m thinking of a similar <br />inclusion in .xsession.rc to execute .profile&#160; <br />{but maybe it&#039;s better if I don&#039;t think too much}</p><p>-- <br />Devuan GNU/Linux 4 (chimaera), Kernel=5.10.0-11-amd64 on x86_64,<br />DM=Unknown, DE=XFCE, ST=x11,grub2, GPT, BIOS-boot</p>]]></description>
			<author><![CDATA[dummy@example.com (torquebar)]]></author>
			<pubDate>Fri, 04 Feb 2022 02:12:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34367#p34367</guid>
		</item>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34365#p34365</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Here&#039;s a solution (run as your normal user):</p><div class="codebox"><pre><code>tee ~/.xessionrc &lt;&lt;!
export PATH=&quot;$PATH&quot;:&quot;$HOME&quot;/bashers-linked
[ -f ~/.profile ] &amp;&amp; . ~/.profile
!</code></pre></div><p>Then log out &amp; back in again.</p><p>EDIT: that creates a file at ~/.xsessionrc with the content listed between the exclamation marks. Note to self: stop being such an insufferable smart-ass...</p></div></blockquote></div><p>thanks, I&#039;ll try that, been busy with other things :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (torquebar)]]></author>
			<pubDate>Fri, 04 Feb 2022 01:23:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34365#p34365</guid>
		</item>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33375#p33375</link>
			<description><![CDATA[<p>Here&#039;s a solution (run as your normal user):</p><div class="codebox"><pre><code>tee ~/.xessionrc &lt;&lt;!
export PATH=&quot;$PATH&quot;:&quot;$HOME&quot;/bashers-linked
[ -f ~/.profile ] &amp;&amp; . ~/.profile
!</code></pre></div><p>Then log out &amp; back in again.</p><p>EDIT: that creates a file at ~/.xsessionrc with the content listed between the exclamation marks. Note to self: stop being such an insufferable smart-ass...</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 20 Dec 2021 21:00:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33375#p33375</guid>
		</item>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33374#p33374</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752129" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=752129</a></p><p>See also <a href="https://wiki.debian.org/Xsession" rel="nofollow">https://wiki.debian.org/Xsession</a></p></div></blockquote></div><p>Thanks, interesting reads. I was certain that no distro logged <br />a user in without executing ~/.profile&#160; &#160;...wrong again!</p><p>I even tried it in ~/.bashrc that didn&#039;t work either, fortunately<br />it&#039;s not a vital issue, in the interim until solution-day I can just <br />rig a button in the panel to do the same thing on a click.</p>]]></description>
			<author><![CDATA[dummy@example.com (torquebar)]]></author>
			<pubDate>Mon, 20 Dec 2021 20:44:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33374#p33374</guid>
		</item>
		<item>
			<title><![CDATA[Re: execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33363#p33363</link>
			<description><![CDATA[<p><a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=752129" rel="nofollow">https://bugs.debian.org/cgi-bin/bugrepo … bug=752129</a></p><p>See also <a href="https://wiki.debian.org/Xsession" rel="nofollow">https://wiki.debian.org/Xsession</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Mon, 20 Dec 2021 05:50:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33363#p33363</guid>
		</item>
		<item>
			<title><![CDATA[execute a script on log-in]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=33362#p33362</link>
			<description><![CDATA[<p>In Artix, Slackware and Suse I can as a user include a line <br />like:</p><p><span class="bbc">makeafile.bsh</span></p><p>in the file ~.profile and make that script executable in <br />directory ~/bashers and then link to it in ~/bashers-linked</p><p>To get that path permanently into $PATH I do</p><p><span class="bbc">export PATH=$PATH:$HOME/bashers-linked</span></p><p>or I can give the full path to the link in ~.profile</p><p><span class="bbc">~/bashers-linked/makeafile.bsh</span></p><p>This achieves the desired result ...EXCEPT in Devuan.</p><p>The script executes if commanded, it&#039;s just that I can&#039;t<br />get it to auto-execute on login :-( </p><p>Is ~.profile read at all?&#160; </p><p>What else should I investigate?</p><p>TIA</p>]]></description>
			<author><![CDATA[dummy@example.com (torquebar)]]></author>
			<pubDate>Mon, 20 Dec 2021 05:08:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=33362#p33362</guid>
		</item>
	</channel>
</rss>
