This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Missing documentation.

Tags: None
(comma "," separated)
Teuniz
Registered Member
Posts
20
Karma
0
OS

Missing documentation.

Wed Jul 13, 2011 8:40 am
Hello,

I tried to look for documentation about the inner working of KDE but what I found was very old (KDE3) or incomplete.

I hope somebody can point me to the right place so that I can find the right documentation.

What I want to know is, how to write an installer that installs a program on top of KDE. So what I want to know is, where are the files that contain the entries for the startmenu, and where are the files that contain the info about the link between the file extensions and the the default program to use.
How to edit those files, how to write a .desktop file, etc.

Thanks in advance.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Wed Jul 13, 2011 9:43 am
The Menu itself and file extension associations are controlled by XDG specifications. Documentation for them can likely be found on freedesktop.org.

The Default application is likely determined through the same method I believe.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Wed Jul 13, 2011 12:42 pm
Thanks, that helped me a lot.

Now I have another problem.
I created a myapp.desktop file with the following content:

Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=myapp
Comment=Some app
Icon=myapp.png
Exec=myapp
Terminal=false
Categories=Education;Application;


I created a script with the following content:

#!/bin/sh
#
#
cp myapp /usr/bin/
#
cp images/myapp.png /usr/share/icons/
cp images/myapp.png /usr/share/pixmaps/
#
cp myapp.desktop /usr/share/applications/
#
#


I run the script as root.
However, there is no menu entry created.
When I manually copy the myapp.desktp file to ~/desktop/ it works fine.

Why isn't the menu entry created in KDE4?

I checked the script, all the files are copied into the right places.

According to http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry:

The list of Main Categories consist of those categories that every conforming desktop environment MUST support. By including one of these categories in an application's desktop entry file the application will be ensured that it will show up in a section of the application menu dedicated to this category.


Any ideas?
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Thu Jul 14, 2011 5:37 am
You may need to run "kbuildsycoca4" (as the user, not root) for KDE to detect it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Thu Jul 14, 2011 8:16 am
bcooksley wrote:You may need to run "kbuildsycoca4" (as the user, not root) for KDE to detect it.


Unfortunately, that didn't help.

After some more reading, I extended the script with two extra commands:

Code: Select all
#!/bin/sh
#
#
cp myapp /usr/bin/
#
cp images/myapp.png /usr/share/icons/
cp images/myapp.png /usr/share/pixmaps/
#
cp myapp.desktop /usr/share/applications/
#
#
cp myapp.xml /usr/share/mime/packages/
#
update-mime-database /usr/share/mime/
#
#


and the content of the file "myapp.xml" is:

Code: Select all
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
<Name>Edutainment</Name>
  <Include>
    <Filename>myapp.desktop</Filename>
  </Include>
</Menu>


And I extended the file myapp.desktop:

Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=myapp
Comment=A viewer/toolbox for timeseries storage files
Icon=myapp
Exec=myapp
Terminal=false
Categories=Education;Application;
MimeType=application/edf;application/x-edf;application/bdf;application/x-bdf
InitialPreference=9


But still, no menu entry...

The strange thing is, when I run this script on a Gnome desktop (Ubuntu),
the menu entry is created, but myapp is not the preferred app for the respective file associations.

With KDE4 (openSuse), there is no menu entry but myapp is the preferred application for the respective file-extensions.

Any ideas?

I'm thinking about to file a bugreport.

Regards,

Teuniz
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Mon Jul 18, 2011 5:09 am
If you add Qt and KDE to your list of categories, and remove Application, does it show up now?
Code: Select all
Qt;KDE;Education;


The reason for KDE giving you the preference for those file extensions is that KDE fully honours the MimeType line in *.desktop files.

GNOME either may not have those mimetypes registered (KDE ships with a set of mimetypes which extend the base ones they both share), or requires that they be specified in XML files (similar to the menu ones, but slightly different)


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Tue Jul 19, 2011 6:43 am
I removed the .menu file from the installer en added some other commands.

Now it seems to work completely on openSuse & KDE4 and Ubuntu & Gnome.

The new content of the install script:
Code: Select all
#!/bin/sh
#
#
cp -f myapp /usr/bin/
chmod 755 /usr/bin/myapp
#
mkdir -p /usr/share/doc/myapp/
cp -f 'doc/myapp manual.html' /usr/share/doc/myapp/
chmod 644 /usr/share/doc/myapp/"myapp manual.html"
#
cp -f images/edf.png /usr/share/icons/
chmod 644 /usr/share/icons/edf.png
cp -f images/edf.png /usr/share/pixmaps/
chmod 644 /usr/share/pixmaps/edf.png
#
cp -f images/edf.png /usr/share/icons/hicolor/16x16/apps/
chmod 644 /usr/share/icons/hicolor/16x16/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/22x22/apps/
chmod 644 /usr/share/icons/hicolor/22x22/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/24x24/apps/
chmod 644 /usr/share/icons/hicolor/24x24/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/32x32/apps/
chmod 644 /usr/share/icons/hicolor/32x32/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/36x36/apps/
chmod 644 /usr/share/icons/hicolor/36x36/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/48x48/apps/
chmod 644 /usr/share/icons/hicolor/48x48/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/64x64/apps/
chmod 644 /usr/share/icons/hicolor/64x64/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/72x72/apps/
chmod 644 /usr/share/icons/hicolor/72x72/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/96x96/apps/
chmod 644 /usr/share/icons/hicolor/96x96/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/128x128/apps/
chmod 644 /usr/share/icons/hicolor/128x128/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/edf.png
#
cp -f images/application-x-edf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/application-x-bdf.png
#
cp -f myapp.desktop /usr/share/applications/
chmod 644 /usr/share/applications/myapp.desktop
#
cp -f myapp.xml /usr/share/mime/packages/
chmod 644 /usr/share/mime/packages/myapp.xml
#
#
#
if [ -x /usr/sbin/update-mime ]; then
    echo "updating mime..."
    cp -f myapp-mime /usr/lib/mime/packages/
    chmod 644 /usr/lib/mime/packages/myapp-mime
    update-mime
fi
#
if test -f /usr/bin/update-mime-database ; then
    echo "updating mime database..."
    /usr/bin/update-mime-database /usr/share/mime > /dev/null
fi
#
if test -f /usr/bin/update-desktop-database ; then
    echo "updating desktop database..."
    /usr/bin/update-desktop-database > /dev/null
fi
#
if test -f /sbin/SuSEconfig ; then
    echo "running suseconfig..."
    /sbin/SuSEconfig > /dev/null
fi
#
#


However, there's only one weird thing left on opensuse.
In the menu-entry, myapp has a default icon (Pi symbol).
I don't know why. In the recent used apps list, the myapp icon is used.
Also in the "recently installed" menu, the icon is ok.

Last edited by Teuniz on Tue Jul 19, 2011 2:51 pm, edited 1 time in total.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Tue Jul 19, 2011 10:02 am
This may be due to the icon cache. Logging out and back in may fix this.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Tue Jul 19, 2011 2:53 pm
bcooksley wrote:This may be due to the icon cache. Logging out and back in may fix this.


Unfortunately, this does not help.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Wed Jul 20, 2011 6:30 am
You are aware that the "Icon" entry in "myapp.desktop" needs to match the name of your icon right? In this case, it needs to be "edf" as that is the name of the file in hicolor/<size>/apps/


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Wed Jul 20, 2011 9:37 am
bcooksley wrote:You are aware that the "Icon" entry in "myapp.desktop" needs to match the name of your icon right? In this case, it needs to be "edf" as that is the name of the file in hicolor/<size>/apps/


Yes, I know. I tried some other tests. Some time ago, I installed skype.
So, I checked what files are in the skype-rpm and where they are installed.
Also, I opened the file "skype.desktop" with kate to view the content.

What is different, is the categories section. With skype it's: Network;Application;

I changed the categories section of myapp.desktop to Network;Application; as well and the result is, apart from that myapp is now in another menu entry called "Applications" together with skype, the icon works!

However, if I change back the categories section to Education;Science;DataVizualition; myapp will be moved to the menu entry "Edutainment" and the icon is wrong, it's the default Pi symbol.

If I edit and change the categories section of skype.desktop to Education;Science;DataVizualition; skype will move to the "Edutainment" menu entry and have the default Pi symbol as an icon!

So, it looks like there is a bug in (at least openSuse's implementation of) KDE4.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Thu Jul 21, 2011 3:50 am
It may be possible that being under the Data Visualisation category (which seems to be spelt wrongly there.... which is odd) causes a different icon name prefix to be used as part of the name. As the now altered icon name won't be found, it falls back to the generic icon for that category.

Does it work in just Education;Science?


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
Teuniz
Registered Member
Posts
20
Karma
0
OS

Re: Missing documentation.

Sat Jul 23, 2011 8:58 am
bcooksley wrote:It may be possible that being under the Data Visualisation category (which seems to be spelt wrongly there.... which is odd) causes a different icon name prefix to be used as part of the name. As the now altered icon name won't be found, it falls back to the generic icon for that category.

Does it work in just Education;Science?


I spelled wrong here, indeed it was "Categories=Education;Science;DataVisualization;" like spelled at http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry

When I change it to Categories=Education;Science; the icon changes to the default laboratory/chemistry icon :-(

When I change it to Categories=Education; myapp will be moved to a new menu entry called "Applications" but it will have the myapp icon!


For the moment, this is the content of myapp.desktop:

Code: Select all
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=myapp
Comment=A viewer/toolbox for timeseries storage files
Icon=edf
Exec=myapp
Terminal=false
Categories=Education;Science;DataVisualization;
MimeType=application/x-edf;application/x-bdf
InitialPreference=9


The content of myapp.xml:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-edf">
    <comment>European Data Format 16-bits</comment>
    <magic priority="50">
      <match type="string" offset="0" value="0       "/>
    </magic>
    <generic-icon name="edf"/>
    <glob pattern="*.edf"/>
  </mime-type>
  <mime-type type="application/x-bdf">
    <comment>European Data Format 24-bits</comment>
    <magic priority="50">
      <match type="string" offset="1" value="BIOSEMI"/>
    </magic>
    <generic-icon name="edf"/>
    <glob pattern="*.bdf"/>
  </mime-type>
</mime-info>


The content of myapp.mime:
application/edf; edfbrowser %s; nametemplate=%s.edf; priority=9
application/x-edf; edfbrowser %s; nametemplate=%s.edf; priority=9
application/bdf; edfbrowser %s; nametemplate=%s.bdf; priority=9
application/x-bdf; edfbrowser %s; nametemplate=%s.bdf; priority=9


and finally the install script that works on Ubuntu with Gnome and openSuse with KDE4:
Code: Select all
#!/bin/sh
#
#
#
echo "copying files..."
#
cp -f myapp /usr/bin/
chmod 755 /usr/bin/myapp
#
mkdir -p /usr/share/doc/myapp/
cp -f 'doc/myapp manual.html' /usr/share/doc/myapp/
chmod 644 /usr/share/doc/myapp/"myapp manual.html"
#
cp -f images/edf.png /usr/share/icons/
chmod 644 /usr/share/icons/edf.png
cp -f images/edf.png /usr/share/pixmaps/
chmod 644 /usr/share/pixmaps/edf.png
#
cp -f images/edf.png /usr/share/icons/hicolor/16x16/apps/
chmod 644 /usr/share/icons/hicolor/16x16/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/22x22/apps/
chmod 644 /usr/share/icons/hicolor/22x22/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/24x24/apps/
chmod 644 /usr/share/icons/hicolor/24x24/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/32x32/apps/
chmod 644 /usr/share/icons/hicolor/32x32/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/36x36/apps/
chmod 644 /usr/share/icons/hicolor/36x36/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/48x48/apps/
chmod 644 /usr/share/icons/hicolor/48x48/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/64x64/apps/
chmod 644 /usr/share/icons/hicolor/64x64/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/72x72/apps/
chmod 644 /usr/share/icons/hicolor/72x72/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/96x96/apps/
chmod 644 /usr/share/icons/hicolor/96x96/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/128x128/apps/
chmod 644 /usr/share/icons/hicolor/128x128/apps/edf.png
cp -f images/edf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/edf.png
#
cp -f images/application-x-edf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/16x16/mimetypes/
chmod 644 /usr/share/icons/hicolor/16x16/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/22x22/mimetypes/
chmod 644 /usr/share/icons/hicolor/22x22/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/24x24/mimetypes/
chmod 644 /usr/share/icons/hicolor/24x24/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/32x32/mimetypes/
chmod 644 /usr/share/icons/hicolor/32x32/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/36x36/mimetypes/
chmod 644 /usr/share/icons/hicolor/36x36/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/48x48/mimetypes/
chmod 644 /usr/share/icons/hicolor/48x48/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/64x64/mimetypes/
chmod 644 /usr/share/icons/hicolor/64x64/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/72x72/mimetypes/
chmod 644 /usr/share/icons/hicolor/72x72/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/96x96/mimetypes/
chmod 644 /usr/share/icons/hicolor/96x96/mimetypes/application-x-bdf.png
cp -f images/application-x-edf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/application-x-edf.png
cp -f images/application-x-bdf.png /usr/share/icons/hicolor/128x128/mimetypes/
chmod 644 /usr/share/icons/hicolor/128x128/mimetypes/application-x-bdf.png
#
cp -f myapp.desktop /usr/share/applications/
chmod 644 /usr/share/applications/myapp.desktop
#
cp -f myapp.xml /usr/share/mime/packages/
chmod 644 /usr/share/mime/packages/myapp.xml
#
#
#
if [ -x /usr/sbin/update-mime ]; then
    echo "updating mime..."
    cp -f myapp-mime /usr/lib/mime/packages/
    chmod 644 /usr/lib/mime/packages/myapp-mime
    update-mime
fi
#
if test -f /usr/bin/update-mime-database ; then
    echo "updating mime database..."
    /usr/bin/update-mime-database /usr/share/mime > /dev/null
fi
#
if test -f /usr/bin/update-desktop-database ; then
    echo "updating desktop database..."
    /usr/bin/update-desktop-database > /dev/null
fi
#
if test -f /sbin/SuSEconfig ; then
    echo "running suseconfig..."
    /sbin/SuSEconfig > /dev/null
fi
#
#
sync
#
#
echo "Done."
#



It looks like openSuse/KDE4 does not comply to the recommendations at http://standards.freedesktop.org/menu-spec/menu-spec-1.0.html#category-registry where it states that
The list of Main Categories consist of those categories that every conforming desktop environment MUST support. By including one of these categories in an application's desktop entry file the application will be ensured that it will show up in a section of the application menu dedicated to this category. The list of Additional Categories provides categories that can be used to provide more fine grained information about the application. Additional Categories should always be used in combination with one of the Main Categories.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS

Re: Missing documentation.

Sat Jul 23, 2011 10:29 pm
I would recommend sending an email to the kde-devel@kde.org mailing list in regards to this issue. There may be a bug in the menu itself. Please make sure to include a screenshot of the menu not working properly.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]


Bookmarks



Who is online

Registered users: Bing [Bot], claydoh, Google [Bot], rblackwell