summaryrefslogtreecommitdiff
path: root/src/env.cpp
diff options
context:
space:
mode:
authorisanae <14251494+isanae@users.noreply.github.com>2020-07-22 23:27:01 -0400
committerisanae <14251494+isanae@users.noreply.github.com>2020-11-03 11:39:02 -0500
commit9435202034cafb05ffc11aed48ff57536bce73f7 (patch)
tree03c6ad6d1125248dc727d7904721883ac06b616e /src/env.cpp
parentf97e40f127441828eb4ffe11841ebf79191ac8a3 (diff)
removed flags from SingleInstance because there's only one left
refactoring in main.cpp: - moved stuff to loglist.cpp and moapplication.cpp - split main() into a few functions
Diffstat (limited to 'src/env.cpp')
-rw-r--r--src/env.cpp13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/env.cpp b/src/env.cpp
index bf75c9fa..9f0acbbd 100644
--- a/src/env.cpp
+++ b/src/env.cpp
@@ -400,11 +400,18 @@ QString path()
return get("PATH");
}
-QString addPath(const QString& s)
+QString appendToPath(const QString& s)
{
auto old = path();
- set("PATH", get("PATH") + ";" + s);
- return old;
+ set("PATH", old + ";" + s);
+ return old;
+}
+
+QString prependToPath(const QString& s)
+{
+ auto old = path();
+ set("PATH", s + ";" + old);
+ return old;
}
QString setPath(const QString& s)