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

r14.0.x
Timothy Pearson 10 years ago
parent ad7ff85aa3
commit af36ac5647

@ -104,4 +104,4 @@ Icon=gwenview
Type=Application
Categories=Qt;TDE;Graphics;
MimeType=image/gif;image/x-xpm;image/x-xbm;image/jpeg;image/x-pcx;image/x-bmp;image/png;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-portable-greymap;image/tiff;image/x-targa;image/svg+xml;
DocPath=gwenview/index.html
X-DocPath=gwenview/index.html

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

@ -105,17 +105,17 @@ struct ExternalToolDialogPrivate {
void writeServiceTypes(KDesktopFile* desktopFile) {
TQButton* button=mContent->mFileAssociationGroup->selected();
if (!button) {
desktopFile->writeEntry("ServiceTypes", "*");
desktopFile->writeEntry("X-TDE-ServiceTypes", "*");
return;
}
int id=mContent->mFileAssociationGroup->id(button);
if (id==ID_ALL_IMAGES) {
desktopFile->writeEntry("ServiceTypes", "image/*");
desktopFile->writeEntry("X-TDE-ServiceTypes", "image/*");
return;
}
if (id==ID_ALL_FILES) {
desktopFile->writeEntry("ServiceTypes", "*");
desktopFile->writeEntry("X-TDE-ServiceTypes", "*");
return;
}
@ -126,7 +126,7 @@ struct ExternalToolDialogPrivate {
mimeTypes.append(item->text(0));
}
}
desktopFile->writeEntry("ServiceTypes", mimeTypes);
desktopFile->writeEntry("X-TDE-ServiceTypes", mimeTypes);
}
@ -213,7 +213,7 @@ struct ExternalToolDialogPrivate {
mContent->mName->setText(desktopFile->readName());
mContent->mCommand->setURL(desktopFile->readEntry("Exec"));
mContent->mIconButton->setIcon(desktopFile->readIcon());
TQStringList serviceTypes=desktopFile->readListEntry("ServiceTypes");
TQStringList serviceTypes=desktopFile->readListEntry("X-TDE-ServiceTypes");
updateFileAssociationGroup(serviceTypes);
return;
}

@ -38,7 +38,7 @@ Name[vi]=Xem ảnh
Name[xx]=xxImage Viewxx
Name[zh_CN]=图像查看
MimeType=inode/directory
ServiceTypes=KParts/ReadOnlyPart
X-TDE-ServiceTypes=KParts/ReadOnlyPart
X-TDE-Library=libgvdirpart
InitialPreference=5
X-TDE-InitialPreference=5
Icon=gvdirpart

@ -42,7 +42,7 @@ Name[vi]=Bộ xem ảnh Gwenview
Name[xx]=xxGwenview Image Viewerxx
Name[zh_CN]=Gwenview 图像查看器
MimeType=image/gif;image/jpeg;image/png;image/x-bmp;image/x-eps;image/x-ico;image/x-krl;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbm;image/x-xpm
ServiceTypes=KParts/ReadOnlyPart
X-TDE-ServiceTypes=KParts/ReadOnlyPart
X-TDE-Library=libgvimagepart
InitialPreference=5
X-TDE-InitialPreference=5
Icon=gwenview

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Exec=gimp-remote %F
Icon=gimp
Name=The GIMP

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Name=KolourPaint
Name[pa]=ਕੇ-ਰੰਗ-ਪੇਂਟ
Name[xx]=xxKolourPaintxx

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=*
X-TDE-ServiceTypes=*
Exec=konqueror %u
Icon=konqueror
Name=Konqueror

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Exec=dcop kdesktop KBackgroundIface setWallpaper %u 2
Icon=background
Name=Set as Tiled Wallpaper

@ -1,5 +1,5 @@
[Desktop Entry]
ServiceTypes=image/*
X-TDE-ServiceTypes=image/*
Exec=dcop kdesktop KBackgroundIface setWallpaper %u 6
Icon=background
Name=Set as Wallpaper

Loading…
Cancel
Save