Skip to content

Commit

Permalink
Fixed scripts not executing due to long env variables containing imag…
Browse files Browse the repository at this point in the history
…e data
  • Loading branch information
ErikReider committed Mar 5, 2025
1 parent a90528e commit 079eee1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/configModel/configModel.vala
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,9 @@ namespace SwayNotificationCenter {
spawn_env += "SWAYNC_TIME=%s".printf (param.time.to_string ());
spawn_env += "SWAYNC_DESKTOP_ENTRY=%s".printf (param.desktop_entry ?? "");
foreach (string hint in param.hints.get_keys ()) {
if (hint.contains ("image") || hint.contains ("icon")) {
continue;
}
spawn_env += "SWAYNC_HINT_%s=%s".printf (
hint.up ().replace ("-", "_"),
param.hints[hint].print (false));
Expand Down

0 comments on commit 079eee1

Please sign in to comment.