Skip to content

Commit

Permalink
usercore: add console output if adding desktop file to desktop or to …
Browse files Browse the repository at this point in the history
…application menu fails
  • Loading branch information
karolherbst committed May 14, 2012
1 parent 51291d0 commit 97c5bb8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/shared/usercore/code/ItemHandle_nix.cpp
Expand Up @@ -351,6 +351,11 @@ bool ItemHandle::createDesktopShortcut()

// if something is going wrong, we don't delete the created desktop file
if (result) UTIL::FS::delFile(tmpPath);
else
{
Msg("Desktop file could not be installed.\n");
Msg(gcString("The file is located here: {0}\n", tmpPath));
}

return result;
}
Expand All @@ -367,6 +372,11 @@ bool ItemHandle::createMenuEntry()

// if something is going wrong, we don't delete the created desktop file
if (result) UTIL::FS::delFile(tmpPath);
else
{
Msg("Desktop file could not be installed.\n");
Msg(gcString("The file is located here: {0}\n", tmpPath));
}

return result;
}
Expand Down

0 comments on commit 97c5bb8

Please sign in to comment.