Porteus 3.1rc feedback

New features which should be implemented in Porteus; suggestions are welcome. All questions or problems with testing releases (alpha, beta, or rc) should go in their relevant thread here, rather than the Bug Reports section.
User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 977
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

Re: Porteus 3.1rc feedback

Post#106 by ncmprhnsbl » 22 Nov 2014, 22:05

sean wrote:
You said: "it wont be possible to create this menu 'on the fly' upon desktop startup? i prefer to have it dynamic but if this is not an option then static is also ok."

fanthom, "dynamic" is way over my head, sorry. Actually, to this date, no distro, to my knowledge, has been able to make such a process "dynamic" in any "lxde" distribution. I will continue to be installing as many current LXQt based distro's as possible in the very near future, in my effort to analyze and assist you and the Porteus developers.
'openbox-menu' will supply a dynamic applications menu, called from menu.xml.

Code: Select all

<menu id="desktop-app-menu" label="Applications" execute="openbox-menu -i lxde-applications.menu" />
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

sean
Contributor
Contributor
Posts: 144
Joined: 08 Jul 2012, 02:30
Distribution: Porteus v3.0 LXDE i486
Location: South Central PA, USA

Re: Porteus 3.1rc feedback

Post#107 by sean » 22 Nov 2014, 23:51

@ncmprhnsbl

I was sincere with my "over my head" comment.

After reading your post I headed over to http://lxlinux.com/, where "seppalta" has a heading "Openbox Menu [NEW]". After reading your initial hint of openbox-menu in your earlier post, I realize I was actually thinking "lxmenuman", which is a Java app. For that reason I accepted your praise and unwittingly dismissed your well intentioned hint. Forgive me please.

I appreciate you are probably seeking to encourage me to learn more about how this all works. I've seen some of your other posts, and I have great respect for your knowledge.

I'm embarrassed to admit I don't know very much about what's under the hood of Linux. I hack at configs I want, and google just about everything.

Please, I'm not trying to be a wise guy in any way, but since fanthom would like the Desktop right click menu to be dynamic, with all due respect, I will certainly yield to your obviously advanced knowledge. You make it sound pretty easy, I'm not so young, and tend to make things much harder than they are. I envy those who can work smarter as opposed to harder :-) Really, if dynamic is something you can edit in, in a relatively short time, please have at it. I'm off to do a bit of reading up at lxlinux.com.

Sincere thanks,

Sean

Edit: several hour later..........

Wow, that is nice. I was able to use your code to get the dynamic menu almost fully. Seems it does not want to duplicate all applications in main-Panel-menu/Preferences, or anything thereafter (Leave & Lockscreen). But for the most part applications in those categories remain static.

It may be necessary to edit the lxde-applications.menu in /etc/xdg/menus. Which brings up the question of just how long that particular file will remain active as LXQt matures? Probably easily fixed anyway.

Next fanthom would need to decide if he wishes to include openbox-menu in the .iso, I think it's 20 or 21k compressed and about 80k otherwise.

Sure makes for a much smaller menu.xml file though, I'll have tomorrow to work on it here anyway.

Thanks again for the great hint.

Sean

User avatar
Ed_P
Contributor
Contributor
Posts: 3328
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Porteus 3.1rc feedback

Post#108 by Ed_P » 23 Nov 2014, 05:31

@sean

Image Sounds like someone is having some fun. :good: Looking forward to your new menus.
Ed

User avatar
fanthom
Site Admin
Site Admin
Posts: 4621
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Porteus 3.1rc feedback

Post#109 by fanthom » 23 Nov 2014, 14:56

@sean
fanthom would need to decide if he wishes to include openbox-menu in the .iso, I think it's 20 or 21k compressed and about 80k otherwise.
sure - we can afford this :)
please send everything over when finished.

thanks
Please add [Solved] to your thread title if the solution was found.

sean
Contributor
Contributor
Posts: 144
Joined: 08 Jul 2012, 02:30
Distribution: Porteus v3.0 LXDE i486
Location: South Central PA, USA

Re: Porteus 3.1rc feedback

Post#110 by sean » 24 Nov 2014, 01:01

RE: LXQt-32bit, Porteus 3.1-rc2

@fanthom,

Here is the dynamic right-click Desktop menu. I believe it is in as complete a condition as presently possible with the LXDE - LXQt merger transition. All the menu categories completed except for "Preferences" which only duplicated 3 of the 14 applications. I have no idea why that does not work. But I think there are more such bumps coming with the merger.

I added the immediate/one-click items, LXTerminal, PCManFM, and Leafpad to the very top of the menu. Then comes the dynamic full menu, so there are a few duplicates and you can decide on them if need be. After that is a * ROOT * section with a root terminal and root mode PCManFM (which does not presently work), as previously reported. My research into a root mode of PCManFM was not fruitful, and it looks like it is presently not available unless we go with gksu or gksudo.

I made a slight adjustment to the lxde-applications.menu in /etc/xdg/menus and have included the new one here. (eliminated a separator line from the menu)

NEWlxde-applications.menu

Code: Select all

<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
 "http://www.freedesktop.org/standards/menu-spec/1.0/menu.dtd">

<Menu>

	<Name>Applications</Name>
	<Directory>lxde-menu-applications.directory</Directory>

	<!-- Read standard .directory and .desktop file locations -->
	<DefaultAppDirs/>
	<DefaultDirectoryDirs/>

	<!-- Read in overrides and child menus from applications-merged/ -->
	<DefaultMergeDirs/>

	<!-- Accessories submenu -->
	<Menu>
		<Name>Accessories</Name>
		<Directory>lxde-utility.directory</Directory>
		<Include>
			<And>
				<Category>Utility</Category>
	<!-- Accessibility spec must have either the Utility or Settings
			 category, and we display an accessibility submenu already for
			 the ones that do not have Settings, so don't display accessibility
			 applications here -->
				<Not><Category>Accessibility</Category></Not>
				<Not><Category>System</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessories -->

	<!-- Accessibility submenu -->
	<Menu>
		<Name>Universal Access</Name>
		<Directory>lxde-utility-accessibility.directory</Directory>
		<Include>
			<And>
				<Category>Accessibility</Category>
				<Not><Category>Settings</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Accessibility -->

	<!-- Development Tools -->
	<Menu>
		<Name>Development</Name>
		<Directory>lxde-development.directory</Directory>
		<Include>
			<And>
				<Category>Development</Category>
			</And>
			<Filename>emacs.desktop</Filename>
		</Include>
	</Menu> <!-- End Development Tools -->

	<!-- Education -->
	<Menu>
		<Name>Education</Name>
		<Directory>lxde-education.directory</Directory>
		<Include>
			<And>
				<Category>Education</Category>
			</And>
		</Include>
	</Menu> <!-- End Education -->

	<!-- Games -->
	<Menu>
		<Name>Games</Name>
		<Directory>lxde-game.directory</Directory>
		<Include>
			<And>
				<Category>Game</Category>
			</And>
		</Include>
	</Menu> <!-- End Games -->
  <Menu>
    <Name>Porteus</Name>
    <Directory>porteus.directory</Directory>
    <Include>
      <Category>porteus</Category>
    </Include>
  </Menu>

	<!-- Graphics -->
	<Menu>
		<Name>Graphics</Name>
		<Directory>lxde-graphics.directory</Directory>
		<Include>
			<And>
				<Category>Graphics</Category>
				<Not><Category>Utility</Category></Not>
			</And>
		</Include>
	</Menu> <!-- End Graphics -->

	<!-- Internet -->
	<Menu>
		<Name>Internet</Name>
		<Directory>lxde-network.directory</Directory>
		<Include>
			<And>
				<Category>Network</Category>
			</And>
		</Include>
	</Menu>	 <!-- End Internet -->

	<!-- Multimedia -->
	<Menu>
		<Name>Multimedia</Name>
		<Directory>lxde-audio-video.directory</Directory>
		<Include>
			<And>
				<Category>AudioVideo</Category>
			</And>
		</Include>
	</Menu>	 <!-- End Multimedia -->

	<!-- Office -->
	<Menu>
		<Name>Office</Name>
		<Directory>lxde-office.directory</Directory>
		<Include>
			<And>
				<Category>Office</Category>
			</And>
		</Include>
	</Menu> <!-- End Office -->

	<!-- System Tools-->
	<Menu>
		<Name>System</Name>
		<Directory>lxde-system-tools.directory</Directory>
		<Include>
			<And>
				<Category>System</Category>
				<Not><Category>Settings</Category></Not>
				<Not><Category>PackageManager</Category></Not>
			</And>
		</Include>
	</Menu>	 <!-- End System Tools -->

	<!-- Other -->
	<Menu>
		<Name>Other</Name>
		<Directory>lxde-other.directory</Directory>
		<OnlyUnallocated/>
		<Include>
			<And>
				<Not><Category>Core</Category></Not>
				<Not><Category>Settings</Category></Not>
				<Not><Category>Screensaver</Category></Not>
			</And>
		</Include>
		</Menu> <!-- End Other -->

	<Menu>
		<Name>DesktopSettings</Name>
		<Directory>lxde-settings.directory</Directory>
		<OnlyUnallocated/>
		<Include>
			<Or>
				<Category>Settings</Category>
				<Category>PackageManager</Category>
				<Category>System</Category>
				<Category>Help</Category>
				<Category>DesktopSettings</Category>
				<Category>HardwareSettings</Category>
				<Category>LXQt</Category>
				<Category>Qt</Category>
			</Or>
		</Include>
		<Layout>
			<Merge type="menus"/>
			<Merge type="files"/>
		</Layout>

	</Menu> <!-- End Settings -->

	<Layout>
		<Merge type="files"/>
		<Merge type="menus"/>
		<Menuname>DesktopSettings</Menuname>
	</Layout>

</Menu> <!-- End Applications -->
NEWmenu.xml

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>

<openbox_menu xmlns="http://openbox.org/3.4/menu">

<menu id="root-menu" label="Openbox 3">

  <item label="Terminal">
    <action name="Execute">
      <command>lxterminal</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="PCManFM File Manager">
    <action name="Execute">
      <command>pcmanfm-qt</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>
  <item label="Leafpad">
    <action name="Execute">
      <command>leafpad</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>  
  <separator />
<menu id="desktop-app-menu" label="Applications" execute="openbox-menu -i lxde-applications.menu" />
  <separator />
<menu id="apps-menu" label="* ROOT *">
  <item label="Root-Terminal">
    <action name="Execute"><command>/opt/porteus-scripts/xorg/terminal -e "su -"</command></action>
  </item>
  <item label="Root File Manager">
    <action name="Execute">
    <startupnotify><enabled>yes</enabled></startupnotify>
    <command>Exec=ktsuss pcmanfm-qt /root</command></action>
  </item>
</menu>
  <separator />
    <item label="Leave">
    <action name="Execute">
      <command>qtLogout</command>
      <startupnotify>
        <enabled>yes</enabled>
      </startupnotify>
    </action>
  </item>  
</menu>

</openbox_menu>
I wish to thank "ncmprhnsbl", "Ed_P", "brokenman", and "yourself", for pointing me in the proper direction and supplying encouragement. You are probably all teachers and motivators, making you all exceptional humans!

I won't suppose for a minute that this piece of work is perfect or complete in any way and welcome comments, however, I myself have more than likely reached my mental limit. I'm sure this work can be greatly improved upon.

For anyone grabbing these files, you will first need to install "openbox-menu" via the USM, I found my 32bit version in the salix repository. Then rename NEWlxde-applications.menu by deleting the caps and replace the same named file in /etc/xdg/menus. Rename NEWmenu.xml by deleting the caps and replace the same named file in /etc/xdg/openbox. Reboot.

Sean

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Porteus 3.1rc feedback

Post#111 by jimwg » 25 Nov 2014, 10:57

Seasons Greetings!

Okay, I expected anything to happen when I installed 3.1rc1an unorthrodox way. I deleted all 3.0.1 folders off my XFCE flash except Changes and installed 3.1rc1 via CD and all works swimmingly. Just have re-do my old window themes and looks, the only major drawback is that most of the button icons of my panel and menu buttons are missing, just a white box with a red X though they seem functional otherwise, so seems somehow the panels's lost track of where the icons of buttons are. Otherwise this would suggest that downloading new XFCE modules directly into place to update your system is possible and quicker than going through the format a new CD route.

One thing, (and please forgive me if this is already doable via cheatsheets but I'm not really a techie, just someone showing home school and congregation short-cut ways to use Porteus over Mint and Windows), but I'd like a way to keep auxillary and support apps in the Optional folder as non-loaded "standby" instead being activated in the Modules folder so that I can get much swifter start-up and nimbler running programs with just it and the three base files starting up, but if I need, say, Seamonkey which is in the Optional folder I just hit its panel button as usual and that automatically activates Seamonkey out of "standby" and it runs then when I'm done with it and click off it automatically decativates itself to give my other stuff more breathing room to move around. If you can please furnish me an example than a techie how-to drill. Thanks if you can! :)

Jim in NYC

User avatar
brokenman
Site Admin
Site Admin
Posts: 5576
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

Re: Porteus 3.1rc feedback

Post#112 by brokenman » 25 Nov 2014, 12:32

You should leave in a subfolder inside the optional folder, lets call it mystuff. Now from a terminal (only one available sorry) you can enter the command: act mystuff

You will be asked once to enter the path to your optional folder. This is a very old script and I may update in the future.
You may also load this folder during boot with the cheatcode: load=mystuff
How do i become super user?
Wear your underpants on the outside and put on a cape.

jimwg
Shogun
Shogun
Posts: 322
Joined: 09 Oct 2013, 18:15
Distribution: porteus
Location: NYC

Re: Porteus 3.1rc feedback

Post#113 by jimwg » 25 Nov 2014, 14:13

brokenman wrote:You should leave in a subfolder inside the optional folder, lets call it mystuff. Now from a terminal (only one available sorry) you can enter the command: act mystuff

You will be asked once to enter the path to your optional folder. This is a very old script and I may update in the future.
You may also load this folder during boot with the cheatcode: load=mystuff

Thanks, will try! Good luck with more advanced version!
BTW, seems BitBleacher doesn't work in 3.1rc1.

Jim in NYC

User avatar
fanthom
Site Admin
Site Admin
Posts: 4621
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Porteus 3.1rc feedback

Post#114 by fanthom » 25 Nov 2014, 17:06

LXQT update:
- added porteus icon to lxqt menu for all themes shipped by default
- fixed double categories issue, lxqt items are kept only in the system -> Preferences -> LXQt Settings (done it differently than tome suggested)
- pulled menu.xzm provieds be sean and fixed *Root* -> pcmanfm-qt link
- confirmed that removing last language from qxkb closes this application but ot crashes - it still runs in the backround. unfortunately the only way to restore it is to copy original config then logout->login

two main issues still remain:
a) refresh menu during every lxqt desktop load
b) fix 'pcmanfm-qt super-user mode'

i will do a) next but would be grateful is someone could help me with b). i do not want to pull gksu as it requires dozen of deps (and sudoers) so any other su helper is welcome.
here is updated 64bit module if anybody is interested with picking up the second task:
http://dl.porteus.org/x86_64/testing/003-lxqt.xzm

thank you
Please add [Solved] to your thread title if the solution was found.

sean
Contributor
Contributor
Posts: 144
Joined: 08 Jul 2012, 02:30
Distribution: Porteus v3.0 LXDE i486
Location: South Central PA, USA

Re: Porteus 3.1rc feedback

Post#115 by sean » 25 Nov 2014, 20:25

@fanthom

I don't understand remaining issue "a"

Has "openbox-menu" been installed before using the new "menu.xml" ?

Sean

User avatar
fanthom
Site Admin
Site Admin
Posts: 4621
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Porteus 3.1rc feedback

Post#116 by fanthom » 25 Nov 2014, 21:30

@sean
sorry i should be more clear.
issue a) is related to lxqt and not openbox. it is described here:
viewtopic.php?f=117&t=4067#p29300
and my response:
viewtopic.php?f=117&t=4067#p29324

this problem affects only people who are saving changes and i guess i have to force running 'update-desktop-database' in /etc/rc.d/rc.4 during every boot to resolve this. need to recreate this bug first and then try to fix.

btw: in the lxqt module i posted above there is only 'Network connections' entry in openbox menu -> Preferences.
i'm getting convinced that there is no chance to get Preferences showing the same items for both: lxqt and openbox so will be giving up on this.

thanks
Please add [Solved] to your thread title if the solution was found.

sean
Contributor
Contributor
Posts: 144
Joined: 08 Jul 2012, 02:30
Distribution: Porteus v3.0 LXDE i486
Location: South Central PA, USA

Re: Porteus 3.1rc feedback

Post#117 by sean » 25 Nov 2014, 21:54

@fanthom

These issues will probably go away as LXQt reaches 1.0. Your present task is akin to changing a flat tire on a moving vehicle.

Rather than irritating and frustrating potential users, along with potential questions without answers, perhaps the LXQt 3.1 final should include an "*" denoting it's condition as being relative to LXQt's current maturity.

Sean

User avatar
Ed_P
Contributor
Contributor
Posts: 3328
Joined: 06 Feb 2013, 22:12
Distribution: Cinnamon 3.2.2 64-bit ISO
Location: Western NY, USA

Re: Porteus 3.1rc feedback

Post#118 by Ed_P » 25 Nov 2014, 22:08

sean wrote:Rather than irritating and frustrating potential users, along with potential questions without answers,
A valid concern IMO. Maybe LXQt should wait for Porteus 3.2 and leave RazorQt in 3.1.
Ed

sean
Contributor
Contributor
Posts: 144
Joined: 08 Jul 2012, 02:30
Distribution: Porteus v3.0 LXDE i486
Location: South Central PA, USA

Re: Porteus 3.1rc feedback

Post#119 by sean » 26 Nov 2014, 20:23

RE: Mate-32bit, Porteus 3.1-rc2

This is really nice. Any idea whether Mate will bring the Gnome-color-chooser up to date, so the panel characters can be adjusted to suit the background?

Other than the previously mentioned 'search dupes' under Accessories, this is solid and comfortable for me.

Sean

User avatar
fanthom
Site Admin
Site Admin
Posts: 4621
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland, currently - Cork, IE
Contact:

Re: Porteus 3.1rc feedback

Post#120 by fanthom » 26 Nov 2014, 20:39

LXQT:
issue a) is resolved now (dirty hack and i'm hoping it wont make any troubles...) so only b) left.

thanks
Please add [Solved] to your thread title if the solution was found.

Post Reply