Fix scheme handler not passing arguments
This commit is contained in:
parent
e0207ff337
commit
7874d61c33
@ -2,7 +2,7 @@
|
|||||||
Name=nheko
|
Name=nheko
|
||||||
Version=1.0
|
Version=1.0
|
||||||
Comment=Desktop client for Matrix
|
Comment=Desktop client for Matrix
|
||||||
Exec=nheko
|
Exec=nheko %u
|
||||||
Icon=nheko
|
Icon=nheko
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Network;InstantMessaging;Qt;
|
Categories=Network;InstantMessaging;Qt;
|
||||||
|
@ -128,7 +128,7 @@ main(int argc, char *argv[])
|
|||||||
// parsed before the SingleApplication userdata is set.
|
// parsed before the SingleApplication userdata is set.
|
||||||
QString userdata{""};
|
QString userdata{""};
|
||||||
QString matrixUri;
|
QString matrixUri;
|
||||||
for (int i = 0; i < argc; ++i) {
|
for (int i = 1; i < argc; ++i) {
|
||||||
QString arg{argv[i]};
|
QString arg{argv[i]};
|
||||||
if (arg.startsWith("--profile=")) {
|
if (arg.startsWith("--profile=")) {
|
||||||
arg.remove("--profile=");
|
arg.remove("--profile=");
|
||||||
|
Loading…
Reference in New Issue
Block a user