<?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=7560&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Devuan Excalibur Pipewire / via $HOME.profile]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=7560</link>
		<description><![CDATA[The most recent posts in [SOLVED] Devuan Excalibur Pipewire / via $HOME.profile.]]></description>
		<lastBuildDate>Thu, 13 Nov 2025 08:39:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Excalibur Pipewire / via $HOME.profile]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59537#p59537</link>
			<description><![CDATA[<p>Nevermind, im getting it now. <br />Must be for users who are using elogind only. <br />I need to just keep doing what im doing to run pipewire and using below statement in $HOME/.profile</p><div class="codebox"><pre><code>if [ -z &quot;$XDG_RUNTIME_DIR&quot; ]; then
        XDG_RUNTIME_DIR=&quot;/tmp/$(id -u)-runtime-dir&quot;

        mkdir -pm 0700 &quot;$XDG_RUNTIME_DIR&quot;
        export XDG_RUNTIME_DIR
fi</code></pre></div><p>Just the wording from the release notes made me think i could use that code in $HOME/.profile using startx without elogind.</p><p><a href="https://files.devuan.org/devuan_excalibur/Release_notes.txt" rel="nofollow">https://files.devuan.org/devuan_excalib … _notes.txt</a></p><div class="codebox"><pre><code>&gt; `apt-get install pipewire pipewire-pulse wireplumber`

There are many different ways of achieving this depending on whether you require
sound in the console, a GUI desktop or both.

A basic solution that can accommodate both is to add the following shell
snippets:-

  * ~/.profile

        if [ &quot;$XDG_RUNTIME_DIR&quot; = &quot;/run/user/$(id -u)&quot; ] ; then
                psess_pids=
                for p in pipewire wireplumber pipewire-pulse ; do
                command -v $p &gt;/dev/null || continue
                    pgrep --exact --uid $USER $p &gt;/dev/null &amp;&amp; continue
                    $p &amp;
                    psess_pids=&quot;$! ${psess_pids}&quot;
                done
                [ &quot;$psess_pids&quot; ] &amp;&amp; trap &quot;kill $psess_pids&quot; EXIT
        fi

  * ~/.xsessionrc

        if [ -f ~/.profile ]; then
            . ~/.profile
        fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (HardSun)]]></author>
			<pubDate>Thu, 13 Nov 2025 08:39:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59537#p59537</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Devuan Excalibur Pipewire / via $HOME.profile]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59535#p59535</link>
			<description><![CDATA[<p>Well check what is actually being sourced.</p><div class="codebox"><pre><code>/bin/bash -lixc exit 2&gt;&amp;1 | sed -n &#039;s/^+* \(source\|\.\) //p&#039;</code></pre></div><p>That showed me for my machine.</p><div class="codebox"><pre><code>zeus@9600k:~$ /bin/bash -lixc exit 2&gt;&amp;1 | sed -n &#039;s/^+* \(source\|\.\) //p&#039;
/etc/bash.bashrc
/etc/profile.d/bash_completion.sh
/usr/share/bash-completion/bash_completion
/etc/bash_completion.d/000_bash_completion_compat.bash
/etc/bash_completion.d/git-prompt
/usr/lib/git-core/git-sh-prompt
/etc/profile.d/vte-2.91.sh
/home/zeus/.bashrc
/home/zeus/.bash_aliases
/usr/share/bash-completion/bash_completion
/etc/bash_completion.d/000_bash_completion_compat.bash
/etc/bash_completion.d/git-prompt
/usr/lib/git-core/git-sh-prompt
/home/zeus/.bash_functions</code></pre></div><p>And I have a a .profile that is never used.</p><div class="codebox"><pre><code>zeus@9600k:~$ ls -l .profile
-rw-r--r-- 1 zeus zeus 641 Aug 31  2022 .profile</code></pre></div><p>When I&#160; use the autostart option of KDE to launch it I use this script.</p><div class="codebox"><pre><code>zeus@9600k:~$ cat bin/pipewire_start.sh 
#!/bin/bash

# Added to start pipewire on login to desktop
# https://dev1galaxy.org/viewtopic.php?id=5867
# was the ~/.xsessionrc -rw-rw-r-- permissions
# now ~/bin/pipewire_start.sh executable permissions
# as bash script loaded from KDE autostart in System Settings

# kill any existing pipewire instance to restore sound
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire-pulse 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/wireplumber 1&gt;/dev/null 2&gt;&amp;1
pkill -u &quot;$USER&quot; -fx /usr/bin/pipewire 1&gt;/dev/null 2&gt;&amp;1

# start pipewire
exec /usr/bin/pipewire &amp;

# wait for pipewire to start before attempting to start related daemons
while [ &quot;$(pgrep -f /usr/bin/pipewire)&quot; = &quot;&quot; ] ; do
   sleep 1
done

# start wireplumber
exec /usr/bin/wireplumber &amp;

# start pipewire-pulse
exec /usr/bin/pipewire-pulse &amp;</code></pre></div><p>As you can see from my comment in that file I used to actually start processes in the ~/.xsessionrc. Save yourself the time and trouble and do the same, it just works without fail. I only changed it as I wanted to test that steaming pile of dung they call Wayland and it would not start using the X11 config file method obviously.</p>]]></description>
			<author><![CDATA[dummy@example.com (RedGreen925)]]></author>
			<pubDate>Thu, 13 Nov 2025 06:47:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59535#p59535</guid>
		</item>
		<item>
			<title><![CDATA[[SOLVED] Devuan Excalibur Pipewire / via $HOME.profile]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=59533#p59533</link>
			<description><![CDATA[<p>I just have a question regarding the release notes and starting pipewire and $XDG_RUNTIME_DIR within $HOME/.profile as i cant get it to work, nothing happens. <br />EDIT: I dont use elogind or polkit, only seatd.</p><p><a href="https://files.devuan.org/devuan_excalibur/Release_notes.txt" rel="nofollow">https://files.devuan.org/devuan_excalib … _notes.txt</a></p><p>This is how i currently start pipewire and wireplumber, please read on for the questions.<br /><span class="bbc">$HOME/.profile</span></p><div class="codebox"><pre><code>if [ -f ~/.bashrc ];
    then . ~/.bashrc;
fi

export PATH=&quot;$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;

if [ -z &quot;$XDG_RUNTIME_DIR&quot; ]; then
        XDG_RUNTIME_DIR=&quot;/tmp/$(id -u)-runtime-dir&quot;

        mkdir -pm 0700 &quot;$XDG_RUNTIME_DIR&quot;
        export XDG_RUNTIME_DIR
fi</code></pre></div><p><span class="bbc">$HOME/.xinitrc</span></p><div class="codebox"><pre><code>. ~/.profile
xrandr --output HDMI-2 --mode 1920x1080 --rate 144.00 &amp;
xset s off -dpms &amp;
slstatus &amp;
sxhkd &amp;
dbus-launch &amp;
pipewire &amp;
pipewire-pulse &amp;
sleep 3s &amp;&amp; wireplumber &amp;
sleep 2s &amp;&amp; exec startdwm</code></pre></div><p>________________________________________________________</p><p>As per the release notes, below code snippets is how i have modified $HOME/.profile and now sourcing it via .xsessionrc instead of .xinitrc, is this correct or am i missing something? <br />Also dbus-launch is needed via either xinitrc or .profile i think?<br /><span class="bbc">$HOME/.profile</span></p><div class="codebox"><pre><code>if [ -f ~/.bashrc ];
    then . ~/.bashrc;
fi

export PATH=&quot;$HOME/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin&quot;

        if [ &quot;$XDG_RUNTIME_DIR&quot; = &quot;/run/user/$(id -u)&quot; ] ; then
                psess_pids=
                for p in pipewire wireplumber pipewire-pulse ; do
                command -v $p &gt;/dev/null || continue
                    pgrep --exact --uid $USER $p &gt;/dev/null &amp;&amp; continue
                    $p &amp;
                    psess_pids=&quot;$! ${psess_pids}&quot;
                done
                [ &quot;$psess_pids&quot; ] &amp;&amp; trap &quot;kill $psess_pids&quot; EXIT
        fi</code></pre></div><p><span class="bbc">$HOME/.xinitrc</span></p><div class="codebox"><pre><code>xrandr --output HDMI-2 --mode 1920x1080 --rate 144.00 &amp;
xset s off -dpms &amp;
slstatus &amp;
sxhkd &amp;
dbus-launch &amp;
sleep 2s &amp;&amp; exec startdwm</code></pre></div><p><span class="bbc">$HOME/.xsessionrc</span></p><div class="codebox"><pre><code>        if [ -f ~/.profile ]; then
            . ~/.profile
        fi</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (HardSun)]]></author>
			<pubDate>Thu, 13 Nov 2025 06:08:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=59533#p59533</guid>
		</item>
	</channel>
</rss>
