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
|
||||
echo "# Theme selector canceled"
|
||||
else
|
||||
if [ -f /usr/bin/sudo ] ; then
|
||||
${termrun} sudo ${main_folder}/scripts/build-theme.sh "${file}"
|
||||
load_theme
|
||||
else
|
||||
${termrun} su -c ${main_folder}/scripts/build-theme.sh "${file}"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user