Bug 387855 - Okular does not open PDF files on GDrive
Summary: Okular does not open PDF files on GDrive
Status: RESOLVED NOT A BUG
Alias: None
Product: kio-gdrive
Classification: Frameworks and Libraries
Component: general (other bugs)
Version First Reported In: 1.2.0
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Elvis Angelaccio
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-12-13 01:24 UTC by Rubens de Souza Matos Júnior
Modified: 2018-01-05 08:09 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rubens de Souza Matos Júnior 2017-12-13 01:24:23 UTC
While trying to open PDF files on my drive I get this error message:

Could not open gdrive:/xx.xx@xx.xx.xx/05-cap03b.pdf?id=1_I-aOCrWnhw3Jy85qpGHwPPyFSj88qv6. Reason: Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'gdrive'.
.

(I omitted my e-mail with xx...)

I've installed kio-gdrive by downloading .deb from http://archive.neon.kde.org/dev/stable/pool/main/k/kio-gdrive/kio-gdrive_1.2.1+p16.04+git20171009.1516-0_amd64.deb

I've also installed the dependencies that were on Debian experimental, unstable, and testing repositories. I can connect to my Drive and open files with kate, gwenview, libreofffice, and even FoxitReader (other PDF viewer), but Okular does not work.
Comment 1 Elvis Angelaccio 2017-12-23 10:32:53 UTC
Please run 'kdeinit5' in Konsole and try again. Then copy-paste here the output of kdeinit5.
Comment 2 Rubens de Souza Matos Júnior 2017-12-27 20:36:20 UTC
The result was the same.

The output of kdeinit5 was:


rubens@vaio:~$ kdeinit5
kdeinit5: Shutting down running client.
kdeinit5: preparing to launch '/usr/lib/x86_64-linux-gnu/libexec/kf5/klauncher'
kdeinit5: Launched KLauncher, pid = 2444, result = 0
Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)
kdeinit5: opened connection to :0
rubens@vaio:~$ kdeinit5: Got EXT_EXEC '/usr/bin/okular' from launcher.
kdeinit5: preparing to launch '/usr/bin/okular'

(okular:2483): Gtk-WARNING **: Não foi possível localizar a ferramenta de temas no module_path: "adwaita",

(okular:2483): Gtk-WARNING **: Não foi possível localizar a ferramenta de temas no module_path: "adwaita",
okular(2483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2483)/kdecore (KConfigSkeleton) KCoreConfigSkeleton::writeConfig:
okular(2483): couldn't create slave: "Unable to create io-slave:
klauncher said: Protocolo desconhecido 'gdrive'.
" 
kdeinit5: PID 2483 terminated.
Comment 3 Elvis Angelaccio 2017-12-31 09:37:57 UTC
Looks like your okular is from KDE4. Is that correct?
Comment 4 Rubens de Souza Matos Júnior 2018-01-05 04:20:42 UTC
Yes. I had not noticed that until you said it. This is the version 0.26.1, which uses KDE 4.14.36 libraries. It is the default version in Debian stable/testing repositories.

I have just installed the version 1.2.3 from Debian unstable repository, which uses KDE 5.37 libraries, and the Google Drive files are opening successfully.

Thank you very much! I hope this helps to solve the issue for other people too.