Posts: 1,028
SamK
Joined: 21 Aug 2011
#16
In Applications-->Other...

There are six entries in this sub-menu, all of which are probably uneeded as they duplicate entries in other areas of the menu system.

A previous post in this topic suggested removing .desktop entries from the Preferences sub-menu. This would also clear the following in the Other sub-menu:
add-key
antiXCC
antiX-mountbox
icewmcc
remastercc



Synaptic Package Manager is also shown in this sub-menu. It also appears in the Preferences sub-menu. It seems to be associated with antix-cc-full-antix. synaptic.desktop is in /usr/share/applications/antix/. Does this imply that synaptic.desktop is modified in some way? The .desktop file contains"Categories=Other" which is a bit strange.

The following displays an entry only in the Preferences sub-menu.

synaptic.desktop

Code: Select all

[Desktop Entry]
Exec=gksu synaptic
Icon=synaptic
Terminal=false
Type=Application
Categories=Settings;

Together the above will clear all entries from the Other sub-menu. If I recall correctly, once empty it is no longer created.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#17
I think part of the problem is the script that writes the apllications manu isn't very accurate. For example, if you remove
Type=Application
Categories=Settings;

from an antiX .desktop file eg add-key and then update menu, the entries still stay in Applications-Preferences.

I have found another update-menu script that may work better.


========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"https://github.com/gapan/xdgmenumaker"
linktext was:"https://github.com/gapan/xdgmenumaker"
====================================
Posts: 1,028
SamK
Joined: 21 Aug 2011
#18
In Applications-->Preferences...

The entry for advert-block does not display an icon.

advert-block.desktop points to an empty icon value.
An icon was obtained from
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://all-free-download.com/free-vector/no-entry-signs.html"
linktext was:"http://all-free-download.com/free-vecto ... signs.html"
====================================

and resized/renamed xsw.png.

Copy the icon to /usr/share/pixmaps/

The following displays an entry and icon in the Preferences sub-menu.

advert-block.desktop

Code: Select all

[Desktop Entry]
Encoding=UTF-8
Name=Advert-Block
Exec=ktsuss block-advert.sh
Icon=advert-block
Terminal=false
Type=Application
Categories=Settings;
Alanarchy
Posts 0
Alanarchy
#19
Comment removed! Sorry Samk for my sarcasm. I'll go sit on the naughty step now.
Last edited by Guest on 29 Jun 2013, 08:56, edited 1 time in total.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#20
Alanarchy wrote:But advert block does have an icon, which is at

Code: Select all

/usr/share/icons/gTangish-2.0a1/32x32/apps/preferences-desktop-theme.png
In strict terms it does display an icon, but the one you refer to is used in the absence of one specifically for the app.

Have a look at the .desktop file for advert-block and it shows the icon field as empty.

Alanarchy wrote:While I'm being as nit-picky as you, I could point out that icons use valuable resources and as Antix is aimed at older machines, maybe no icon is a good thing. __{{emoticon}}__
If you prefer no icons it may be worth you switching to a WM that does not display them.

As for being"nit-picky", the feedback is being provided as a direct reponse to a request from anticapitalista. As IcewWM is the default WM for antiX-Full, tidying the menu will help give the best initial impression of antiX to new users. The suggestions are constructive and supplied in the spirit of helping the distro.
Last edited by SamK on 27 Jun 2013, 15:07, edited 1 time in total.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#21
In Terminal Apps-->Network...

The entry for"Browser elinks" does not display an icon. Also the menu text differs from a similar entry in Applications-->Internet.

To make them both consistent replace the entry in ~/.icewm/menu with the following:

Code: Select all

prog"ELinks Web Browser""/usr/share/icons/gTangish-2.0a1/48x48/mimetypes/text-html.png" roxterm -e elinks http://antiX.mepis.com
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#22
User can actuall choose whether to have icons in the Applications side of the menu or not (default is set to have).
Edit /usr/local/bin/auto-icewm-menu.sh

icewm-xdg-menu --terminal 'roxterm -e %s' --default-entry-icon /usr/share/icons/gTangish-2.0a1/32x32/apps/preferences-desktop-theme.png --with-theme-paths --theme gTangish-2.0a1 --entire-menu > ~/.icewm/application

to

icewm-xdg-menu --terminal 'roxterm -e %s' --entire-menu > ~/.icewm/application
Posts: 1,028
SamK
Joined: 21 Aug 2011
#23
anticapitalista wrote:I think part of the problem is the script that writes the apllications manu isn't very accurate. For example, if you remove
Type=Application
Categories=Settings;

from an antiX .desktop file eg add-key and then update menu, the entries still stay in Applications-Preferences.
Does this mean that .desktop files must exist in order for Control Center to reference them?

By removing the Type and and Categories are you looking for a way to have a .desktop file but for it not to be shown in the menu?

If so try adding this as a new line in a .desktop file

Code: Select all

NoDisplay=True
I have tried it with RemasterCC.desktop and it seems to do the job.

ref:
========= SCRAPER REMOVED AN EMBEDDED LINK HERE ===========
url was:"http://standards.freedesktop.org/desktop-entry-spec/latest/ar01s05.html"
linktext was:"http://standards.freedesktop.org/deskto ... 01s05.html"
====================================
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#24
Thanks SamK. That is what I want.

It might be useful for desktop files to exist so users can place them on the rox desktop even if the entries do not show up in the menu.

BTW the

icewm-xdg-menu --terminal 'roxterm -e %s' --entire-menu > ~/.icewm/application

gets rid of only some of the icons. I'll look into those scripts for next release and either update the ones we use, or maybe use and hack the one I linked to earlier in the thread.
anticapitalista
Posts: 5,956
Site Admin
Joined: 11 Sep 2007
#25
SamK - have a look at the xdgmenumaker. It installs easily enough.

To create a menu for antiX-icewm just change appmenu to application

ie xdgmenumaker -i -f icewm > ~/.icewm/application
Alanarchy
Posts 0
Alanarchy
#26
In strict terms it does display an icon, but the one you refer to is used in the absence of one specifically for the app.
I've replaced it with yours. Thanks for that.

I must add that there are many other icons in /usr/share/pixmaps/other.
Last edited by Guest on 29 Jun 2013, 09:02, edited 1 time in total.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#27
Alanarchy wrote:...so my suggestion has to be, use Fluxbox.
One of the attractions of antiX is the range of choices available. IceWM is a very suitable one for antiX-Full.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#28
anticapitalista wrote:SamK - have a look at the xdgmenumaker.
I'll try to get around to that - but if I do it will only be a very superficial look. I've spent longer than I should tracking down the menu issues.

I've got 2/3 other suggestions to post then I will have to pick up the things I put on the back-burner.
Posts: 1,028
SamK
Joined: 21 Aug 2011
#29
In Applications-->Internet...

The entry for Ceni may be misplaced in this sub-menu. As placing interactive CLI apps within the Terminal Apps-->Network section is being discussed it might be worth not showing Ceni in its current sub-menu and adding an entry to ~/.icewm/menu.

To prevent the Ceni entry appearing in the current sub-menu append the following line in ceni.desktop

Code: Select all

NoDisplay=True
To add an entry, Ceni in the Network sub-menu.

Code: Select all

prog"Ceni" /usr/share/pixmaps/ceni.xpm roxterm -e sudo ceni
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#30
Keep up the good work SamK. Thanks for your help.