diff options
author | Ken Moore <moorekou@gmail.com> | 2018-08-22 18:10:20 -0400 |
---|---|---|
committer | Ken Moore <moorekou@gmail.com> | 2018-08-22 18:10:20 -0400 |
commit | 4e30c44daf54e313024b1e2ce6e5bcc003cb7bac (patch) | |
tree | 1bd4292176c8ee56492a7dfd9135590fa404ce6e /src-qt5/core/libLumina/LUtils.h | |
parent | Fix up the port template for lumina-pdf (diff) | |
download | lumina-4e30c44daf54e313024b1e2ce6e5bcc003cb7bac.tar.gz lumina-4e30c44daf54e313024b1e2ce6e5bcc003cb7bac.tar.bz2 lumina-4e30c44daf54e313024b1e2ce6e5bcc003cb7bac.zip |
A few fixes for Lumina:
1. Adjust the pkg-plist for FreeBSD to include the trident-dark color file.
2. Add a new function for fetching XDG standard directory paths (and create dir as needed)
3. Setup the desktop and lib classes to use the XDG standard path function now.
4. Add a bunch of fallback icons if the "start-here-lumina" icon could not be found in the current theme. These are all based on the OS name.
5. Ensure we run "xdg-user-dirs-update" before launching the session (if it is installed). This is used for the main standard dir detection.
6. Ensure that start-lumina-desktop *always* starts a new desktop session (bypassing any existing lock files for the desktop session).
Diffstat (limited to 'src-qt5/core/libLumina/LUtils.h')
-rw-r--r-- | src-qt5/core/libLumina/LUtils.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src-qt5/core/libLumina/LUtils.h b/src-qt5/core/libLumina/LUtils.h index ee04c023..f808f8c1 100644 --- a/src-qt5/core/libLumina/LUtils.h +++ b/src-qt5/core/libLumina/LUtils.h @@ -29,9 +29,13 @@ class LUtils{ public: + enum StandardDir {Desktop, Documents, Downloads, Music, Pictures, PublicShare, Templates, Videos}; + + //Return the path to one of the XDG standard directories + static QString standardDirectory(StandardDir dir, bool createAsNeeded = true); //Run an external command and return output & exit code - static QString runCommand(bool &success, QString command, QStringList arguments = QStringList(), QString workdir = "", QStringList env = QStringList()); + static QString runCommand(bool &success, QString command, QStringList arguments = QStringList(), QString workdir = "", QStringList env = QStringList()); //Run an external command and return the exit code static int runCmd(QString cmd, QStringList args = QStringList()); |