<?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=4553&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / HOWTO: A fully functional xfce4-appmenu-plugin with lightdm + elogind.]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4553</link>
		<description><![CDATA[The most recent posts in HOWTO: A fully functional xfce4-appmenu-plugin with lightdm + elogind..]]></description>
		<lastBuildDate>Sat, 09 Oct 2021 22:23:58 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[HOWTO: A fully functional xfce4-appmenu-plugin with lightdm + elogind.]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=32000#p32000</link>
			<description><![CDATA[<p><ins>Distro: Devuan-Testing (chimaera) soon to be the next stable release.</ins></p><p>Ever tried to install this plugin on a pure sysv-init-system and you never got it to work as advertised? Maybe this HOWTO might come in handy.</p><p>You want to see a proof, here it is (a snippet from /var/log/syslog):</p><ul><li><p>Oct&#160; 9 12:35:12 mars dbus-daemon[6220]: [session uid=1002 pid=6218] Activating service name=&#039;com.canonical.AppMenu.Registrar&#039; requested by &#039;:1.15&#039; (uid=1002 pid=6338 comm=&quot;/usr/lib/x86_64-linux-gnu/xfce4/panel/wrapper-2.0 &quot;)<br />Oct&#160; 9 12:35:12 mars dbus-daemon[6220]: [session uid=1002 pid=6218] Successfully activated service &#039;com.canonical.AppMenu.Registrar&#039;</p></li></ul><p>and</p><ul><li><p>~$ env | grep GTK_M<br />GTK_MODULES=appmenu-gtk-module</p></li></ul><p>The solution, bases on the motto &quot;if you can&#039;t make it - fake it&quot; and a still reasonably sane Lightdm and Xfce4-Core, is actually fairly simple. A purist might bark at it - but it does work<em> flawlessly</em> and should be &quot;futureproof&quot; for the whole of Chimaera&#039;s live-cicle.</p><p>On my box it does now take about 2 seconds longer to get from the login to the desktop. I am not too thrilled about that. Any feedback is welcome especially a better but <em>tested</em> solution. Please share. I would like to see this HOWTO to be the standard goto for devuan users experiencing problems with this plugin.</p><p><strong>OK, here we go....in 4 easy steps.</strong></p><p><span class="bbu">Step 1</span></p><p>Packages required:</p><ul><li><p>[INSTALL, DEPENDENCIES] appmenu-gtk-module-common:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] appmenu-gtk2-module:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] appmenu-gtk3-module:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] appmenu-registrar:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] libappmenu-gtk2-parser0:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] libappmenu-gtk3-parser0:amd64 0.7.6-2<br />[INSTALL, DEPENDENCIES] libdbusmenu-gtk4:amd64 18.10.20180917~bzr492+repack1-2<br />[INSTALL, DEPENDENCIES] vala-panel-appmenu-common:amd64 0.7.6+dfsg1-3<br />[INSTALL] xfce4-appmenu-plugin:amd64 0.7.6+dfsg1-3</p></li></ul><p>and add the plugin to the panel.</p><p><span class="bbu">Step 2</span></p><p>As user:</p><div class="codebox"><pre><code>$ cp /etc/xdg/xfce4/xinitrc ~/.config/xfce4/
$ nano ~/.config/xfce4/xinitrc</code></pre></div><p>and paste the following snippet into the file....</p><div class="quotebox"><blockquote><div><p>#-------Start-fred<br /># Let &#039;xfce4-session&#039; do the magic to get it added to the<br /># desktop-environment without being locked out of a session.<br /># Downside, adds 1-3 secs in exchange for a bit more screen realestate!<br />#<br /># Do we have to do it?<br />if [ -x /usr/libexec/vala-panel/appmenu-registrar ]; then<br />&#160; # Don&#039;t drop the ball if additional gtk-modules have been sneaked in<br />&#160; if [ -z &quot;$GTK_MODULES&quot; ]; then<br />&#160; &#160; GTK_MODULES=&quot;appmenu-gtk-module&quot;<br />&#160; else<br />&#160; &#160; GTK_MODULES=&quot;$GTK_MODULES:appmenu-gtk-module&quot;<br />&#160; fi<br />&#160; export GTK_MODULES<br />fi<br />#-------End-fred</p></div></blockquote></div><p>...just before the following line (near the end of the file)</p><div class="quotebox"><blockquote><div><p># check if we start xfce4-session with ck-launch-session. this is only<br /># ....<br /># ....</p></div></blockquote></div><p>and save and exit nano</p><p><span class="bbu">Step 3</span></p><p>As root:</p><div class="codebox"><pre><code># nano /etc/lightdm/lightdm.conf</code></pre></div><p>Under the section</p><div class="quotebox"><blockquote><div><p>[Seat:*]<br />...<br />...</p></div></blockquote></div><p>change</p><div class="quotebox"><blockquote><div><p>session-setup-script=</p></div></blockquote></div><p>to</p><div class="quotebox"><blockquote><div><p>session-setup-script=/etc/lightdm/scripts/activate-appmenu-bus</p></div></blockquote></div><p>save and exit nano</p><p>then</p><div class="codebox"><pre><code># mkdir /etc/lightdm/scripts
# nano /etc/lightdm/scripts/activate-appmenu-bus</code></pre></div><p>and paste the following into the file:</p><div class="quotebox"><blockquote><div><p>#!/bin/sh</p><p># Needs to be run as &#039;root&#039; and not as the &#039;USER&#039;!!!<br />test -x /usr/libexec/vala-panel/appmenu-registrar || exit 0</p><p>/usr/libexec/vala-panel/appmenu-registrar</p><p>exit 0</p></div></blockquote></div><p>save and exit nano and make the file executable (-rwxr-xr-x)!</p><p><span class="bbu">Step 4 (Final)</span></p><p>A &#039;/etc/init.d/lightdm restart&#039; might be good enough but I recommend a shutdown because &#039;dbus&#039; is involved.</p><p>Enjoy your global-menu.</p><p>-------------------</p><p>Side-Note:<br />After you got it working you will see in ~/.xsession-errors<br />or after a &#039;xfce4-panel -r&#039; in the terminal the following:</p><div class="quotebox"><blockquote><div><p>Gtk-Message: 10:56:30.568: Failed to load module &quot;colorreload-gtk-module&quot;<br />Gtk-Message: 10:56:30.568: Failed to load module &quot;window-decorations-gtk-module&quot;</p></div></blockquote></div><p>Ignore it, it is <strong>not</strong> relevant for the xfce4-appmenu-plugin to work properly in the Devuan-Environment. I think it is an Ubuntu/Kubuntu thingy because the appmenu-registrar gets registered under: &#039;com.canonical.AppMenu.Registrar&#039; although it seems to expect to be registered under &#039;org.valapanel.AppMenu,Registrar&#039; when invoked directly as a USER. Just another mystery (at least for me) in the changed linux-landscape of obfuscations.</p>]]></description>
			<author><![CDATA[dummy@example.com (fred43)]]></author>
			<pubDate>Sat, 09 Oct 2021 22:23:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=32000#p32000</guid>
		</item>
	</channel>
</rss>
