Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Make linux auto-run desktop file respect -appdata #393

Closed
wants to merge 2 commits into from

Conversation

molaeiali
Copy link
Contributor

No description provided.

@arm64v8a arm64v8a self-requested a review February 20, 2023 09:12
Copy link
Contributor

@arm64v8a arm64v8a left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nekoray/sys/AutoRun.cpp

Lines 171 to 178 in c87c3b7

// nekoray: launcher
if (qEnvironmentVariable("NKR_FROM_LAUNCHER") == "1") {
appCmdList = QStringList{QApplication::applicationDirPath() + "/launcher", "--", "-tray"};
}
if (NekoRay::dataStore->flag_use_appdata){
appCmdList = QStringList{QApplication::applicationDirPath(), "-tray", "-appdata"};
}

Here we can first determine the exe file name (nekoray / launcher --) , and then add the parameters -tray and -appdata

arm64v8a added a commit that referenced this pull request Feb 25, 2023
---------

Co-authored-by: arm64v8a <48624112+arm64v8a@users.noreply.github.com>
@arm64v8a arm64v8a closed this Feb 25, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants