Skip to content

Commit

Permalink
use temporary file for xlunch config instead of stdin which appears t…
Browse files Browse the repository at this point in the history
…o be slightly unreliable
  • Loading branch information
Tomas-M committed Mar 27, 2022
1 parent 8fccfb2 commit 9342aab
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Slax/debian11/modules/03-desktop/rootcopy/usr/bin/fbappselect
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
#!/bin/bash

TEMPCONF=/tmp/xlunch$$.conf
xlunch_genquick 64 --desktop > $TEMPCONF

COMMAND=$(
xlunch_genquick 64 --desktop | \
xlunch --border 7% --sideborder 10% --borderratio 100 --sideborderratio 50 \
--background /usr/share/wallpapers/slax_wallpaper.jpg --font DejaVuSans/11 \
--button "/usr/share/icons/locolor/24x24/actions/xlunch-logout.png;;24;-0;fblogout" \
--button "/usr/share/icons/locolor/24x24/actions/xlunch-menu.png;;0;-0;" \
--voidclickterminate --iconpadding 40 --textpadding 10 \
--leastmargin 6 --hidemissing --iconsize 64 \
--highlight /usr/share/icons/hicolor/128x128/apps/xlunch_highlight.png \
--outputonly
--outputonly --input $TEMPCONF
)

rm $TEMPCONF

if [ "$COMMAND" = "" ]; then
exit
fi
Expand Down

0 comments on commit 9342aab

Please sign in to comment.