aboutsummaryrefslogtreecommitdiff
path: root/launcher/FileSystem.cpp
diff options
context:
space:
mode:
authorADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>2022-11-12 20:13:59 +0200
committerADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>2022-11-12 20:19:32 +0200
commit7e5076b06891f28c1b2e27befd33005d400c49c9 (patch)
tree42cb5c601c7b4a389de7492b4de7b5478af7165d /launcher/FileSystem.cpp
parentdbe0553b4a6100d8269f749cc4eb372e5a30cb3b (diff)
downloadPrismLauncher-7e5076b06891f28c1b2e27befd33005d400c49c9.tar.gz
PrismLauncher-7e5076b06891f28c1b2e27befd33005d400c49c9.tar.bz2
PrismLauncher-7e5076b06891f28c1b2e27befd33005d400c49c9.zip
Linux: fix path shortcut is written to
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: ADudeCalledLeo <7997354+Leo40Git@users.noreply.github.com>
Diffstat (limited to 'launcher/FileSystem.cpp')
-rw-r--r--launcher/FileSystem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/launcher/FileSystem.cpp b/launcher/FileSystem.cpp
index 5a539093..ddd1a6e5 100644
--- a/launcher/FileSystem.cpp
+++ b/launcher/FileSystem.cpp
@@ -343,7 +343,7 @@ QString getDesktopDir()
bool createShortcut(QString destination, QString target, QStringList args, QString name, QString icon)
{
#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(Q_OS_OPENBSD)
- destination = PathCombine(destination, name + ".desktop");
+ destination += ".desktop";
QFile f(destination);
f.open(QIODevice::WriteOnly | QIODevice::Text);