diff options
author | Simon Rettberg | 2019-10-18 19:33:20 +0200 |
---|---|---|
committer | Simon Rettberg | 2019-10-18 19:33:20 +0200 |
commit | 31777a980e0f4b1b258713158524c0cd9a1dc30f (patch) | |
tree | 459c5bff4bcb2ff5c8c4d7b40f47bbcaf5d59f54 /src/session.h | |
parent | Properly handle key press events; prevent double-execution (diff) | |
download | vmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.tar.gz vmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.tar.xz vmchooser2-31777a980e0f4b1b258713158524c0cd9a1dc30f.zip |
Use execv() to start selected session
Prevent vmchooser from lingering in the background, like a zombie,
haunting you with invisible windows. Also seems to be notably faster
when launching the openbox session.
Diffstat (limited to 'src/session.h')
-rw-r--r-- | src/session.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/session.h b/src/session.h index 01f8ad5..c3f758c 100644 --- a/src/session.h +++ b/src/session.h @@ -39,7 +39,8 @@ class Session { virtual QString shortDescription() const = 0; virtual QString description() const = 0; virtual QIcon icon() const = 0; - virtual bool run() const = 0; + virtual bool prepareRun() const = 0; + virtual void run() const = 0; virtual QString execCommand() const { return QString(); } virtual QString uuid() const { return QString(); } virtual int type() const = 0; |