forked from quickshell/quickshell
feat: add Quickshell.env
This commit is contained in:
parent
14e1d2d162
commit
b5110b759e
4 changed files with 15 additions and 2 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue