Fix error when cancel selection (dmenu_drun)
This commit is contained in:
parent
4a1ef143c0
commit
609324236a
|
@ -4,7 +4,7 @@
|
||||||
# dmenu_drun - dmenu script that simulates 'rofi -show drun' #
|
# dmenu_drun - dmenu script that simulates 'rofi -show drun' #
|
||||||
# #
|
# #
|
||||||
# Author: q3aql <q3aql@duck.com> #
|
# Author: q3aql <q3aql@duck.com> #
|
||||||
# Last update: 10-07-2022 #
|
# Last update: 14-07-2022 #
|
||||||
##############################################################
|
##############################################################
|
||||||
|
|
||||||
# Configuration variables
|
# Configuration variables
|
||||||
|
@ -95,11 +95,13 @@ load_theme
|
||||||
create_list_files
|
create_list_files
|
||||||
list_output=$(list_desktop_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " drun:")
|
list_output=$(list_desktop_icons | dmenu -i -nb "${NBCOLOR}" -nf "${NFCOLOR}" -sb "${SBCOLOR}" -sf "${SFCOLOR}" -l 18 -p " drun:")
|
||||||
run_output=$(echo ${list_output} | cut -c 5-999)
|
run_output=$(echo ${list_output} | cut -c 5-999)
|
||||||
if [ "${run_output}" == "Scan New Desktop Files" ] ; then
|
if [ ! -z "${run_output}" ] ; then
|
||||||
|
if [ "${run_output}" == "Scan New Desktop Files" ] ; then
|
||||||
echo "0" > ${HOME}/.dmenu/read_list
|
echo "0" > ${HOME}/.dmenu/read_list
|
||||||
create_list_files
|
create_list_files
|
||||||
$0
|
$0
|
||||||
else
|
else
|
||||||
run_desktop_file=$(cat "${load_desktop_files}/${run_output}")
|
run_desktop_file=$(cat "${load_desktop_files}/${run_output}")
|
||||||
${runDesktop} "${run_desktop_file}"
|
${runDesktop} "${run_desktop_file}"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue
Block a user