View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001250 | Scribus | General | public | 2004-10-25 19:10 | 2005-04-10 12:20 |
Reporter | malex | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | i386 | OS | Linux | OS Version | 2.6 |
Product Version | 1.2.2cvs | ||||
Fixed in Version | 1.2.2cvs | ||||
Summary | 0001250: scribus.desktop needs to be updated to correspond to the current freedesktop specs | ||||
Description | MimeType was fixed and some good optional entries were added. scribus.xml is needed as application/x-scribus file extensions are not in the standard mime database, yet. I am not sure I got the <magic> part right where a string from the file is matched. | ||||
Tags | No tags attached. | ||||
Patch | |||||
related to | 0001025 | closed | Add MIME types to KDE/GNOME |
2004-10-25 19:10
|
scribus.desktop.patch (778 bytes)
--- scribus.desktop 2004-03-01 16:44:31.000000000 -0700 +++ scribus.desktop.new 2004-10-25 13:04:41.000000000 -0600 @@ -1,4 +1,5 @@ [Desktop Entry] +Version=1.0 Encoding=UTF-8 Name=Scribus Name[fa]=اسکریباس @@ -44,14 +45,15 @@ GenericName[zh_CN]=桌面出版 GenericName[zh_TW]=桌面出版 GenericName[zu]=Ukushicilelwa kwe-Desktop +FilePattern=scribus +TryExec=scribus Exec=scribus %f -MimeType=scd,scd.gz,sla,sla.gz +MimeType=application/x-scribus Terminal=false Icon=scribusicon.png Type=Application X-StandardInstall=false -Categories=Office;X-Misc; +Categories=Applications;Office;X-Misc; StartupWMClass=scribus X-KDE-SubstituteUID=false -X-KDE-Username= -# vi: encoding=utf-8 \ No newline at end of file +X-KDE-Username= \ No newline at end of file |
2004-10-25 19:12
|
scribus.xml (460 bytes)
<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/Standards/shared-mime-info-spec"> <mime-type type="application/x-scribus"> <comment xml:lang="en">Scribus file</comment> <magic priority="50"> <match type="string" value="SCRIBUSUTF8" offset="0"/> </magic> <glob pattern="*.sla"/> <glob pattern="*.sla.gz"/> <glob pattern="*.scd"/> <glob pattern="*.scd.gz"/> </mime-type> </mime-info> |
|
scribus.xml from the 0001025 should be used. Forget the <magic> element. However, use the xmlns attribute of the <mime-info> element from the scribus.xml from 0001250 as the one in 1025 is incorrect. |
|
I have updated those two files: scribus.desktop should go to /usr/share/applications/ x-scribus.xml to /usr/share/mime/applications/ and then the "update-mime-database" app should be run. IMHO that's more for the packagers than a normal user (which normal user - eg. miss Jane from the office, builds his Scribus from source?), who have the pribileges to run such things. I have dropped the "Application" category because it is considered obsolete and no longer in the .desktop spec, instead there's and Qt category. Please consider placing those files in the CVS. |
2004-11-08 13:54
|
x-scribus.xml (641 bytes)
<?xml version="1.0" encoding="UTF-8"?> <mime-info xmlns="http://www.freedesktop.org/Standards/shared-mime-info-spec"> <mime-type type="application/x-scribus"> <comment xml:lang="en">Scribus Document</comment> <comment xml:lang="pl">Dokument Scribusa</comment> <comment xml:lang="de">Scribus Dokument</comment> <comment xml:lang="cy">Dogfen Scribus</comment> <comment xml:lang="nb">Scribus-dokument</comment> <comment xml:lang="nn">Scribus-dokument</comment> <glob pattern="*.sla" /> <glob pattern="*.sla.gz" /> <glob pattern="*.scd" /> <glob pattern="*.scd.gz" /> </mime-type> </mime-info> |
|
What do we need to do to get these in? Just put them in CVS and install them when Scribus is installed?? |
|
Yes, just add to CVS and install them (but the x-scribus.xml only if the shared-mime package is installed, maybe a configure check for update-mime-database and update-desktop-database, anyway - IMHO running these apps should be a ./configure parameter - usually it isn't needed because it's done by the packaging system, eg. the packager). Also I've updated the scribus.desktop because of a wrong locale name. |
2004-11-09 13:43
|
|
|
cbradney, scribus.desktop goes into /usr/share/applications x-scribus.xml goes into /usr/share/mime/application but as DeeJay1 noted, it's a task for packagers, really. edited on: 04-11-09 19:18 |
|
IIRC the application/x-blah MIME scheme is deprecated (for long-term/real-world use) in favour of the application/vnd.vendor.blah scheme. See: http://www.ietf.org/rfc/rfc2045 http://www.ietf.org/rfc/rfc2048 http://www.iana.org/cgi-bin/mediatypes.pl Regarding the x- space: "These types are unregistered, experimental, and should be used only with the active agreement of the parties exchanging them." Before the Scribus MIME type becomes too wide spread, it might not be a bad idea to move to something like application/vnd.scribus.sla1 . |
|
Schemes in the vnd.* tree must be registered so we can't just use it. AFAIK an application form was sent to IANA and is waiting for approval. |
|
OK, thanks for the info. I was unaware that an application had been submitted (hence the link to the application web page in my previous bugnote). Hopefully they'll get around to it soon... |
|
committed the .desktop file for a partial fix. We are awaiting IANA approval. |
|
https://bugs.freedesktop.org/show_bug.cgi?id=2642 |
|
scribus.xml is now in cvs - make file and config tests come next |
|
the desktop file is as perfect as we can make it at the moment |
Date Modified | Username | Field | Change |
---|---|---|---|
2004-10-25 19:10 | malex | New Issue | |
2004-10-25 19:10 | malex | File Added: scribus.desktop.patch | |
2004-10-25 19:12 | malex | File Added: scribus.xml | |
2004-10-25 21:26 | malex | Relationship added | related to 0001025 |
2004-10-25 21:27 | malex | Note Added: 0002766 | |
2004-11-08 13:53 | deejay1 | Note Added: 0002814 | |
2004-11-08 13:54 | deejay1 | File Added: x-scribus.xml | |
2004-11-08 13:54 | deejay1 | File Added: scribus.desktop | |
2004-11-09 00:31 | cbradney | Note Added: 0002828 | |
2004-11-09 13:39 | deejay1 | Note Added: 0002843 | |
2004-11-09 13:40 | deejay1 | File Deleted: scribus.desktop | |
2004-11-09 13:43 | deejay1 | File Added: scribus.desktop | |
2004-11-09 17:30 | malex | Note Added: 0002845 | |
2004-11-09 18:18 | malex | Note Edited: 0002845 | |
2004-11-10 12:56 |
|
Note Added: 0002850 | |
2004-11-10 13:01 | deejay1 | Note Added: 0002852 | |
2004-11-10 13:07 |
|
Note Added: 0002853 | |
2004-12-06 01:21 |
|
Status | new => assigned |
2004-12-06 01:21 |
|
Assigned To | => plinnell |
2005-01-07 21:34 |
|
Note Added: 0003397 | |
2005-03-02 22:13 |
|
Note Added: 0003858 | |
2005-03-03 21:05 |
|
Note Added: 0003866 | |
2005-04-06 13:52 |
|
Product Version | 1.2.1cvs => 1.2.2cvs |
2005-04-10 12:03 |
|
Note Added: 0004217 | |
2005-04-10 12:03 |
|
Resolution | open => fixed |
2005-04-10 12:03 |
|
Fixed in Version | => 1.2.2cvs |
2005-04-10 12:20 |
|
Status | assigned => resolved |
2005-04-10 12:20 |
|
Status | resolved => closed |