Fix ServiceTypes, ExcludeServiceTypes, and DocPath desktop file entries to match XDG specifications

pull/1/head
Timothy Pearson 10 years ago
parent 04adf69a8d
commit 5b1f358aad

@ -12,7 +12,7 @@ Name[pa]=ਡਾਲਫਿਨ
Exec=d3lphin %i -caption "%c" "%u"
Icon=d3lphin
Type=Application
DocPath=d3lphin/index.html
X-DocPath=d3lphin/index.html
Categories=Qt;TDE;System;FileManager;
GenericName=File Manager
GenericName[ar]=مدير الملفات

@ -367,8 +367,8 @@ void DolphinContextMenu::insertActionItems(TDEPopupMenu* popup,
for (TQStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) {
KSimpleConfig cfg(*dirIt + *entryIt, true);
cfg.setDesktopGroup();
if ((cfg.hasKey("Actions") || cfg.hasKey("X-TDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) {
const TQStringList types = cfg.readListEntry("ServiceTypes");
if ((cfg.hasKey("Actions") || cfg.hasKey("X-TDE-GetActionMenu")) && cfg.hasKey("X-TDE-ServiceTypes")) {
const TQStringList types = cfg.readListEntry("X-TDE-ServiceTypes");
for (TQStringList::ConstIterator it = types.begin(); it != types.end(); ++it) {
// check whether the mime type is equal or whether the
// mimegroup (e. g. image/*) is supported

@ -443,8 +443,8 @@ void InfoSidebarPage::insertActions()
for (TQStringList::ConstIterator entryIt = entries.begin(); entryIt != entries.end(); ++entryIt) {
KSimpleConfig cfg(*dirIt + *entryIt, true);
cfg.setDesktopGroup();
if ((cfg.hasKey("Actions") || cfg.hasKey("X-TDE-GetActionMenu")) && cfg.hasKey("ServiceTypes")) {
const TQStringList types = cfg.readListEntry("ServiceTypes");
if ((cfg.hasKey("Actions") || cfg.hasKey("X-TDE-GetActionMenu")) && cfg.hasKey("X-TDE-ServiceTypes")) {
const TQStringList types = cfg.readListEntry("X-TDE-ServiceTypes");
for (TQStringList::ConstIterator it = types.begin(); it != types.end(); ++it) {
// check whether the mime type is equal or whether the
// mimegroup (e. g. image/*) is supported

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=text/html,text/xml,application/xml,text/rss
X-TDE-ServiceTypes=text/html,text/xml,application/xml,text/rss
Actions=addAsPodcast
[Desktop Action addAsPodcast]
Name=Add as podcast to amaroK

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=application/asx,audio/*
X-TDE-ServiceTypes=application/asx,audio/*
Actions=appendToPlaylist;appendAndPlay;queueTrack;
X-TDE-Submenu=Amarok
X-TDE-Submenu[bn]=আমারক

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/audiocd
X-TDE-ServiceTypes=media/audiocd
Actions=Play;
Encoding=UTF-8
X-TDE-Priority=TopLevel

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Actions=CompressZip;CompressTarGz;CompressTarBz2
X-TDE-Priority=TopLevel
X-TDE-Submenu=Compress

@ -1,7 +1,7 @@
[Desktop Entry]
X-SuSE-translate=true
Encoding=UTF-8
ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak
X-TDE-ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak
Actions=extractHere
[Desktop Action extractHere]

@ -1,7 +1,7 @@
[Desktop Entry]
X-SuSE-translate=true
Encoding=UTF-8
ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak
X-TDE-ServiceTypes=application/x-gzip,application/x-lha,application/x-tar,application/x-tgz,application/x-tbz,application/x-tbz2,application/x-zip,application/x-bzip,application/x-tzo,application/x-lzop,application/x-rar,application/x-rar-compressed,application/x-zoo,application/x-tarz,application/x-archive,application/x-bzip2,application/x-jar,application/x-deb,application/x-ace,application/x-7z,application/x-arc,application/x-arj,application/x-compress,application/x-cpio,application/x-pak
Actions=ExtractSubdir
[Desktop Action ExtractSubdir]

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=all/allfiles
X-TDE-ServiceTypes=all/allfiles
Actions=CompressZip;CompressTarGz;CompressTarBz2
X-TDE-Priority=TopLevel
X-TDE-Submenu=Compress

@ -1,9 +1,9 @@
[Desktop Entry]
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Actions=D3lphinSU;
[Desktop Action D3lphinSU]
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Name=Open as Root
Name[de]=Öffne als Root
Name[ru]=Открыть под root

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=text/*,application/x-desktop
X-TDE-ServiceTypes=text/*,application/x-desktop
Actions=Editassu
[Desktop Action Editassu]

@ -1,6 +1,6 @@
[Desktop Entry]
ServiceTypes=all/allfiles
ExcludeServiceTypes=kdedevice/*
X-TDE-ServiceTypes=all/allfiles
X-TDE-ExcludeServiceTypes=kdedevice/*
Actions=encrypt
[Desktop Action encrypt]

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Actions=encrypt
[Desktop Action encrypt]

@ -31,6 +31,6 @@ Name[zh_CN]=格式化
[Desktop Entry]
Actions=Format;
ServiceTypes=media/floppy_unmounted,media/floppy5_unmounted
X-TDE-ServiceTypes=media/floppy_unmounted,media/floppy5_unmounted
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -3,7 +3,7 @@
# Released under the same license as the KDE core distribution (GPL 2.0).
#
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Actions=convToJPEG;convToPNG;convToGIF;convToTIF;
X-TDE-Submenu=Convert To
X-TDE-Submenu[bg]=Конвертиране в

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=application/x-font-ttf,application/x-font-type1,application/x-font-speedo,application/x-font-bdf,application/x-font-pcf,application/x-font-snf,application/x-font-otf,application/x-font-ttc,application/x-afm
X-TDE-ServiceTypes=application/x-font-ttf,application/x-font-type1,application/x-font-speedo,application/x-font-bdf,application/x-font-pcf,application/x-font-snf,application/x-font-otf,application/x-font-ttc,application/x-afm
Actions=installFont;
X-SuSE-translate=true

@ -1,7 +1,7 @@
[Desktop Entry]
Encoding=UTF-8
Actions=OpenISO
ServiceTypes=inode/blockdevice,application/x-iso
X-TDE-ServiceTypes=inode/blockdevice,application/x-iso
[Desktop Action OpenISO]
Comment=ISO9660 View

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/jpeg
X-TDE-ServiceTypes=image/jpeg
Actions=jpegRot90;jpegRot270;jpegFlipV;jpegFlipH;
X-TDE-Submenu=Transform Image
X-TDE-Submenu[bg]=Конвертиране на изображението

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/audiocd,media/mixedcd
X-TDE-ServiceTypes=media/audiocd,media/mixedcd
Actions=K3bRip;
X-TDE-Priority=TopLevel

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/audiocd
X-TDE-ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/audiocd
Actions=K3bCDCopy;
X-TDE-Priority=TopLevel

@ -1,7 +1,7 @@
[Desktop Entry]
Actions=CreateK3bAudioProject;
Encoding=UTF-8
ServiceTypes=audio/x-mp3,audio/x-vorbis,application/x-ogg,audio/x-mp2,audio/x-mpegurl,audio/x-wav,media/blankcd
X-TDE-ServiceTypes=audio/x-mp3,audio/x-vorbis,application/x-ogg,audio/x-mp2,audio/x-mpegurl,audio/x-wav,media/blankcd
X-SuSE-translate=true
X-SuSE-translate=true

@ -1,7 +1,7 @@
[Desktop Entry]
Actions=CreateK3bVcdProject;
Encoding=UTF-8
ServiceTypes=video/mpeg
X-TDE-ServiceTypes=video/mpeg
X-SuSE-translate=true
X-SuSE-translate=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/dvdrom_unmounted,media/dvdwriter_unmounted,media/dvdvideo
X-TDE-ServiceTypes=media/dvdrom_unmounted,media/dvdwriter_unmounted,media/dvdvideo
Actions=K3bDVDCopy;
X-TDE-Priority=TopLevel

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/blankcd
X-TDE-ServiceTypes=media/blankcd
Actions=K3bDataProject;K3bAudioCDProject;
X-TDE-Priority=TopLevel

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/blankdvd
X-TDE-ServiceTypes=media/blankdvd
Actions=K3bDataProject;
X-TDE-Priority=TopLevel

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/dvdvideo
X-TDE-ServiceTypes=media/dvdvideo
Actions=K3bRip;
X-TDE-Priority=TopLevel

@ -1,7 +1,7 @@
[Desktop Entry]
Actions=WriteCdImage;
Encoding=UTF-8
ServiceTypes=application/x-cue
X-TDE-ServiceTypes=application/x-cue
X-SuSE-translate=true
X-SuSE-translate=true

@ -1,7 +1,7 @@
[Desktop Entry]
Actions=WriteCdImage;
Encoding=UTF-8
ServiceTypes=application/x-iso,inode/ISO-image
X-TDE-ServiceTypes=application/x-iso,inode/ISO-image
X-SuSE-translate=true
X-SuSE-translate=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Actions=setAsBackground;tileAsBackground;
X-TDE-Submenu=Set as Background
X-TDE-Submenu[af]=Stel as agtergrond

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Actions=gwenview;
[Desktop Action gwenview]

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=inode/directory
X-TDE-ServiceTypes=inode/directory
Actions=openTerminalHere;
X-TDE-AuthorizeAction=shell_access
Encoding=UTF-8

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=all/allfiles
X-TDE-ServiceTypes=all/allfiles
Actions=mail_as_attachment
[Desktop Action mail_as_attachment]

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/cdrom_mounted,media/cdrom_unmounted,media/cdwriter_mounted,media/cdwriter_unmounted,media/dvd_mounted,media/dvd_unmounted,media/audiocd,media/blankcd,media/blankdvd,media/dvdvideo,media/svcd,media/vcd
X-TDE-ServiceTypes=media/cdrom_mounted,media/cdrom_unmounted,media/cdwriter_mounted,media/cdwriter_unmounted,media/dvd_mounted,media/dvd_unmounted,media/audiocd,media/blankcd,media/blankdvd,media/dvdvideo,media/svcd,media/vcd
Actions=MediaEject;
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/dvd_unmounted,media/floppy5_unmounted,media/floppy_unmounted,media/hdd_unmounted,media/nfs_unmounted,media/removable_unmounted,media/smb_unmounted,media/zip_unmounted,media/camera_unmounted
X-TDE-ServiceTypes=media/cdrom_unmounted,media/cdwriter_unmounted,media/dvd_unmounted,media/floppy5_unmounted,media/floppy_unmounted,media/hdd_unmounted,media/nfs_unmounted,media/removable_unmounted,media/smb_unmounted,media/zip_unmounted,media/camera_unmounted
Actions=MediaMount;
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/removable_mounted,media/zip_mounted
X-TDE-ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/removable_mounted,media/zip_mounted
Actions=MediaRealFolder
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/removable_mounted,media/removable_unmounted,media/camera_mounted,media/camera_unmounted
X-TDE-ServiceTypes=media/removable_mounted,media/removable_unmounted,media/camera_mounted,media/camera_unmounted
Actions=MediaSafelyRemove;
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/zip_mounted,media/vcd,media/svcd,media/dvdvideo
X-TDE-ServiceTypes=media/cdrom_mounted,media/cdwriter_mounted,media/dvd_mounted,media/floppy5_mounted,media/floppy_mounted,media/hdd_mounted,media/nfs_mounted,media/smb_mounted,media/zip_mounted,media/vcd,media/svcd,media/dvdvideo
Actions=MediaUnmount;
X-TDE-Priority=TopLevel
X-TDE-MediaNotifierHide=true

@ -24,6 +24,6 @@ Name[zh_CN]=在 Digikam 中打开
Name[zh_TW]=在 Digikam 中開啟
[Desktop Entry]
Actions=OpenDigikam;
ServiceTypes=media/gphoto2camera,media/camera_mounted,media/camera_unmounted
X-TDE-ServiceTypes=media/gphoto2camera,media/camera_mounted,media/camera_unmounted
X-SuSE-translate=true

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=application/x-executable,application/x-shellscript,application/x-python,application/x-perl
X-TDE-ServiceTypes=application/x-executable,application/x-shellscript,application/x-python,application/x-perl
Actions=runassu
[Desktop Action runassu]

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=application/x-smb-server
X-TDE-ServiceTypes=application/x-smb-server
Actions=smb2rdc
[Desktop Action smb2rdc]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-adasrc
X-TDE-ServiceTypes=text/x-adasrc
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-c++src
X-TDE-ServiceTypes=text/x-c++src
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-c++hdr
X-TDE-ServiceTypes=text/x-c++hdr
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-chdr
X-TDE-ServiceTypes=text/x-chdr
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/css
X-TDE-ServiceTypes=text/css
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-diff
X-TDE-ServiceTypes=text/x-diff
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/html
X-TDE-ServiceTypes=text/html
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-java
X-TDE-ServiceTypes=text/x-java
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-log
X-TDE-ServiceTypes=text/x-log
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-makefile
X-TDE-ServiceTypes=text/x-makefile
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-pascal
X-TDE-ServiceTypes=text/x-pascal
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-perl
X-TDE-ServiceTypes=text/x-perl
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/plain
X-TDE-ServiceTypes=text/plain
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-python
X-TDE-ServiceTypes=text/x-python
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-tcl
X-TDE-ServiceTypes=text/x-tcl
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-tex
X-TDE-ServiceTypes=text/x-tex
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-xml
X-TDE-ServiceTypes=text/x-xml
Actions=Print;
[Desktop Action Print]

@ -1,6 +1,6 @@
[Desktop Entry]
Encoding=UTF-8
ServiceTypes=text/x-xslt
X-TDE-ServiceTypes=text/x-xslt
Actions=Print;
[Desktop Action Print]

Loading…
Cancel
Save