mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-08 08:01:57 -07:00
core: Add a periodic donation request (#8981)
Will fire once in december and july. Disableable with `ecosystem:no_donation:nag`
This commit is contained in:
15
src/helpers/fs/FsUtils.hpp
Normal file
15
src/helpers/fs/FsUtils.hpp
Normal file
@@ -0,0 +1,15 @@
|
||||
#pragma once
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
namespace NFsUtils {
|
||||
// Returns the path to the hyprland directory in data home.
|
||||
std::optional<std::string> getDataHome();
|
||||
|
||||
std::optional<std::string> readFileAsString(const std::string& path);
|
||||
|
||||
// overwrites the file if exists
|
||||
bool writeToFile(const std::string& path, const std::string& content);
|
||||
|
||||
bool executableExistsInPath(const std::string& exe);
|
||||
};
|
Reference in New Issue
Block a user