Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/linux/psi-extra-action1.desktop b/linux/psi-extra-action1.desktop
- index b76b07f9..e57c6c7a 100644
- --- a/linux/psi-extra-action1.desktop
- +++ b/linux/psi-extra-action1.desktop
- @@ -3,3 +3,13 @@
- Exec=psi --choose-profile
- Name=Start with another profile
- Icon=psi
- +
- +[Desktop Action SoftwareRendering]
- +Exec=psi --swrender
- +Name=Start with OpenGL software rendering
- +Icon=psi
- +
- +[Desktop Action Quit]
- +Exec=psi --quit
- +Name=Quit application
- +Icon=application-exit
- diff --git a/src/main.cpp b/src/main.cpp
- index 9753120d..ea5fca31 100644
- --- a/src/main.cpp
- +++ b/src/main.cpp
- @@ -155,6 +155,8 @@ void PsiMain::useLocalInstance()
- } else if (cmdline.contains("version")) {
- PsiCli().showVersion();
- QTimer::singleShot(0, this, SLOT(bail()));
- + } else if (cmdline.contains("quit")) {
- + QTimer::singleShot(0, this, [this](){sessionQuit(PsiCon::QuitProgram);});
- } else if (cmdline.contains("choose-profile")) {
- // Select a profile
- QTimer::singleShot(0, this, SLOT(chooseProfile()));
- diff --git a/src/psicli.h b/src/psicli.h
- index e2ffee87..d5852b09 100644
- --- a/src/psicli.h
- +++ b/src/psicli.h
- @@ -50,6 +50,8 @@ public:
- tr("Use software widgets rendering. In some cases default hardware rendering may lead to graphical "
- "glitches and crashes. This option may help."));
- + defineSwitch("quit", tr("Quit running application"));
- +
- defineSwitch("help", tr("Show this help message and exit."));
- defineAlias("h", "help");
- defineAlias("?", "help");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement