I am trying to build a script which lets user define a font of his choice with something like this:
Code: Select all
# FONT="`gfontsel stdout`"
# echo $FONT
Sans 10
#
This runs quite well if user really choose a font then click on the gfontsel application button "Close". But if user clicks on the quit button of the window title bar, gfontsel is closed but the process itself not!
Code: Select all
# FONT="`gfontsel stdout`"
????
How can this be solved?
Thanks for your attention.
Cordialement.