Posts: 604
thriftee
Joined: 27 Feb 2009
#1
I'm using Spacefm-IceWm

I used synaptic to install it. It works from terminal if I type /usr/games/xdemineur

But for some odd reason it doesn't appear on the menu.

I looked and it has an entry in /usr/share/menu and it says :

Code: Select all

?package(xdemineur):\
  section="Games/Puzzles"\
  needs="X11"\
  title="Xdemineur"\
  command="/usr/games/xdemineur"\
  icon="/usr/share/pixmaps/xdemineur-icon.xpm"
Any ideas?
Last edited by thriftee on 25 Sep 2016, 02:33, edited 1 time in total.
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#2
Did you try running"Update menu" in the main desktop menu?
Posts: 604
thriftee
Joined: 27 Feb 2009
#3
Yes, I installed it, went and marked it as"Shown" in Menu Manager, and ran the Update Menu, and then restarted IceWm.

What's odd is that I installed Aisleriot also, and it does appear.

I'm trying to get my little fixes done before I remaster.

Thanks for the help...
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#4
As root, edit the file /usr/share/applications/xdemineur.desktop and add the line:

Code: Select all

Categories=Game
then update the menu again.
Posts: 604
thriftee
Joined: 27 Feb 2009
#5
Bingo! That fixed it. Its a very small, under 100k, but good version of the Minesweeper game.

Thanks so much. And now I'll know where to look next time.
Posts: 604
thriftee
Joined: 27 Feb 2009
#6
Hmmmmm, it disappeared from the menu. I added it to the personal menu now...
Posts: 1,308
BitJam
Joined: 31 Aug 2009
#7
Adding it to the personal menu might be a better solution. The"Categories=Game" line will be removed from the .desktop file whenever you update the package. Another solution might be to copy xdemineur.desktop to xdemineur-2.desktop and then add the line to the -2 version of the file. That way it should survive package updates.

ISTM there may be two bugs here. One is the .desktop file is missing the Categories line and two, our program that generates the applications menu tree ignores .desktop files that don't have a Categories line.
Posts: 604
thriftee
Joined: 27 Feb 2009
#8
Xdemineur did stay on the personal menu once I added it there, so that's good enough.

Interestingly, Ceni stayed on the regular menu once I told it to"show".