<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=H0m3</id>
	<title>Alpine Linux - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.alpinelinux.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=H0m3"/>
	<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/wiki/Special:Contributions/H0m3"/>
	<updated>2026-05-03T09:08:32Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.0</generator>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=D-Bus&amp;diff=23671</id>
		<title>D-Bus</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=D-Bus&amp;diff=23671"/>
		<updated>2023-06-11T23:53:09Z</updated>

		<summary type="html">&lt;p&gt;H0m3: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://en.wikipedia.org/wiki/D-Bus D-Bus] is a message bus system that provides a mechanism for inter-process communication.&lt;br /&gt;
&lt;br /&gt;
Some services (including Pipewire) rely on a D-Bus session instance. Other processes will only be able to communicate with these services if d-bus is running.&lt;br /&gt;
&lt;br /&gt;
You can start a dbus session like this: &amp;lt;code&amp;gt;dbus-run-session -- sh&amp;lt;/code&amp;gt;(replacing sh with your shell or a window manager), or, &amp;lt;code&amp;gt;export $(dbus-launch)&amp;lt;/code&amp;gt;. This is distinct from running dbus system-wide: &amp;lt;code&amp;gt;rc-service dbus start&amp;lt;/code&amp;gt;, which is a prerequisite to run a user dbus session.&lt;br /&gt;
&lt;br /&gt;
D-Bus passes the environment variable &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; to its children. Running &amp;lt;code&amp;gt;dbus-launch&amp;lt;/code&amp;gt; in a terminal means that other running process won&#039;t find this  D-Bus&#039;s socket.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; is undefined, many applications will attempt to use the standard path:&lt;br /&gt;
&lt;br /&gt;
 $XDG_RUNTIME_DIR/bus&lt;br /&gt;
&lt;br /&gt;
Running D-Bus like so should work for many applications:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|dbus-daemon --nofork --address unix:path{{=}}$XDG_RUNTIME_DIR/bus --session}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
For applications that dont work without &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; you can prepend your program with the follow workaround script which avoid launching multiple user dbus sessions:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 if [ ! -e &amp;quot;/tmp/dbus-$USER-env&amp;quot; ]; then&lt;br /&gt;
        echo &amp;quot;Creating new dbus session on /tmp/dbus-$USER-env&amp;quot;&lt;br /&gt;
        export $(dbus-launch)&lt;br /&gt;
        echo &amp;quot;${DBUS_SESSION_BUS_ADDRESS}&amp;quot; &amp;gt; /tmp/dbus-$USER-env&lt;br /&gt;
        echo &amp;quot;Dbus session address is: ${DBUS_SESSION_BUS_ADDRESS}&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
        echo &amp;quot;Using dbus session address from /tmp/dbus-$USER-env&amp;quot;&lt;br /&gt;
        export DBUS_SESSION_BUS_ADDRESS=&amp;quot;$(cat /tmp/dbus-$USER-env)&amp;quot;&lt;br /&gt;
        echo &amp;quot;Dbus session address is: ${DBUS_SESSION_BUS_ADDRESS}&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 if [ -n &amp;quot;$1&amp;quot; ]; then&lt;br /&gt;
        $@&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
[[Category:System Administration]]&lt;/div&gt;</summary>
		<author><name>H0m3</name></author>
	</entry>
	<entry>
		<id>https://wiki.alpinelinux.org/w/index.php?title=D-Bus&amp;diff=23670</id>
		<title>D-Bus</title>
		<link rel="alternate" type="text/html" href="https://wiki.alpinelinux.org/w/index.php?title=D-Bus&amp;diff=23670"/>
		<updated>2023-06-11T23:52:38Z</updated>

		<summary type="html">&lt;p&gt;H0m3: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[https://en.wikipedia.org/wiki/D-Bus D-Bus] is a message bus system that provides a mechanism for inter-process communication.&lt;br /&gt;
&lt;br /&gt;
Some services (including Pipewire) rely on a D-Bus session instance. Other processes will only be able to communicate with these services if d-bus is running.&lt;br /&gt;
&lt;br /&gt;
You can start a dbus session like this: &amp;lt;code&amp;gt;dbus-run-session -- sh&amp;lt;/code&amp;gt;(replacing sh with your shell or a window manager), or, &amp;lt;code&amp;gt;export $(dbus-launch)&amp;lt;/code&amp;gt;. This is distinct from running dbus system-wide: &amp;lt;code&amp;gt;rc-service dbus start&amp;lt;/code&amp;gt;, which is a prerequisite to run a user dbus session.&lt;br /&gt;
&lt;br /&gt;
D-Bus passes the environment variable &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; to its children. Running &amp;lt;code&amp;gt;dbus-launch&amp;lt;/code&amp;gt; in a terminal means that other running process won&#039;t find this  D-Bus&#039;s socket.&lt;br /&gt;
&lt;br /&gt;
If &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; is undefined, many applications will attempt to use the standard path:&lt;br /&gt;
&lt;br /&gt;
 $XDG_RUNTIME_DIR/bus&lt;br /&gt;
&lt;br /&gt;
Running D-Bus like so should work for many applications:&lt;br /&gt;
&lt;br /&gt;
{{Cmd|dbus-daemon --nofork --address unix:path{{=}}$XDG_RUNTIME_DIR/bus --session}}&lt;br /&gt;
&lt;br /&gt;
For the applications that dont work without &amp;lt;code&amp;gt;$DBUS_SESSION_BUS_ADDRESS&amp;lt;/code&amp;gt; you can prepend your program with the follow workaround script which avoid launching multiple user dbus sessions:&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 if [ ! -e &amp;quot;/tmp/dbus-$USER-env&amp;quot; ]; then&lt;br /&gt;
        echo &amp;quot;Creating new dbus session on /tmp/dbus-$USER-env&amp;quot;&lt;br /&gt;
        export $(dbus-launch)&lt;br /&gt;
        echo &amp;quot;${DBUS_SESSION_BUS_ADDRESS}&amp;quot; &amp;gt; /tmp/dbus-$USER-env&lt;br /&gt;
        echo &amp;quot;Dbus session address is: ${DBUS_SESSION_BUS_ADDRESS}&amp;quot;&lt;br /&gt;
 else&lt;br /&gt;
        echo &amp;quot;Using dbus session address from /tmp/dbus-$USER-env&amp;quot;&lt;br /&gt;
        export DBUS_SESSION_BUS_ADDRESS=&amp;quot;$(cat /tmp/dbus-$USER-env)&amp;quot;&lt;br /&gt;
        echo &amp;quot;Dbus session address is: ${DBUS_SESSION_BUS_ADDRESS}&amp;quot;&lt;br /&gt;
 fi&lt;br /&gt;
 if [ -n &amp;quot;$1&amp;quot; ]; then&lt;br /&gt;
        $@&lt;br /&gt;
 fi&lt;br /&gt;
&lt;br /&gt;
[[Category:System Administration]]&lt;/div&gt;</summary>
		<author><name>H0m3</name></author>
	</entry>
</feed>