<?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=3985&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Obmenu-generator problem]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=3985</link>
		<description><![CDATA[The most recent posts in Obmenu-generator problem.]]></description>
		<lastBuildDate>Mon, 07 Dec 2020 18:58:02 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26151#p26151</link>
			<description><![CDATA[<p>Helllo:</p><div class="quotebox"><cite>MiyoLinux wrote:</cite><blockquote><div><p>Not sure what the problem could be.<br />... depends according to the &quot;Debian-based&quot; instructions ...</p></div></blockquote></div><p>Yes.<br />And added <span class="bbc">libtgtk3-perl</span> just in case.&#160; 8^)</p><div class="quotebox"><cite>MiyoLinux wrote:</cite><blockquote><div><p>Did you mistakenly create it as root instead?</p></div></blockquote></div><p>I don&#039;t think so ...<br />But given the results, I&#039;ve been thinking it that I <em>may</em> have. </p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>What am I missing?</p></div></blockquote></div><div class="quotebox"><cite>MiyoLinux wrote:</cite><blockquote><div><p>elogind commands...<br />Shutdown = loginctl poweroff<br />Reboot = loginctl reboot</p></div></blockquote></div><p>Thanks for the heads up.<br />I&#039;ll have a look and see how I do with those.</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Mon, 07 Dec 2020 18:58:02 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26151#p26151</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26145#p26145</link>
			<description><![CDATA[<p>Not sure what the problem could be. The instructions on the MiyoLinux website always works for me...on Ascii, Beowulf, and Ceres.&#160; ???</p><p>If HoaS&#039;s package works for you then, by all means use it. <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p><p>Did you install the depends according to the &quot;Debian-based&quot; instructions on the website?</p><div class="codebox"><pre><code>For Debian-based systems...

apt install make git cpanminus libgtk2-perl</code></pre></div><p>You may now need to install <span class="bbc">libtgtk3-perl</span> too. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" />&#160; I need to update the site.</p><div class="quotebox"><blockquote><div><p>Hi, What are the permissions for the location &quot;/home/groucho/.config/obmenu-generator&quot;?</p></div></blockquote></div><p>I&#039;m lazy and just open the file manager, go to ~/.config/ and create the obmenu-generator folder as myself...the regular user. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /> Did you mistakenly create it as root instead?</p><div class="quotebox"><blockquote><div><p>Now I have a problem with a couple of Openbox entries I use frequently.<br />In my previous non-configurator menu, I had entries for reboot and shutdown.</p><p>execute --&gt; lxterminal sudo -e shutdown -r now and execute --&gt; lxterminal sudo -e shutdown -r now.</p><p>These still work perfectly well from the command line ie: sudo -e shutdown -r/h now but using the stanza in schema.pl won&#039;t work.</p><p>What am I missing?</p></div></blockquote></div><p>elogind commands...</p><p>Shutdown = loginctl poweroff</p><p>Reboot = loginctl reboot</p>]]></description>
			<author><![CDATA[dummy@example.com (MiyoLinux)]]></author>
			<pubDate>Mon, 07 Dec 2020 15:10:41 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26145#p26145</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26134#p26134</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... must be mistaken ...</p></div></blockquote></div><p>Quite so.&#160; 8^/<br />Was without my coffee ...</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Not sure, sorry. I would investigate ...</p></div></blockquote></div><p>I&#039;ll have a look and see.<br />Snooker <em>is</em> a priority.&#160; 8^D</p><p>Thanks a lot for your help.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Dec 2020 21:35:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26134#p26134</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26132#p26132</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>It is the same stanza I used with the previous OB setup.</p><div class="codebox"><pre><code>## This uses the &#039;oblogout&#039; menu
{item =&gt; [&#039;lxterminal sudo -e shutdown -r now&#039;, &#039;Reboot&#039;, &#039;applications-system&#039;]},</code></pre></div><p>and</p><div class="codebox"><pre><code>## This uses the &#039;oblogout&#039; menu
{item =&gt; [&#039;lxterminal sudo -e shutdown -h now&#039;, &#039;Shutdown&#039;, &#039;applications-system&#039;]},</code></pre></div></div></blockquote></div><p>I think you must be mistaken — the <span class="bbc">-e</span> switch for <span class="bbc">sudo</span> invokes it as an editor for the file named afterwards, check <span class="bbc">~/.xsession-errors</span> to confirm this. I think you meant to use</p><div class="codebox"><pre><code>{item =&gt; [&#039;lxterminal -e sudo shutdown -h now&#039;, &#039;Shutdown&#039;, &#039;applications-system&#039;]},</code></pre></div><p>But you don&#039;t need to open a terminal emulator to run the command <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p><div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>only those icons are available? ie: the ones with the UUID type names?</p></div></blockquote></div><p>Not sure, sorry. I would investigate but the snooker&#039;s on TV <img src="https://dev1galaxy.org/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 06 Dec 2020 19:13:39 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26132#p26132</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26130#p26130</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>You should show us exactly what you are adding ...</p></div></blockquote></div><p>Right ...<br />It is the same stanza I used with the previous OB setup.</p><div class="codebox"><pre><code>## This uses the &#039;oblogout&#039; menu
{item =&gt; [&#039;lxterminal sudo -e shutdown -r now&#039;, &#039;Reboot&#039;, &#039;applications-system&#039;]},</code></pre></div><p>and</p><div class="codebox"><pre><code>## This uses the &#039;oblogout&#039; menu
{item =&gt; [&#039;lxterminal sudo -e shutdown -h now&#039;, &#039;Shutdown&#039;, &#039;applications-system&#039;]},</code></pre></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>This works ...</p><div class="codebox"><pre><code>{item =&gt; [&#039;sudo shutdown -r now&#039;, &#039;Reboot&#039;]},</code></pre></div><p>... doesn&#039;t have an icon ...</p></div></blockquote></div><p>Indeed ...<br />Works as intended.<br />I used one of the other available icons.</p><p>BTW: only those icons are available? ie: the ones with the UUID type names?</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... prefer to use <a href="https://pkginfo.devuan.org/cgi-bin/package-query.xml?c=package&amp;q=obsession=20140608-2+b1" rel="nofollow">obsession</a> to exit the openbox session.</p></div></blockquote></div><p>I&#039;m used to ctrl+alt+backspace, fast enough.</p><p>Thanks for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Dec 2020 18:33:23 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26130#p26130</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26128#p26128</link>
			<description><![CDATA[<div class="quotebox"><cite>Altoid wrote:</cite><blockquote><div><p>using the stanza in <span class="bbc">schema.pl</span> won&#039;t work</p></div></blockquote></div><p>You should show us exactly what you are adding to <span class="bbc">~/.config/obmenu-generator/schema.pl</span>.</p><p>This works for me:</p><div class="codebox"><pre><code>{item =&gt; [&#039;sudo shutdown -r now&#039;, &#039;Reboot&#039;]},</code></pre></div><p>That entry doesn&#039;t have an icon but one can be added with a third item between the square brackets.</p><p>FWIW I prefer to use <a href="https://pkginfo.devuan.org/cgi-bin/package-query.xml?c=package&amp;q=obsession=20140608-2+b1" rel="nofollow">obsession</a> to exit the openbox session.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 06 Dec 2020 17:25:00 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26128#p26128</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26126#p26126</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Check the installation instructions ...<br />... link to my Debian packages ...<br />... decide to use my packages ...</p></div></blockquote></div><p>Done.<br />I was having a hard time with the other install.<br />Took a while to week everything out.<br />But finally managed to get it done.</p><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>... try to remove the perl modules ...</p><div class="codebox"><pre><code># cpanm uninstall Linux::DesktopFiles Data::Dump File::DesktopEntry</code></pre></div></div></blockquote></div><p>It only worked with </p><div class="codebox"><pre><code># cpanm --uninstall Linux::DesktopFiles Data::Dump File::DesktopEntry</code></pre></div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>HTH</p></div></blockquote></div><p>Yes ...<br />Much easier/straightforward to install.</p><p>But I think it may have a problem (?).<br />It would not pick up <span class="bbc">xfe</span>, starting <span class="bbc">Firefox</span> instead.<br />Again, after a while I managed to get a hold on editing <span class="bbc">schema.pl</span> and fixed it.</p><p>Now I have a problem with a couple of <span class="bbc">Openbox</span> entries I use frequently.<br />In my previous non-configurator menu, I had entries for <span class="bbc">reboot</span> and <span class="bbc">shutdown</span>.</p><p><span class="bbc">execute --&gt; lxterminal sudo -e shutdown -r now </span> and <span class="bbc">execute --&gt; lxterminal sudo -e shutdown -r now</span>.</p><p>These still work perfectly well from the command line ie: <span class="bbc">sudo -e shutdown -r/h now</span> but using the stanza in <span class="bbc">schema.pl</span> won&#039;t work.</p><p>What am I missing?</p><p>---</p><div class="quotebox"><cite>dice wrote:</cite><blockquote><div><p>sort of off topic ...</p></div></blockquote></div><p>Nah !</p><div class="quotebox"><cite>dice wrote:</cite><blockquote><div><p>Doesn&#039;t have all the functionality of obmenu-generator ...</p></div></blockquote></div><p>Let me see if I can get my head around this one first.&#160; 8^7<br />Thanks for the heads up.<br />---</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Dec 2020 16:27:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26126#p26126</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26123#p26123</link>
			<description><![CDATA[<p>sort of off topic my post here but might be worth it.</p><p>I was on reddit unixporn a few days ago and their is this person creating an openbox menu in python3. Worth a look atleast if you are using openbox. Doesn&#039;t have all the functionality of obmenu-generator but i like where it is heading only using python libraries.</p><p><a href="https://github.com/jruss06/boxmenu" rel="nofollow">https://github.com/jruss06/boxmenu</a></p><p><a href="https://www.reddit.com/r/unixporn/comments/k50lhh/oc_boxmenu_python3_openbox_menu_generator/" rel="nofollow">https://www.reddit.com/r/unixporn/comme … generator/</a></p>]]></description>
			<author><![CDATA[dummy@example.com (dice)]]></author>
			<pubDate>Sun, 06 Dec 2020 13:09:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26123#p26123</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26121#p26121</link>
			<description><![CDATA[<p>Check the installation instructions on trizen&#039;s github site: <a href="https://github.com/trizen/obmenu-generator/blob/master/INSTALL.md" rel="nofollow">https://github.com/trizen/obmenu-genera … INSTALL.md</a></p><p>That has a link to my Debian packages for obmenu-generator, which include a package for the DesktopEntry perl modules (if you add the repository then these will be installed as a dependency of the obmenu-generator package).</p><p>If you decide to use my packages then you should try to remove the perl modules that were installed by the <span class="bbc">cpanm</span> commands listed in Miyo&#039;s guide:</p><div class="codebox"><pre><code># cpanm uninstall Linux::DesktopFiles Data::Dump File::DesktopEntry</code></pre></div><p>If you decide not to use my packages then you should still remove the <span class="bbc">Linux::DesktopFiles</span> &amp; <span class="bbc">Data::Dump</span> perl modules because installing them with <span class="bbc">cpanm</span> means that they will not be updated if any vulnerabilities are found in them.</p><p>The Devuan repsositories already have packages for those modules and they will be updated if any vulnerabilities arise:</p><div class="codebox"><pre><code># apt install libfile-desktopentry-perl libdata-dump-perl</code></pre></div><p>Although in my tests the libfile-desktopentry-perl package isn&#039;t actually needed to generate the menus.</p><p>HTH</p><p>EDIT: libfile-desktopentry-perl is an optional dependency to provide locale support, I&#039;ll add it to my package as a Recommends.</p><p>EDIT2: package updated, the current version is now 0.89-2.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 06 Dec 2020 10:25:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26121#p26121</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26120#p26120</link>
			<description><![CDATA[<p>Hello:</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... permissions for the location &quot;/home/groucho/.config/obmenu-generator&quot;?</p></div></blockquote></div><p>Hmmm ...<br />The <em>wrong</em> ones.</p><div class="codebox"><pre><code>groucho@eee-dev3:~$ ls -l /home/groucho/.config/obmenu-generator
total 8
-rw-r--r-- 1 root root 4986 Dec  5 21:30 schema.pl
groucho@eee-dev3:~$ ls -l /home/groucho/.config</code></pre></div><div class="codebox"><pre><code>groucho@eee-dev3:~$ ls -l /home/groucho/.config
total 328
--- snip ---
drwxr-xr-x 2 root    root      4096 Dec  5 21:30 obmenu-generator
--- snip ---
groucho@eee-dev3:~$ </code></pre></div><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... installer has left the permission to write as root or admin only.</p></div></blockquote></div><p>It seems so.<br />I <em>did</em> follow the instructions, specifically where it said not to use root.<br />Evidently I did something wrong.</p><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>... make the location available to write by the user ...</p></div></blockquote></div><div class="codebox"><pre><code>chown -hR groucho:groucho /home/groucho/.config/obmenu-generator</code></pre></div><p>and</p><div class="codebox"><pre><code>chmod -R 755 /home/groucho/.config/obmenu-generator</code></pre></div><p>That was it. </p><div class="codebox"><pre><code>groucho@eee-dev3:~$ obmenu-generator -p -i
:: A dynamic menu has been successfully generated!
groucho@eee-dev3:~$ </code></pre></div><div class="quotebox"><cite>GlennW wrote:</cite><blockquote><div><p>I hope this helps.</p></div></blockquote></div><p>It did.&#160; 8^D<br />Thanks a lot for your input.</p><p>Cheers,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Dec 2020 10:13:24 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26120#p26120</guid>
		</item>
		<item>
			<title><![CDATA[Re: Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26119#p26119</link>
			<description><![CDATA[<p>Hi, What are the permissions for the location &quot;/home/groucho/.config/obmenu-generator&quot;?</p><p>maybe the installer has left the permission to write as root or admin only.</p><p>if so, you could try as root to make the location available to write by the user groucho with</p><div class="codebox"><pre><code>chown -hR groucho:groucho /home/groucho/.config/obmenu-generator</code></pre></div><p>and</p><div class="codebox"><pre><code>chmod -R 755 /home/groucho/.config/obmenu-generator</code></pre></div><p>Then try again.</p><p>I hope this helps. :-)</p>]]></description>
			<author><![CDATA[dummy@example.com (GlennW)]]></author>
			<pubDate>Sun, 06 Dec 2020 03:11:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26119#p26119</guid>
		</item>
		<item>
			<title><![CDATA[Obmenu-generator problem]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=26118#p26118</link>
			<description><![CDATA[<p>Hello:</p><p>Continuing with my 1000HE Beowulf install ...<br />Trying to set up Openbox to my liking.</p><p>I read about it so off I went to <a href="https://miyolinux.weebly.com/obmenu-generator.html" rel="nofollow">https://miyolinux.weebly.com/obmenu-generator.html</a> and followed the instructions for setting up the obmenu-generator.</p><p>But I cannot get it to work.<br />I get these errors:</p><div class="codebox"><pre><code>groucho@eee-dev3:~$ obmenu-generator -p -i
mkdir /home/groucho/.config/obmenu-generator/icons: Permission denied at /usr/bin/obmenu-generator line 208.
groucho@eee-dev3:~$ </code></pre></div><div class="codebox"><pre><code>}

if ($with_icons and not -d $icons_dir) {
    remove_database($cache_db);
    require File::Path;
    File::Path::make_path($icons_dir)   &lt;-------------------------------- line 208 (according to jed)
      or warn &quot;$0: can&#039;t create icon path `$icons_dir&#039;: $!\n&quot;;
}</code></pre></div><div class="codebox"><pre><code>groucho@eee-dev3:~$ obmenu-generator -s -c
Can&#039;t open file &#039;/home/groucho/.config/obmenu-generator/config.pl&#039; for write: Permission denied at /usr/bin/obmenu-generator line 265.
groucho@eee-dev3:~$ </code></pre></div><div class="codebox"><pre><code>sub dump_configuration {
    require Data::Dump;
    open my $config_fh, &#039;&gt;&#039;, $config_file        &lt;--------------------- line 265 (according to jed)
      or die &quot;Can&#039;t open file &#039;${config_file}&#039; for write: $!&quot;;
    my $dumped_config = q{our $CONFIG = } . Data::Dump::dump(\%CONFIG) . &quot;\n&quot;;
    $dumped_config =~ s/\Q$home_dir\E/\$ENV{HOME}/g if ($home_dir eq $ENV{HOME});
    print $config_fh $config_documentation, $dumped_config;
    close $config_fh;
}</code></pre></div><p>No idea as how to deal with this.<br />Anyone used it?</p><p>Thanks in advance,</p><p>A.</p>]]></description>
			<author><![CDATA[dummy@example.com (Altoid)]]></author>
			<pubDate>Sun, 06 Dec 2020 02:17:53 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=26118#p26118</guid>
		</item>
	</channel>
</rss>
