FS#43735 - [gwenview] cannot open folders (klauncher said: Unknown protocol 'file'.)

Attached to Project: Arch Linux
Opened by Michal Svoboda (pht) - Sunday, 08 February 2015, 08:35 GMT
Last edited by Felix Yan (felixonmars) - Saturday, 21 February 2015, 15:25 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

After latest system upgrade, i cannot use gwenview to open folders (opening individual images works).
I get a pop up message that says:

Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'file'.
.

I tried reinstalling, I tried new empty user, error still persists. I googled around some more and one article mentions it seems to be weird error that may be caused by broken kdelibs.

$ gwenview .
Could not find drkonqi at /usr/lib/drkonqi
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
kf5.kservice.sycoca: Trying to open ksycoca from "/home/user/.cache/ksycoca5"
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Shortcut for action "rate_0" "Zero" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_1" "?" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_2" "??" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_3" "???" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_4" "????" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_5" "?????" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
"
"Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
."
"Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
."
couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'file'.


$ pacman -Qi gwenview
Name : gwenview
Version : 14.12.2-1
Description : A fast and easy to use image viewer for KDE
Architecture : x86_64
URL : http://kde.org/applications/graphics/gwenview/
Licenses : GPL LGPL FDL
Groups : kde kdegraphics
Provides : None
Depends On : kded kactivities-frameworks baloo-frameworks
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : kdegraphics-gwenview
Replaces : kdegraphics-gwenview
Installed Size : 4.60 MiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Wed Feb 4 08:36:03 2015
Install Date : Sun Feb 8 09:20:50 2015
Install Reason : Explicitly installed
Install Script : Yes
Validated By : Signature
This task depends upon

Closed by  Felix Yan (felixonmars)
Saturday, 21 February 2015, 15:25 GMT
Reason for closing:  Not a bug
Additional comments about closing:  kde3 remainings
Comment by Felix Yan (felixonmars) - Sunday, 08 February 2015, 09:05 GMT
Cannot reproduce here. Maybe missing some dependencies?
Comment by Michal Svoboda (pht) - Sunday, 08 February 2015, 09:09 GMT
Hi, I don't know which dependencies? Like I said, I've tried stuff like pacman -Qeq|pacman -S-
Comment by Michal Svoboda (pht) - Sunday, 08 February 2015, 09:18 GMT
Note that same computer has also  FS#43485  which I was able to cure using the procedure in the bug.
Comment by Tomasz Przybył (FadeMind) - Sunday, 08 February 2015, 11:20 GMT
@Michal Svoboda (pht)
Rebuild database:

kbuildsycoca5 --noincremental

and install drkonqi:

sudo pacman -S drkonqi


Comment by Michal Svoboda (pht) - Sunday, 08 February 2015, 14:32 GMT
drkonqi is only a crash handler - it was never required to run gwenview - nevertheless i installed it
the sycoca rebuild unfortunately does not help

$ rm -f .cache/ksycoca5

$ kbuildsycoca5 --noincremental
kbuildsycoca5 running...
Recreating ksycoca file ("/home/user/.cache/ksycoca5", version 300)
"Directory" and "ggz.directory" requires combining!
The desktop entry file "/opt/kde/share/applications/kde/kresources.desktop" has Type= "Application" but also has a X-KDE-Library key. This works for now, but makes user-preference handling difficult, so support for this might be removed at some point. Consider splitting it into two desktop files.
Saving
Emitting notifyDatabaseChanged ("services", "servicetypes", "xdgdata-mime", "apps")

$ gwenview .
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
kf5.kservice.sycoca: Trying to open ksycoca from "/home/user/.cache/ksycoca5"
KServiceTypeTrader: serviceType "QImageIOPlugins" not found
Invalid pixmap specified.
QTimeLine::setDuration: cannot set duration <= 0
Shortcut for action "rate_0" "Zero" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_1" "?" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_2" "??" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_3" "???" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_4" "????" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
Shortcut for action "rate_5" "?????" set with QAction::setShortcut()! Use KActionCollection::setDefaultShortcut(s) instead.
couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
"
"Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
."
"Could not start process Unable to create io-slave:
klauncher said: Unknown protocol 'trash'.
."
couldn't create slave: "Unable to create io-slave:
klauncher said: Unknown protocol 'file'.

I also tried creating fresh new user, but that user also has the issue. So it must be global system problem. How can I diagnose it?
Comment by Felix Yan (felixonmars) - Monday, 09 February 2015, 08:09 GMT
Maybe try to reinstall all kf5 packages? I don't know :(
Comment by AK (Andreaskem) - Monday, 09 February 2015, 13:04 GMT
Do you have kio and/or kio-extras installed?

http://comments.gmane.org/gmane.comp.kde.devel.frameworks/18414
Comment by Michal Svoboda (pht) - Sunday, 15 February 2015, 17:54 GMT
I have tried:
- reinstall kf5
- uninstall / install kio
- install kio-extras

Did not help :-/
I'd say it's not about what's not installed but maybe about what's extra (dangling files, ...)

I would appreciate some steps to diagnose this issue ...
Comment by Antonio Rojas (arojas) - Monday, 16 February 2015, 08:09 GMT
This line

The desktop entry file "/opt/kde/share/applications/kde/kresources.desktop" has Type= "Application" but also has a X-KDE-Library key. This works for now, but makes user-preference handling difficult, so support for this might be removed at some point.

looks suspicious to me. Do you have something installed in /opt/kde?
Comment by Michal Svoboda (pht) - Saturday, 21 February 2015, 15:18 GMT
Solved. Removing /opt/kde did not help but pointed in the right direction. I found that I also have /etc/profile.d/kde3.sh that would set XDG_DATA_DIRS=/opt/kde
Removing that, and executing the post_install procedure from kdebase-runtime fixed the problem.
I suppose these files were some remains of kde3 that has been incorrectly upgraded to kde4 in some distant past.

Loading...