On Mar 27, 2018, at 10:13 AM, Pronaip via brlcad-devel 
<brlcad-devel@lists.sourceforge.net> wrote:

As the title says. I think it should be left up to the user to decide if they 
want to run in interactive mode or not, because trying to guess it will just 
add unnecessary complexity and make things flakier.

Providing /dev/null as stdin isn't failing for me.  Piped input is run as a 
command script, so providing /dev/null as stdin is providing an empty list of 
commands to run.  That's documented and intended behavior.

Piped or redirected input is one of the most useful ways to run mged for 
scripting:

echo "tops" | mged -c moss.g

or

mged moss.g <<EOF
tops
EOF

or

# put a bunch of commands into a file.mged
mged moss.g < file.mged

I don't know how your application launcher is invoking mged.  Do you know how 
it's being invoked and what specifically is the failure?  Last I used our 
Debian .desktop launchers, they invoked as a double-click application without 
issue. 

Cheers!
Sean

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
BRL-CAD Developer mailing list
brlcad-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/brlcad-devel

Reply via email to