Bug 349531 - dolphin 15.04.0 tries to start gwenview but it really doesn't
Summary: dolphin 15.04.0 tries to start gwenview but it really doesn't
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: unspecified
Platform: Kubuntu Linux
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-23 13:12 UTC by Luca Olivetti
Modified: 2018-04-24 22:04 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 Luca Olivetti 2015-06-23 13:12:49 UTC
When I double click on an image file in dolphin, I see the animation on the taskbar like gwenview is starting but it actually doesn't start and the animation disappears after a few seconds.
According to the help, dolphin is version 15.04.0 using kde development platform 4.14.8

Reproducible: Always

Steps to Reproduce:
1.double click on an image file (e.g. a png file)
2.wait


Actual Results:  
On the taskbar appears a gwenview animation, after a few seconds it disappears and gwenview doesn't show.

Expected Results:  
gwenview should show the image

launching gwenview from the k menu I can use it to see the image
Comment 1 Luca Olivetti 2015-06-23 13:14:31 UTC
this behaviour started at the same time I experienced bug #343673 (which should be fixed but I still see it).
Comment 2 Luca Olivetti 2015-06-24 13:56:55 UTC
It also happens with sound files and amarok, video files and dragon player.
Comment 3 Frank Reininghaus 2015-06-24 19:42:58 UTC
Thanks for the bug report, but I cannot reproduce the problem. Since we use KRun from KIO to open files, the problem might be in KIO or some other library that KIO uses to run applications.
Comment 4 Luca Olivetti 2015-06-24 20:32:31 UTC
Any pointer on how can I help to debug the problem?
I tried issuing

kioclient exec image.png

and effectively it does just the same(i.e. the gwenview animation on the taskbar the nothing happens).
I see several warnings like this one (all referring to ms fotmats):

kioclient(9472) KMimeTypeRepository::parents: "/usr/share/mime/subclasses"  refers to unknown mimetype  "application/vnd.ms-excel.sheet.binary.macroEnabled.12" 

but I don't thing they are relevant.
Comment 5 Luca Olivetti 2015-08-08 17:55:15 UTC
I tried with a new user and dolphin works as expected.
Which file(s) do I have to nuke (under .config or under .kde) to restore functionality for my normal user?  (as I don't want to lose all other customizations).
I tried to delete .kde/share/config/kio* and .kde/share/config/dolphinrc with no result.
Comment 6 Luca Olivetti 2015-08-08 18:11:36 UTC
Nuking the whole .kde directory "solved" the problem (not that I consider it a good solution, but, oh, well, that's how things are).
I kept a copy the "broken" .kde directory in case somebody is willing to debug this issue.
Comment 7 Luca Olivetti 2015-08-08 20:23:34 UTC
After the above I discovered that I lost all the passwords in kdewallet, so I restored from the backup

.kde/share/apps/kwallet/kdewallet.kwl
.kde/share/apps/kwallet/kdewallet.salt
.kde/share/config/kwalletmanagerrc
.kde/share/config/kwalletrc

that recovered the passwords BUT dolphin stopped opening text files, images, etc., just like in my original bug report.
Removing those files makes dolphin behave correctly again.
Comment 8 Luca Olivetti 2015-08-08 21:01:17 UTC
There was something fishy with my wallet: 
usually when I start the session and some program requires the wallet, I had to introduce my password to open it.
I took care to eliminate all such programs at startup in order not to open the wallet, BUT even if I introduced no password, kwalletmanager showed it as opened (?).
Then, if I closed and tried to reopen it, it wouldn't accept my password (??).
I changed the password and now everything seems to be working fine (i.e. dolphin can open files).
Very strange.
Comment 9 David Faure 2016-03-05 19:08:02 UTC
I see no relation between kwallet and file associations.
File associations (which file is opened in which app) is NOT configured in ~/.kde, BTW, but in ~/.config/mimeapps.list and/or ~/.local/share/applications/mimeapps.list

Debugging why an app doesn't start is best done by looking at the logs in ~/.xsession-errors*

Sorry for the delay though, I guess this doesn't apply anymore :(
Comment 10 Luca Olivetti 2016-03-05 19:44:10 UTC
Well, there shouldn't be but there is.
Comment 11 David Faure 2016-03-06 14:57:15 UTC
OK, I expected more details in your feedback....

Check the mimeapps.list files I mentionned for what they have to say about image/png.
Check ~/.xsession-errors* for error messages when gwenview should start but doesn't.
Comment 12 Luca Olivetti 2016-03-06 19:38:47 UTC
I could have provided more detail when I opened the bug, now i cannot since it works and I didn't keep the broken wallet files.
What I can do is check  ~/.config/mimeapps.list and/or ~/.local/share/applications/mimeapps.list
The latter is empty and the former only references firefox/thunderbird:

[Default Applications]
x-scheme-handler/http=firefox.desktop
x-scheme-handler/https=firefox.desktop
x-scheme-handler/ftp=firefox.desktop
x-scheme-handler/chrome=firefox.desktop
text/html=firefox.desktop
application/x-extension-htm=firefox.desktop
application/x-extension-html=firefox.desktop
application/x-extension-shtml=firefox.desktop
application/xhtml+xml=firefox.desktop
application/x-extension-xhtml=firefox.desktop
application/x-extension-xht=firefox.desktop
x-scheme-handler/mailto=thunderbird.desktop
message/rfc822=thunderbird.desktop
application/x-extension-eml=thunderbird.desktop

[Added Associations]
x-scheme-handler/http=firefox.desktop;
x-scheme-handler/https=firefox.desktop;
x-scheme-handler/ftp=firefox.desktop;
x-scheme-handler/chrome=firefox.desktop;
text/html=firefox.desktop;
application/x-extension-htm=firefox.desktop;
application/x-extension-html=firefox.desktop;
application/x-extension-shtml=firefox.desktop;
application/xhtml+xml=firefox.desktop;
application/x-extension-xhtml=firefox.desktop;
application/x-extension-xht=firefox.desktop;
x-scheme-handler/mailto=thunderbird.desktop;userapp-Thunderbird-KMCP0X.desktop;userapp-Thunderbird-7UYB0X.desktop;
message/rfc822=thunderbird.desktop;userapp-Thunderbird-KMCP0X.desktop;userapp-Thunderbird-7UYB0X.desktop;
application/x-extension-eml=thunderbird.desktop;userapp-Thunderbird-KMCP0X.desktop;userapp-Thunderbird-7UYB0X.desktop;
Comment 13 Nate Graham 2018-04-24 22:04:43 UTC
Hmm, let's close this and re-open if it ever happens again.