feat: add Quickshell.env

This commit is contained in:
outfoxxed 2024-03-03 02:24:33 -08:00
parent 14e1d2d162
commit b5110b759e
Signed by untrusted user: outfoxxed
GPG key ID: 4C88A185FB89301E
4 changed files with 15 additions and 2 deletions

View file

@ -6,6 +6,7 @@
#include <qqmllist.h>
#include <qtmetamacros.h>
#include <qtypes.h>
#include <qvariant.h>
#include "qmlscreen.hpp"
@ -50,6 +51,9 @@ public:
/// [Reloadable]: ../reloadable
Q_INVOKABLE void reload(bool hard);
/// Returns the string value of an environment variable or null if it is not set.
Q_INVOKABLE QVariant env(const QString& variable);
signals:
void screensChanged();