2 files changed, 2 insertions, 2 deletions
diff --git a/resources/nheko.desktop b/resources/nheko.desktop
index 4404e460..00d7fda5 100644
--- a/resources/nheko.desktop
+++ b/resources/nheko.desktop
@@ -2,7 +2,7 @@
Name=nheko
Version=1.0
Comment=Desktop client for Matrix
-Exec=nheko
+Exec=nheko %u
Icon=nheko
Type=Application
Categories=Network;InstantMessaging;Qt;
diff --git a/src/main.cpp b/src/main.cpp
index a890a6fd..07962b9b 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -128,7 +128,7 @@ main(int argc, char *argv[])
// parsed before the SingleApplication userdata is set.
QString userdata{""};
QString matrixUri;
- for (int i = 0; i < argc; ++i) {
+ for (int i = 1; i < argc; ++i) {
QString arg{argv[i]};
if (arg.startsWith("--profile=")) {
arg.remove("--profile=");
|