···11diff --git a/script/rofi-theme-selector b/script/rofi-theme-selector22-index 0646e4bc..a19ec706 10075522+index 0646e4bc..f827dbfe 10075533--- a/script/rofi-theme-selector44+++ b/script/rofi-theme-selector55-@@ -164,7 +164,12 @@ Current theme: <b>${CUR}</b>"""55+@@ -42,34 +42,7 @@ function find_themes()66+ DIRS=${XDG_DATA_DIRS}77+ OLDIFS=${IFS}88+ IFS=:99+- if [ -z "${XDG_DATA_DIRS}" ]1010+- then1111+- echo "XDG_DATA_DIRS needs to be set for this script to function correctly."1212+- echo -n "Using dirs from \$PATH: "1313+- DIRS=1414+- # Iterate over items in $PATH1515+- for p in ${PATH}; do1616+- # Remove trailing / if exists.1717+- x=${p%/}1818+- # remove both /bin and /sbin and /games from end1919+- x=${x%/bin}2020+- x=${x%/sbin}2121+- x=${x%/games}2222+- # Add /share2323+- x=${x}/share2424+- # Check if entry exists Prepend : so :${x}: matches nicely2525+- case ":${DIRS}" in2626+- *$x:*);;2727+- *) DIRS+="$x:";;2828+- esac2929+- done3030+- # Remove trailing :3131+- DIRS=${DIRS%:}3232+- echo "${DIRS}"3333+- fi3434+- # Add user dir.3535+- DIRS+=":${HOME}/.local/share/"3636+- DIRS+=":${HOME}/.config/"3737++ DIRS+=":%ROFIOUT%/"3838+ for p in ${DIRS}; do 3939+ p=${p%/}4040+ TD=${p}/rofi/themes4141+@@ -164,7 +137,12 @@ Current theme: <b>${CUR}</b>"""642 ###743 function set_theme()844 {
+1-1
pkgs/applications/misc/rofi/default.nix
···1313 };14141515 # config.patch may be removed in the future - https://github.com/DaveDavenport/rofi/pull/7811616- patches = [ ./nix.patch ./config.patch ];1616+ patches = [ ./config.patch ];17171818 preConfigure = ''1919 patchShebangs "script"