This is the mail archive of the cygwin-talk@cygwin.com mailing list for the cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fixing strace and cygcheck so that they work with mount -X


On 12-May-2005 23:15, Igor Pechtchanski wrote:

>On Thu, 12 May 2005, Michael Schaap wrote:
>
>  
>
>>PS: This is all *way* off-topic for this list.  To make up for it, I
>>propose to add a --hippo flag to cygstart.  Anyone have a suggestion for
>>what it should do?
>>    
>>
>
>Why, set the Cygwin desktop icon to "the hippo", of course...
>
Hmm... tricky...

>  Unless
>you'd rather finish Brian's dancing hippo (i.e., insert the Cygwin logo in
>all frames), then cygcheck could pop up a browser with that animation
>instead.
>	Igor
>  
>
Well, I'm a bit artistically challenged, so I'll leave that to someone
else, but the latter part is easy - I attached a patch to do just that.

Hippopotamical regards,

 - Michael
--- ORIG2/cygstart.c	2005-05-13 16:25:36.721750000 +0200
+++ cygstart.c	2005-05-13 16:37:44.551000000 +0200
@@ -40,7 +40,10 @@
 #define MSDN_URL "http://msdn.microsoft.com/library/en-us/shellcc/platform/"; \
                  "Shell/reference/functions/shellexecute.asp"
 
-static const char versionID[] = "1.2";
+/* Hippo URL */
+#define HIPPO_URL "http://dessent.net/tmp/cyghippo.jpg";
+
+static const char versionID[] = "1.2.hippo";
 /* for future CVS */
 static const char revID[] =
 	"$Id: cygstart.c,v 1.3 2005/03/08 05:22:51 cwilson Exp $";
@@ -155,6 +158,8 @@
           "Display licensing information", NULL},
         { "reference", '\0', POPT_ARG_NONE, NULL, 'r', \
           "Open MSDN reference for ShellExecute", NULL},
+        { "hippo", '\0', POPT_ARG_NONE, NULL, 'i', \
+          "Show the Cygwin Hippo!", NULL},
         { NULL, '\0', 0, NULL, 0, NULL, NULL }
     };
 
@@ -226,6 +231,15 @@
                 if (workDir)
                     free(workDir);
                 return(0);
+            case 'i':
+                cygStart(HIPPO_URL, NULL, NULL, NULL, SW_NORMAL);
+                poptFreeContext(optCon);
+                free(program_name);
+                if (action)
+                    free(action);
+                if (workDir)
+                    free(workDir);
+                return(0);
 
             /* Action options */
             case 'a':
@@ -471,6 +485,7 @@
 {
     fprintf(f, "\n");
     fprintf(f, "With thanks to MSDN: <%s>\n\n", MSDN_URL);
+    fprintf(f, "No hippopotami were hurt in the production of this software.\n\n");
     fprintf(f, "Please report any bugs to <cygwin(at)cygwin.com>.\n");
 }
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]