summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-22 14:24:05 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2014-10-22 14:24:05 -0500
commitd47440b3b120be5e40e723157b0208d50fe8c5aa (patch)
tree7fa3ad8a599ba2405984aba93c2c0088746a7870
parentca8194cffa6785bf7acc087334a4c0fb2dd011ec (diff)
downloadbasket-d47440b3.tar.gz
basket-d47440b3.zip
Fix exec icon location and bring it into XDG compliance
-rw-r--r--src/formatimporter.cpp2
-rw-r--r--src/notefactory.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/formatimporter.cpp b/src/formatimporter.cpp
index 66e4bf9..f6ea820 100644
--- a/src/formatimporter.cpp
+++ b/src/formatimporter.cpp
@@ -259,7 +259,7 @@ TQDomElement FormatImporter::importBasket(const TQString &folderName)
"Name=%2\n"
"Icon=%3\n"
"Encoding=UTF-8\n"
- "Type=Application\n").arg(runCommand, title, icon.isEmpty() ? TQString("exec") : icon);
+ "Type=Application\n").arg(runCommand, title, icon.isEmpty() ? TQString("application-x-executable") : icon);
TQString launcherFileName = Tools::fileNameForNewFile("launcher.desktop", Global::basketsFolder() + folderName /*+ "/"*/);
TQString launcherFullPath = Global::basketsFolder() + folderName /*+ "/"*/ + launcherFileName;
TQFile file(launcherFullPath);
diff --git a/src/notefactory.cpp b/src/notefactory.cpp
index 2f1d75e..6074964 100644
--- a/src/notefactory.cpp
+++ b/src/notefactory.cpp
@@ -264,7 +264,7 @@ TQString NoteFactory::createNoteLauncherFile(const TQString &command, const TQSt
"Name=%2\n"
"Icon=%3\n"
"Encoding=UTF-8\n"
- "Type=Application\n").arg(command, name, icon.isEmpty() ? TQString("exec") : icon);
+ "Type=Application\n").arg(command, name, icon.isEmpty() ? TQString("application-x-executable") : icon);
TQString fileName = fileNameForNewNote(parent, "launcher.desktop");
TQString fullPath = parent->fullPathForFileName(fileName);
// parent->dontCareOfCreation(fullPath);
@@ -930,7 +930,7 @@ TQString NoteFactory::iconForCommand(const TQString &command)
icon = TQStringList::split('-', icon).first();
// 4. If the icon still not findable, use a generic icon
if ( ! isIconExist(icon) )
- icon = "exec";
+ icon = "application-x-executable";
return icon;
}