Commit 079eee12 authored by Erik Reider's avatar Erik Reider

Fixed scripts not executing due to long env variables containing image data

parent a90528ee
...@@ -248,6 +248,9 @@ namespace SwayNotificationCenter { ...@@ -248,6 +248,9 @@ namespace SwayNotificationCenter {
spawn_env += "SWAYNC_TIME=%s".printf (param.time.to_string ()); spawn_env += "SWAYNC_TIME=%s".printf (param.time.to_string ());
spawn_env += "SWAYNC_DESKTOP_ENTRY=%s".printf (param.desktop_entry ?? ""); spawn_env += "SWAYNC_DESKTOP_ENTRY=%s".printf (param.desktop_entry ?? "");
foreach (string hint in param.hints.get_keys ()) { foreach (string hint in param.hints.get_keys ()) {
if (hint.contains ("image") || hint.contains ("icon")) {
continue;
}
spawn_env += "SWAYNC_HINT_%s=%s".printf ( spawn_env += "SWAYNC_HINT_%s=%s".printf (
hint.up ().replace ("-", "_"), hint.up ().replace ("-", "_"),
param.hints[hint].print (false)); param.hints[hint].print (false));
......
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