config: add various new functions
This commit is contained in:
parent
f1a3705699
commit
e24a61bc62
12 changed files with 435 additions and 28 deletions
|
|
@ -9,6 +9,13 @@ pub fn set_env(key: &str, val: &str) {
|
|||
get!().set_env(key, val);
|
||||
}
|
||||
|
||||
/// Unsets an environment variable.
|
||||
///
|
||||
/// This does not affect the compositor itself but only programs spawned by the compositor.
|
||||
pub fn unset_env(key: &str) {
|
||||
get!().unset_env(key);
|
||||
}
|
||||
|
||||
/// A command to be spawned.
|
||||
pub struct Command {
|
||||
pub(crate) prog: String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue