Hello,
After a successful installation in fedora 43, I cannot print documents. The first zenity window (the one asking page_edge) won't open.
Error log from cups :
jeu. 06 nov. 2025 12:12:45 CET --- ---
jeu. 06 nov. 2025 12:12:45 CET --- Starting duplexer job
jeu. 06 nov. 2025 12:12:45 CET --- Script called by thibaut and runs as root with logname
jeu. 06 nov. 2025 12:12:45 CET --- page count: 5
jeu. 06 nov. 2025 12:12:45 CET --- jeu. 06 nov. 2025 12:12:45 CET --- Will Show user interface to get page_edge.
jeu. 06 nov. 2025 12:12:45 CET --- jeu. 06 nov. 2025 12:12:45 CET --- Running on display number
/usr/lib/cups/backend/duplex-print: ligne 105: sudo: commande introuvable
jeu. 06 nov. 2025 12:12:45 CET --- jeu. 06 nov. 2025 12:12:45 CET --- User interface has been shown. Zenity returned >> 127 << and button_clicked >> <<
jeu. 06 nov. 2025 12:12:45 CET --- jeu. 06 nov. 2025 12:12:45 CET --- An unexpected error occurred. Exit code: 127.
Error log from system :
[Job 447] /usr/lib/cups/backend/duplex-print: ligne 87: sudo: commande introuvable
I've tried to remove this 87 line :
(screen_width=$(sudo -u "$user" xdpyinfo -display "$DISPLAY" | awk '/dimensions:/ {print $2}' | cut -d'x' -f1))
, remove the following options --display and --width in the following zenity --question. But still an error for sudo command in sudo --user="$user" zenity --question (command not found).
Removing this sudo lead to this error :
[Job 451] (zenity:154307): Gtk-WARNING **: 12:30:24.851: Failed to open display
I've also tried to execute this code from another bash file :
button_clicked=$(sudo --user=thibaut zenity --question
--switch
--title=Title
--text="Which edge to choose for paper binding?\n\nFinding my work useful? Click here to buy me a coffee."
--icon-name="document-print"
--window-icon="/usr/share/manual_duplex_linux/printer.png"
--extra-button="Short_Edge"
--extra-button="Long_Edge"
--extra-button="Cancel")
And it works : the zenity window open, with the following warnings :
Warning: --window-icon is deprecated and will be removed in a future version of zenity; Treating as --icon.
Warning: --icon-name is deprecated and will be removed in a future version of zenity; Treating as --icon.
Hello,
After a successful installation in fedora 43, I cannot print documents. The first zenity window (the one asking page_edge) won't open.
Error log from cups :
Error log from system :
I've tried to remove this 87 line :
, remove the following options
--displayand--widthin the followingzenity --question. But still an error forsudocommand insudo --user="$user" zenity --question(command not found).Removing this
sudolead to this error :I've also tried to execute this code from another bash file :
And it works : the zenity window open, with the following warnings :