GNOME Bugzilla – Bug 301534
gtk_init() remove the dash "-" from the application argument.
Last modified: 2005-05-06 19:46:23 UTC
Please describe the problem: Steps to reproduce: Compile the following code via: gcc -o foo foo.c `pkg-config gtk+-2.0 --cflags --libs` #include <gtk/gtk.h> int main(int argc, char *argv[]) { printf("%i %s %s\n", argc, argv[0], argv[1]); gtk_init(&argc, &argv); printf("%i %s %s\n", argc, argv[0], argv[1]); } $ ./foo - 2 ./foo - 1 ./foo (null) ./foo foo 2 ./foo foo 2 ./foo foo Actual results: Expected results: Does this happen every time? Other information:
Looks like a duplicate of bug 168008 and bug 303166.
*** This bug has been marked as a duplicate of 168008 ***