site  contact  subhomenews

Orange-ball menu entries restructured

September 04, 2024 — BarryK

Orange-ball menu entries are "important" native apps available via PKGget and not yet installed. There have been posts about them, including here:

The way this works is there is a menu entry, for, say, "Scribus", and there is /usr/share/applications/scribus.desktop file. This file causes the orange-ball icon to display in the menu entry, and when chosen, /usr/bin/scribus.install will execute. This script will offer to install Scribus.

Easy 6.2 has all of these orange-ball menu entries:

aqemu  claws-mail  dia  gimagereader  obs  qtemu  scribus  shotcut  vlc  vym

The implementation has been inefficient, with *.install scripts written for each one, even though they mostly have the same code.

So, have create a single common script, /usr/local/orange/orange.install, with a folder /usr/local/orange/config with configuration for each app.

Continuing with the Scribus example, /usr/bin/scribus.install just has this:
#!/bin/ash
exec /usr/local/orange/orange.install scribus

File /usr/local/orange/config/scribus has this:

#!/bin/ash
export TEXTDOMAIN=orange
export OUTPUT_CHARSET=UTF-8
#pkg-name
PN=scribus
#executable-name
EN=scribus
#real-name
RN="Scribus"
#alt-exe-names
AN=""
#short-descr
SD="Desktop publishing"
#homepage
HP="https://www.scribus.net/"
#mini-icon (found in /usr/local/lib/X11/mini-icons)
MI=mini-Document-layout
#run app as this user ***FUTURE*** currently only recognize root
UN=scribus
#post-install frame...
PF=""

Github commits:

https://github.com/bkauler/woofq/commits/765b448fffd177f87649302e74a1daa2c4436a17/

Script /usr/local/orange/orange.install does something important; it is aware when in jwm-mode and will create an icon in the tray. I posted about rox-mode and jwm-mode yesterday:

Need to work on Appi and Flapi also, to make them aware of jwm-mode.   

Tags: easy