Unverified Commit b65a08bb authored by Erik Reider's avatar Erik Reider Committed by GitHub

Add /usr/local/etc/xdg/swaync/ as default fallback path for config and CSS files (#168)

* Added /usr/local/etc/xdg/swaync/ as default fallback path * Added comments to clarify its purpose
parent 27217450
......@@ -95,7 +95,10 @@ namespace SwayNotificationCenter {
public static string get_style_path (owned string ? custom_path,
bool only_system = false) {
string[] paths = {};
string[] paths = {
// Fallback location. Specified in postinstall.py
"/usr/local/etc/xdg/swaync/style.css"
};
if (custom_path != null && custom_path.length > 0) {
// Replaces the home directory relative path with a absolute path
if (custom_path.get (0) == '~') {
......@@ -130,7 +133,10 @@ namespace SwayNotificationCenter {
}
public static string get_config_path (owned string ? custom_path) {
string[] paths = {};
string[] paths = {
// Fallback location. Specified in postinstall.py
"/usr/local/etc/xdg/swaync/config.json"
};
if (custom_path != null && custom_path.length > 0) {
// Replaces the home directory relative path with a absolute path
if (custom_path.get (0) == '~') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment