U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Library : Other (not classified elsewhere) » PrinterDlg changes defaultprinter on Linux
Re: PrinterDlg changes defaultprinter on Linux [message #47686 is a reply to message #47685] Tue, 07 March 2017 03:16 Go to previous message
Alboni is currently offline  Alboni
Messages: 216
Registered: January 2012
Location: Kajaani, Finland
Experienced Member
Ah, sorry it seems I didn't quote the original code.
It is
Vector<String> l = Split(System("lpoptions -l -d " + String(~printer)), '\n');

that seems to first list the options and then change the defaultprinter.
Not correct I think as you get the options of the previous printer.
If I change it like I wrote in the first message then it works correctly but still changes the default printer when used.
the -p works ok on the commandline but then the dialog doesn't return the correct printer as it seems to rely on changing the default printer.

[Updated on: Tue, 07 March 2017 03:21]

Report message to a moderator

 
Read Message
Read Message
Read Message
Previous Topic: IdeCalc -- ERROR: void.sin(): (0,15): 'sin' is not a lambda
Next Topic: automatic build set up does not start up
Goto Forum:
  


Current Time: Tue Sep 15 09:14:36 GMT+2 2026

Total time taken to generate the page: 0.00555 seconds