Fix run term with root (dmenu_themes)
This commit is contained in:
parent
a6b529558e
commit
f6961d8157
|
@ -48,8 +48,12 @@ function load_theme() {
|
||||||
if [ -z "${file}" ] ; then
|
if [ -z "${file}" ] ; then
|
||||||
echo "# Theme selector canceled"
|
echo "# Theme selector canceled"
|
||||||
else
|
else
|
||||||
|
if [ -f /usr/bin/sudo ] ; then
|
||||||
${termrun} sudo ${main_folder}/scripts/build-theme.sh "${file}"
|
${termrun} sudo ${main_folder}/scripts/build-theme.sh "${file}"
|
||||||
load_theme
|
load_theme
|
||||||
|
else
|
||||||
|
${termrun} su -c ${main_folder}/scripts/build-theme.sh "${file}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user