Commit Diff


commit - 84b15a791a13bb048566afe8c0ef8c9114d8fa24
commit + 77a633099677020c6c265e58a945fd7e57dee59c
blob - 5320d5c62c13ac98f61939a0fc9146e2d2606ed8
blob + 2ed025f841a9257c8adcbfa9d697efe473c2997b
--- mpc-notify
+++ mpc-notify
@@ -149,16 +149,9 @@ if [ "$use_preview" -eq 1 ]; then
 				song_icon="$default_song_icon"
 			fi
 		fi
-		unset song_dirname
 	fi
-	unset preview_path
 fi
-unset xdg_music_dir song_filename song_album_name
 
 # now send the actual notification
 song_body="$(mpc --format '[%title%[ \n%artist% - %album%]]|[%file%]' current)"
 notify-replace 'mpc-notify' "$song_head" "$song_body" -i "$song_icon" -u low
-
-# cleanup
-unset command preview_dir preview_width preview_height default_song_icon \
-	use_preview song_head song_body song_icon