diff options
author | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-11 17:19:17 -0500 |
---|---|---|
committer | Timothy Pearson <kb9vqf@pearsoncomputing.net> | 2014-10-11 17:19:17 -0500 |
commit | af36ac5647a15b00d994143b1371f395cc37fb5c (patch) | |
tree | b9bd5add3bc93c7f211a7bb6d0cde91ba74b6820 /src/gvcore/externaltooldialog.cpp | |
parent | ad7ff85aa38834912acfdca2fbe0adc9b968663c (diff) | |
download | gwenview-af36ac5647a15b00d994143b1371f395cc37fb5c.tar.gz gwenview-af36ac5647a15b00d994143b1371f395cc37fb5c.zip |
Fix ServiceTypes, ExcludeServiceTypes, and DocPath desktop file entries to match XDG specifications
Diffstat (limited to 'src/gvcore/externaltooldialog.cpp')
-rw-r--r-- | src/gvcore/externaltooldialog.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gvcore/externaltooldialog.cpp b/src/gvcore/externaltooldialog.cpp index 47ca826..35b4bc9 100644 --- a/src/gvcore/externaltooldialog.cpp +++ b/src/gvcore/externaltooldialog.cpp @@ -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; } |