![]() Registered Member ![]()
|
Greetings,
First off, I'm a KDE newbie, so apologies in advance if this is a stupid question, but I did lots of searching and haven't been able to find an answer. I'm using KDE Plasma on OpenSUSE; my problem is apparently with Dolphin, though for all I know that may just be a symptom of a deeper problem. Everything was working great, until -- for no apparent reason -- Dolphin suddenly stopped opening the associated applications on left-clicking a file. So, for example, I had *.rb files set to open with KWrite; now, left clicking does nothing. Right clicking brings up a menu with "Open With KWrite" and "Open With..." options. I tried resetting the file associations (choosing "Open With...", selecting KWrite, then checking "Remember application association for files of this type") but it has no effect. Any ideas? Thanks! Frederick |
![]() Manager ![]()
|
if you left click on a folder in Dolphin does it open?
left click does nothing for all file types? could you run in Konsole kbuildsycoca4 --noincremental, then restart Dolphin do you have another user account you can test this? |
![]() Registered Member ![]()
|
Thanks for the reply!
Great question -- folders work, and some file types (ex., xml) also work on left click.
Should I only run that command if it's in a different account (i.e., is there any danger of messing up my setup if I run that command)? Just let me know and I'll either get my hands on a new account or run it as-is. Thanks again. |
![]() Manager ![]()
|
kbuildsycoca4 rebuilds the system config cache which sometimes fixes problems associated with a corrupt cache, you run it as you and it is non-destructive
Testing your issue as a new/different user will help determine if it is something wrong in your KDE configuration or a system wide problem Does the left click only work on file types you did not change the association for? Try renaming ~/.kde4/share/mimelnk then restarting Dolphin, maybe even restarting KDE (never hurts) |
![]() Registered Member ![]()
|
Ran it then restarted the whole system, no luck unfortunately. See output, below.
Roger. I'll get a new account setup.
No, it works for HTML, which I changed from Konqueror to KWrite. Actually, it looks like the ONLY problem is with .rb files. Any other time that file associations are defined, single-click works fine.
Actually, it looks like I don't have this file at all:
Thanks again! ![]() P.S.: Here's the output from kbuildsycoca4:
|
![]() Manager ![]()
|
so if .rb files are the only problem then we should focus on that
what does systemsettings -> file associations -> applications -> x-ruby look like? on the bottom right should a list of possible applications with, in your case, Kwrite as the first. I'm guessing this is where the problem is. note: the first in the list is the app that will be used when left clicking in Dolphin left click kwrite -> edit -> application -> command, it should be kwrite %U also confirm right clicking a .rb file and opening with Kwrite works note: if you use Kate you will get tabs for your documents ps - when posting large amount of listings you should post on http://pastebin.com and then provide the link to the listing |
![]() Registered Member ![]()
|
Sounds good; didn't realize that it was only affecting .rb until just then.
Kwrite is the first (and only) item in the list.
That's exactly what's there.
Yep, right click / Kwrite and right click / open with... / kwrite also works.
Thanks for the tip -- I'll check it out.
Sorry; duly noted. ![]() |
![]() Manager ![]()
|
no more ideas, sorry
how about trying in Dolphin selecting a .rb file, opening it with Kate and clicking remember - does that now work? Obviously Kate will need to be installed, not sure it's included in the default install |
![]() Registered Member ![]()
|
Kate isn't installed but I'll give it a shot once I do. No worries if it doesn't work out -- appreciate the help regardless. |
![]() Manager ![]()
|
another thought (or 2)
if you open systemsettings as described above and then remove the Kwrite entry for x-ruby and then add a new Kwrite entry if you open file associations in systemsettings and you use the search field and search for .rb is only application x-ruby listed? |
![]() Registered Member ![]()
|
I just stumbled into the answer.
I started getting into the habit of right clicking to open a ruby file, but I accidentally single-clicked one... and it worked. I was stunned, so I tried it on another file... and it didn't work. Then I looked at the permissions... It turns out that if a ruby file is executable, single clicking it will not open it with the associated application. (I suppose it's silently trying to run the file instead.) This doesn't happen for other file types, like txt, xml, etc.; even if they're executable, they will still get opened with the designated program. So, changing the permissions on the files fixed the problem! I suppose this would extend to other types of files like php, pl, etc. Not sure if this counts as a bug, whether I should report it somewhere... Thoughts? Bizarre bug -- thanks again for the help in debugging this! Not sure what the etiquette is for answering questions, etc., so although it didn't directly answer the question your tips helped me debug it so I'll credit you with the answer and + your Karma. ![]() |
![]() Administrator ![]()
|
This could have been caused by a Shebang line that the file had.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Moderator ![]()
|
Dolphin does indeed try to run an executable script if it is clicked. It has been suggested to ask the user what to do in such a situation, just like Nautilus:
https://bugs.kde.org/show_bug.cgi?id=172038 |
![]() Registered Member ![]()
|
Perhaps, but in this case, there were no shebangs -- I was working on a rails app. Someone evil had recursively changed the permissions to make everything executable, and after pulling the files I started experiencing these issues. |
![]() Registered Member ![]()
|
This is a good idea. Thanks for the link. I'll upvote it when time avails itself. |
Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]