--- a/added-alsamixer.patch +++ a/added-alsamixer.patch @@ -0,0 +1,23 @@ +diff --git a/src/prefs.c b/src/prefs.c +index e608d8f..41e421c 100644 +--- a/src/prefs.c ++++ b/src/prefs.c +@@ -61,6 +61,7 @@ static const gchar *vol_control_commands[] = { + "gnome-alsamixer", + "xfce4-mixer", + "alsamixergui", ++ "alsamixer", + NULL + }; + +@@ -185,7 +186,9 @@ prefs_get_string(const gchar *key, const gchar *def) + */ + if (!g_strcmp0(key, "VolumeControlCommand")) { + const gchar *cmd = find_vol_control_command(); +- if (cmd) ++ if (cmd == "alsamixer") ++ return g_strdup("xterm -e alsamixer"); ++ else if (cmd) + return g_strdup(cmd); + } + --- a/pnmixer.spec +++ a/pnmixer.spec @@ -11,6 +11,9 @@ Url: https://github.com/nicklan/pnmixer Source: %name-%version.tar Patch: %name-%version-%release.patch +# https://github.com/nicklan/pnmixer/pull/177 +Patch1: added-alsamixer.patch + BuildRequires(pre): rpm-build-licenses rpm-macros-cmake BuildRequires: cmake gettext libalsa-devel libnotify-devel %if_without gtk3 @@ -39,6 +42,7 @@ Feel free to try and to give some feedback. %prep %setup %patch -p1 +%patch1 -p1 %build %cmake \