to-let
Pages: [1]
  Print  
Author Topic: [patch] support for shared-mime-info and other freedesktop stuff related fixes  (Read 2415 times)
Betelgeuse
Newbie
*
Posts: 4


View Profile Email
« on: November 21, 2007, 10:07:22 pm »

http://overlays.gentoo.org/proj/java/browser/java-experimental/media-video/jubler/files/jubler-3.4.0-freedesktop.patch?rev=5751

What this patch does:
1. adds support for shared-mime-info spec
   * KDE supports this starting with 4.0 so for now the old way is left in
2. Rename the mime types to application/x-<extension> the sub-<extension> types are not registered with IANA http://www.iana.org/assignments/media-types/
3. Add a linuxdesktopintegration target to build.xml. This is usable from the Gentoo ebuild but most of the other stuff is not. This avoids code duplication between the ebuild and build.xml

I did not do this in the patch to show changes in the files in themselves but the desktop files should be renamed to follow x-<extension>.desktop too.
« Last Edit: November 22, 2007, 09:56:10 am by teras » Logged
Betelgeuse
Newbie
*
Posts: 4


View Profile Email
« Reply #1 on: November 21, 2007, 10:08:42 pm »

More information about the patch can be found in the Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=199626
Logged
teras
Administrator
Hero Member
*****
Posts: 633


View Profile Email
« Reply #2 on: November 22, 2007, 09:37:32 am »

Thank you for the patch... I really needed it.
I was told that the Desktop integration with modern KDE/Gnome was broken, but it was difficult for me to have a look at it, right now.
I will apply this patch, have some basic test and possibly release Jubler 3.4.1 with just that.

Of course I could rename the mimetype filenames, but I think some subtitle editing programs already define these files, so sometimes there is file overlapping (at least last time I checked it). That's why I chose the "sub-srt" instead of "x-srt" naming convention.
What are your ideas with this issue?

Since you are good with these things, I have another question. I was submitted a new SVG icon for Jubler and I am thinking to use it. Can you help me with this?
Logged
Betelgeuse
Newbie
*
Posts: 4


View Profile Email
« Reply #3 on: November 22, 2007, 12:37:40 pm »

Of course I could rename the mimetype filenames, but I think some subtitle editing programs already define these files, so sometimes there is file overlapping (at least last time I checked it). That's why I chose the "sub-srt" instead of "x-srt" naming convention.
What are your ideas with this issue?
Well the standard shared-mime-info standard package has a definition for x-srt already included out of the box:
betelgeuse@pena ~ $ grep -A 5 x-srt /usr/share/mime/packages/freedesktop.org.xml
  <mime-type type="application/x-srt">
    <sub-class-of type="text/plain"/>
    <comment>subtitle file</comment>
    <comment xml:lang="bg">Субтитри</comment>
    <comment xml:lang="cs">soubor s titulky</comment>
    <comment xml:lang="de">Untertitel-Datei</comment>

If the other programs are using the sub-* forms then just contact IANA for registering those MIME types.

Since you are good with these things, I have another question. I was submitted a new SVG icon for Jubler and I am thinking to use it. Can you help me with this?

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons
Logged
Betelgeuse
Newbie
*
Posts: 4


View Profile Email
« Reply #4 on: November 22, 2007, 12:45:18 pm »

Since you are good with these things, I have another question. I was submitted a new SVG icon for Jubler and I am thinking to use it. Can you help me with this?

http://standards.freedesktop.org/icon-theme-spec/icon-theme-spec-latest.html#install_icons

Also if you have an SVG icon you can think about dropping the .png files from svn and having the build system render png files for all icons sizes from the SVG file.
As Jubler is written in Java I suggest using batik, but there are plenty of other alternatives out there. But I do suggest including the png files in the source tarballs
released so that things like Gentoo ebuilds don't have to depend on batik and you will get consistent results across the board.
Logged
teras
Administrator
Hero Member
*****
Posts: 633


View Profile Email
« Reply #5 on: November 22, 2007, 02:29:33 pm »


Thank you for the tip! It is very valuable.
I have made the appropriate changes in the SVN.
You might have a look at it, if you want. This will be 3.4.1 version, soon.

Unfortunately, SVG icon doesn't look as professional as bitmap one, so I'll stick with the old ones.
Logged
Pages: [1]
  Print  
 
Jump to:  

Renegade Motorhomes - Credit Card Consolidation - Credit Counseling - Credit Consolidation