diff options
| author | isanae <14251494+isanae@users.noreply.github.com> | 2019-12-02 15:29:23 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-12-02 15:29:23 -0500 |
| commit | d5a4077a4396058a9f79339dba0c29c4b742b60f (patch) | |
| tree | a8f32d4aa0ec39600c32788c9022ea4559d408b6 /src/env.h | |
| parent | eabca00c35d7af3b6822bb7857ef1e073807ca0a (diff) | |
| parent | 3b78e436dbee043e4a3f81e5bfa09695c2a708c4 (diff) | |
Merge pull request #915 from isanae/lock-hook-shell
Lock, hook, shell
Diffstat (limited to 'src/env.h')
| -rw-r--r-- | src/env.h | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -246,6 +246,26 @@ Service getService(const QString& name); QString toString(Service::StartType st); QString toString(Service::Status st); + +struct Association +{ + // path to the executable associated with the file + QFileInfo executable; + + // full command line associated with the file, no replacements + QString commandLine; + + // command line _without_ the executable and with placeholders such as %1 + // replaced by the given file + QString formattedCommandLine; +}; + +// returns the associated executable and command line, executable is empty on +// error +// +Association getAssociation(const QFileInfo& file); + + enum class CoreDumpTypes { Mini = 1, |
