Delivered-To: listarch-cygwin AT sourceware DOT cygnus DOT com Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm Sender: cygwin-owner AT sourceware DOT cygnus DOT com Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com To: "'GNU-WIN32'" CC: Subject: Re: Executing a BASH script from a start menu shortcut References: <33C7347CC953D211A1ED0000F8751EFA3A5C AT PCNTSERVERA> From: Levon Saldamli Date: 10 Feb 1999 07:42:01 +0100 In-Reply-To: Robert Campbell's message of "Tue, 9 Feb 1999 22:42:47 -0000" Message-ID: <7wu2wuwyiu.fsf@sandra.lysator.liu.se> Lines: 23 X-Mailer: Gnus v5.5/Emacs 20.3 Robert Campbell writes: > Does anybody know how to create an icon on the desktop (or from the start > menu) that will execute a bash script without starting a dos prompt. >   > I have cygwin setup to start my X server by executing 'startx' from any bash > shell, and I would like to know how I can create an icon on my desktop to do > this, without bringing up a command prompt window. >   > I would like the script to do something like this: >   > #!/bin/bash --login > startx I think you could call bash with your script as argument, something like: path_to_bash/bash.exe myscript If it needs the env-variables you could copy the cygnus.bat, and change it to call bash with your script as argument instead. -- /Levon Saldamli -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com