Skip to content

Commit 9342aab

Browse files
committed
use temporary file for xlunch config instead of stdin which appears to be slightly unreliable
1 parent 8fccfb2 commit 9342aab

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

  • Slax/debian11/modules/03-desktop/rootcopy/usr/bin

Slax/debian11/modules/03-desktop/rootcopy/usr/bin/fbappselect

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
#!/bin/bash
22

3+
TEMPCONF=/tmp/xlunch$$.conf
4+
xlunch_genquick 64 --desktop > $TEMPCONF
5+
36
COMMAND=$(
4-
xlunch_genquick 64 --desktop | \
57
xlunch --border 7% --sideborder 10% --borderratio 100 --sideborderratio 50 \
68
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
79
--button "/usr/share/icons/locolor/24x24/actions/xlunch-logout.png;;24;-0;fblogout" \
810
--button "/usr/share/icons/locolor/24x24/actions/xlunch-menu.png;;0;-0;" \
911
--voidclickterminate --iconpadding 40 --textpadding 10 \
1012
--leastmargin 6 --hidemissing --iconsize 64 \
1113
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
12-
--outputonly
14+
--outputonly --input $TEMPCONF
1315
)
1416

17+
rm $TEMPCONF
18+
1519
if [ "$COMMAND" = "" ]; then
1620
exit
1721
fi

0 commit comments

Comments
 (0)