Bug 419224 - okular impossible to print
Summary: okular impossible to print
Status: RESOLVED NOT A BUG
Alias: None
Product: okular
Classification: Applications
Component: printing (show other bugs)
Version: 1.9.3
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Okular developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 12:31 UTC by charles.caclin
Modified: 2020-03-30 17:12 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description charles.caclin 2020-03-25 12:31:52 UTC
SUMMARY


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: 
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
impossible to print
Impossible d'imprimer le document. L'erreur détaillée est « Impossible de trouver un exécutable adapté à l'impression. Veuillez vérifier que le binaire CUPS « lpr » est disponible ». Veuillez rapporter ce bogue à « bugs.kde.org »
Comment 1 Albert Astals Cid 2020-03-25 22:59:59 UTC
Since i guess you ignore things when programs tell you, i will tell you again

"Veuillez vérifier que le binaire CUPS « lpr » est disponible"
Comment 2 charles.caclin 2020-03-25 23:30:15 UTC
Bonjour cher Monsieur,
Vous supposez mal. Oui, j'avais bien lu, j'avais installé le paquet lpr 
et j'ai quand même toujours le même message.
Cordialement,
Charles

Le 25/03/2020 à 23:59, Albert Astals Cid a écrit :
> Since i guess you ignore things when programs tell you, i will tell you again
Comment 3 Albert Astals Cid 2020-03-26 22:16:52 UTC
You need to write in english, otherwise we can't help you here.
Comment 4 charles.caclin 2020-03-27 06:31:29 UTC
Good morning,
I try to write in English.
Sorry, but you are wrong. Yes, before your message, I had read that 
correctly, I installed the lpr package and I still have the same message.
Regards,
Charles

Le 25/03/2020 à 23:59, Albert Astals Cid a écrit :
> https://bugs.kde.org/show_bug.cgi?id=419224
>
> Albert Astals Cid <aacid@kde.org> changed:
>
>             What    |Removed                     |Added
> ----------------------------------------------------------------------------
>                   CC|                            |aacid@kde.org
>               Status|REPORTED                    |NEEDSINFO
>           Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Albert Astals Cid <aacid@kde.org> ---
> Since i guess you ignore things when programs tell you, i will tell you again
>
> "Veuillez vérifier que le binaire CUPS « lpr » est disponible"
>
Comment 5 Albert Astals Cid 2020-03-27 21:46:14 UTC
Please open a terminal and start okular like this

QT_LOGGING_RULES="*.debug=false;org.kde.okular.core=true;" okular

Try printing and attach the whole debug that okular created on the terminal here.
Comment 6 charles.caclin 2020-03-27 22:03:13 UTC
chadoc@iSandy ~ $ QT_LOGGING_RULES \u003d '*. Debug \u003d false; 
org.kde.okular.core \u003d true;' okular
QT_LOGGING_RULES : commande introuvable

I can't open Okular


Le 27/03/2020 à 22:46, Albert Astals Cid a écrit :
> https://bugs.kde.org/show_bug.cgi?id=419224
>
> --- Comment #5 from Albert Astals Cid <aacid@kde.org> ---
> Please open a terminal and start okular like this
>
> QT_LOGGING_RULES="*.debug=false;org.kde.okular.core=true;" okular
>
> Try printing and attach the whole debug that okular created on the terminal
> here.
>
Comment 7 charles.caclin 2020-03-27 22:08:27 UTC
The previous message is wrong. I try again :

chadoc@iSandy ~ $ 
QT_LOGGING_RULES="*.debug=false;org.kde.okular.core=true;" okular

La commande « okular » n'a pas été trouvée, mais peut être installée avec :

sudo apt install okular


Le 27/03/2020 à 22:46, Albert Astals Cid a écrit :
> https://bugs.kde.org/show_bug.cgi?id=419224
>
> --- Comment #5 from Albert Astals Cid <aacid@kde.org> ---
> Please open a terminal and start okular like this
>
> QT_LOGGING_RULES="*.debug=false;org.kde.okular.core=true;" okular
>
> Try printing and attach the whole debug that okular created on the terminal
> here.
>
Comment 8 Albert Astals Cid 2020-03-27 22:21:37 UTC
So you don't have okular installed?

Have you installed it from a snap maybe?
Comment 9 charles.caclin 2020-03-28 07:50:24 UTC
And yet it works. Everything works except printing.
I installed Okular (Flathub) through the software manager, on Linux Mint 
19.3 Mate.
After, I have installed lpr and remove cups-bsd

Package : Org.kde.okular
Version : 1.9.3
Repository : Flathub

Le 27/03/2020 à 23:21, Albert Astals Cid a écrit :
> https://bugs.kde.org/show_bug.cgi?id=419224
>
> --- Comment #8 from Albert Astals Cid <aacid@kde.org> ---
> So you don't have okular installed?
>
> Have you installed it from a snap maybe?
>
Comment 10 Albert Astals Cid 2020-03-28 15:13:55 UTC
Jan, what was the trick to get printing working with the flathub package?
Comment 11 Jan Grulich 2020-03-30 04:38:26 UTC
The trick is usage of "--socket=cups". It only works with Flatpak 1.6.0 and newer. Older Flatpak releases don't support CUPS socket.
Comment 12 charles.caclin 2020-03-30 07:09:57 UTC
Thank you. OK, I uninstall Okular Flatpak and reinstall with the 
software manager (apt).
It is an old version (4:17.12.3_Oubuntu1) but it works (It feels like 
we're back on Windows XP).
Too bad, but thanks anyway Albert and Jan.
Charles

Le 30/03/2020 à 06:38, Jan Grulich a écrit :
> The trick is usage of "--socket=cups". It only works with Flatpak 1.6.0 and
> newer. Older Flatpak releases don't support CUPS socket.
>
> --