Author Topic: No entry on Start Menu? <SOLVED>  (Read 1492 times)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
No entry on Start Menu? <SOLVED>
« on: December 14, 2011, 01:04:31 AM »
Updating Goggles Music Manager to 0.12.5. The archive includes a .desktop on extra/ and I have the following on my specfile:

Code: [Select]
%{__install} -d $RPM_BUILD_ROOT%{_menudir}
%{__cat} <<EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF

desktop-file-install --vendor="" \
   --remove-category="Application" \
  --add-category="X-MandrivaLinux-Multimedia-Sound" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop

It builds OK ... inspected the files and they are where they should be.

The menu section of the is at /usr/libgogglesmm, and the .desktop is at /usr/share/applications/gogglesmm.desktop.

There is no menu entry but the app launches and is stable.

I also have the following on the spec:

Code: [Select]
%post
/sbin/ldconfig
%update_menus

%postun
/sbin/ldconfig
%clean_menus

Relogin and reboot also does not show the menu entry.
« Last Edit: December 18, 2011, 03:44:19 AM by Archie »
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1160
Re: No entry on Start Menu?
« Reply #1 on: December 15, 2011, 12:12:39 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #2 on: December 15, 2011, 02:00:01 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny

I think this:
Quote
EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF
=> the variables (starting with a dollar sign $), will be replaced by the values in the SPEC-file
[I assume the first line is where the .desktop file will be placed  ;)]

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: No entry on Start Menu?
« Reply #3 on: December 15, 2011, 02:04:54 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny

Hey!

Code: [Select]
archie@arevalo.ph ~ > cat /usr/share/applications/gogglesmm.desktop
[Desktop Entry]
Name=Goggles Music Manager
Name[en_CA]=Goggles Music Manager
Name[en_GB]=Goggles Music Manager
Name[nl]=Goggles muziekspeler
Name[pt]=Goggles - Reprodutor de músicas
GenericName=Music Player
GenericName[en_CA]=Music Player
GenericName[en_GB]=Music Player
GenericName[nl]=Muziekspeler
GenericName[pt]=Reprodutor de músicas
Comment=Play and organize your music collection
Comment[en_CA]=Play and organize your music collection
Comment[en_GB]=Play and organise your music collection
Comment[nl]=Luister and beheer uw muziekcollectie
Comment[pt]=Reprodução e organização de músicas
Exec=gogglesmm %u
Terminal=false
Hidden=false
Type=Application
Icon=gogglesmm
Categories=AudioVideo;Audio;Player;X-MandrivaLinux-Multimedia-Sound;
MimeType=audio/flac;audio/ogg;audio/x-vorbis;audio/x-vorbis+ogg;audio/mpeg;audio/mp4a-latm;audio/x-musepack;

Encoding=UTF-8
X-Desktop-File-Install-Version=0.11
archie@arevalo.ph ~ >

Code: [Select]
archie@arevalo.ph ~ > cat Temporary/src/rpm/SOURCES/gogglesmm-0.12.5/extra/gogglesmm.desktop
[Desktop Entry]
Name=Goggles Music Manager
Name[en_CA]=Goggles Music Manager
Name[en_GB]=Goggles Music Manager
Name[nl]=Goggles muziekspeler
Name[pt]= Goggles - Reprodutor de músicas
GenericName=Music Player
GenericName[en_CA]=Music Player
GenericName[en_GB]=Music Player
GenericName[nl]=Muziekspeler
GenericName[pt]=Reprodutor de músicas
Comment=Play and organize your music collection
Comment[en_CA]=Play and organize your music collection
Comment[en_GB]=Play and organise your music collection
Comment[nl]=Luister and beheer uw muziekcollectie
Comment[pt]=Reprodução e organização de músicas
Exec=gogglesmm %u
Terminal=false
Hidden=false
Type=Application
Icon=gogglesmm
Categories=Application;AudioVideo;Audio;Player;
MimeType=audio/flac;audio/ogg;audio/x-vorbis;audio/x-vorbis+ogg;audio/mpeg;audio/mp4a-latm;audio/x-musepack;

archie@arevalo.ph ~ >

Code: [Select]
archie@arevalo.ph ~ > cat /usr/lib/menu/gogglesmm
?package(gogglesmm):command="gogglesmm" needs="x11" section="Sound" title="Goggles Music Manager" icon="gogglesmm.png" longtitle="Goggles Music Manager"
archie@arevalo.ph ~ >
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: No entry on Start Menu?
« Reply #4 on: December 15, 2011, 02:17:40 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny

I think this:
Quote
EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF
=> the variables (starting with a dollar sign $), will be replaced by the values in the SPEC-file
[I assume the first line is where the .desktop file will be placed  ;)]

This portion is for the menu entry ... saved on /usr/lib/menu/
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #5 on: December 15, 2011, 02:42:35 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny

I think this:
Quote
EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF
=> the variables (starting with a dollar sign $), will be replaced by the values in the SPEC-file
[I assume the first line is where the .desktop file will be placed  ;)]

This portion is for the menu entry ... saved on /usr/lib/menu/

Yep, indeed - wasn't looking to the question too much....
=> this is the section that isn't working in your package?

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: No entry on Start Menu?
« Reply #6 on: December 15, 2011, 03:30:08 AM »
Hi Archie,

i don't know so much, but what is the content of the created .desktop file?

greets
ghostbunny

I think this:
Quote
EOF >$RPM_BUILD_ROOT%{_menudir}/%{name}
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF
=> the variables (starting with a dollar sign $), will be replaced by the values in the SPEC-file
[I assume the first line is where the .desktop file will be placed  ;)]

This portion is for the menu entry ... saved on /usr/lib/menu/

Yep, indeed - wasn't looking to the question too much....
=> this is the section that isn't working in your package?

Yep. This is the section that is not giving me a menu entry.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #7 on: December 15, 2011, 03:38:34 AM »
What about:

Code: [Select]
cat > $RPM_BUILD_ROOT%{_menudir}/%{name} << EOF
?package(%{name}):\
command="gogglesmm" \
needs="x11" \
section="Sound" \
title="Goggles Music Manager" \
icon="gogglesmm.png" \
longtitle="Goggles Music Manager"
EOF
=> that's the way I do it (when I do it, not so often  ::) :P); I do not understand the content very well, but....

But I'd think that with the .desktop file correctly placed, it should automatically appear  ??? (and that's not happening  :-\)

Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #8 on: December 15, 2011, 03:40:03 AM »
And I don't see any problem directly in the .desktop file (however, I've not that much experience  :P)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: No entry on Start Menu?
« Reply #9 on: December 15, 2011, 03:44:56 AM »
It's really bewildering. Two sets of eyes - yours and mine - and no problem. So why am I not getting the menu entry?   :-\
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #10 on: December 15, 2011, 03:58:26 AM »
I'm looking through these now:

http://standards.freedesktop.org/desktop-entry-spec/latest/
And then more detailed:
http://standards.freedesktop.org/desktop-entry-spec/latest/apa.html
http://standards.freedesktop.org/desktop-entry-spec/latest/apb.html
http://standards.freedesktop.org/desktop-entry-spec/latest/apc.html

Only difference I see, is that there's no VERSION-entry in your SPEC-file....

Also Googled this sites:
http://linuxcritic.wordpress.com/2010/04/07/anatomy-of-a-desktop-file/


Running this command didn't help (used a copy from your post):
Code: [Select]
[ruben@localhost ~]$ desktop-file-validate /home/ruben/Bureaublad/gogglesmm.desktop
=> no warnings / errors according to this tool
(part of the "desktop-file-utils" package in Synaptic)
This package has another command: desktop-file-install => I don't try this one on my production system now... maybe you can run it to see if you get any results (adjusted .desktop file?)

Or someone else has some idea (my inspiration is empty after this  ::) - and no time to dig deeper)

Offline ghostbunny

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 1160
Re: No entry on Start Menu?
« Reply #11 on: December 15, 2011, 04:14:13 AM »
i'm not sure but i looked into some .desktop files in /usr/share/applications

and everyone has in the categorie section a Qt or GTK entry.

example

From kid-qt
Code: [Select]
Categories=Qt;AudioVideo;Audio;AudioVideoEditing;X-MandrivaLinux-Multimedia-Sound;

maybe it works, give it a try ;D

greets
ghostbunny
The full life is a big mess

PS:
I'm German. Sorry because of possible mistakes in my written messages xD


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #12 on: December 15, 2011, 07:22:55 AM »
i'm not sure but i looked into some .desktop files in /usr/share/applications

and everyone has in the categorie section a Qt or GTK entry.

example

From kid-qt
Code: [Select]
Categories=Qt;AudioVideo;Audio;AudioVideoEditing;X-MandrivaLinux-Multimedia-Sound;

maybe it works, give it a try ;D

greets
ghostbunny

As far as I know, that's done when the .desktop file is specifically purposed for some Desktop Environment (in PCLinuxOS)... I always thought that emitting that entry would set the .desktop file available for all Desktop Environments... but it's worth a try of course   ;)
=> Archie, are you using the Minime KDE as packaging environment? (for 32 bit)

Offline Archie

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 8590
  • Aurum nostrum non est aurum vulgi.
Re: No entry on Start Menu?
« Reply #13 on: December 15, 2011, 08:56:17 AM »
64-bit Test4. Which is why my srpms are all 64-bit first. I have a 32-bit build environment on a LiveUSB (Minime and not persistent). That is very ideal because after every build (after moving the srpm to my HD), it is back to its pristine state.
Since 2006 | LiCo 401868 | Bare Metal | What is necessary is never unwise. --Sarek, 2258.42


Offline rubentje1991

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 2110
  • Rubenus Parvus MCMXCI
Re: No entry on Start Menu?
« Reply #14 on: December 15, 2011, 08:58:21 AM »
64-bit Test4. Which is why my srpms are all 64-bit first. I have a 32-bit build environment on a LiveUSB (Minime and not persistent). That is very ideal because after every build (after moving the srpm to my HD), it is back to its pristine state.

Yep, that's a good habit  :)
=> but did you try the "qt" or "gtk" addition? (just to be sure)