If I print a ASCII file, the print dialog should offer the last-choosed printer or the default printer (lpstat -a) in CUPS mode.
Should mean: ... should chooose by default ...
it already chooses the default printer BTW it works fine here
Well, it simple does *not* choose the default printer here. With default printer I mean "lpstat -d". Does it still work if you change your default printer in CUPS?
it should, in fact i fill the list and then i put the GetCupsDefault() in the gtkentry
Are we talking about 4.1.99.1? I cannot find this in the code. In fact, printing_system_get_default_printer() is implemented correctly, but where is this called in the dialog code?
yes we are talking about RC1 it doesn't use this function, it does it directly : cups.c: /* select default printer */ printer = printer_lookup_byname (printers, cupsGetDefault ()); if (printer) gtk_entry_set_text (GTK_ENTRY (GTK_COMBO (dialog->customization)->entry), printer->alias);
Your're right. I changed the defalt printer in the CUPS setting now and it works. :) But I really don't know why "lpstat -d" showed the wrong queue. Thanks for help and sorry.