This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Dolphin: Left Click Doesn't Open Associated Program anymore

Tags: None
(comma "," separated)
reilly
Registered Member
Posts
8
Karma
0
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
User avatar
google01103
Manager
Posts
6668
Karma
25
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?


OpenSuse Leap 42.1 x64, Plasma 5.x

reilly
Registered Member
Posts
8
Karma
0
Thanks for the reply!

google01103 wrote:if you left click on a folder in Dolphin does it open?
left click does nothing for all file types?


Great question -- folders work, and some file types (ex., xml) also work on left click.

google01103 wrote:could you run in Konsole kbuildsycoca4 --noincremental, then restart Dolphin

do you have another user account you can test this?


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.
User avatar
google01103
Manager
Posts
6668
Karma
25
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)


OpenSuse Leap 42.1 x64, Plasma 5.x

reilly
Registered Member
Posts
8
Karma
0
google01103 wrote: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


Ran it then restarted the whole system, no luck unfortunately. See output, below.

google01103 wrote: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


Roger. I'll get a new account setup.


google01103 wrote:Does the left click only work on file types you did not change the association for?


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.

google01103 wrote:Try renaming ~/.kde4/share/mimelnk then restarting Dolphin, maybe even restarting KDE (never hurts)


Actually, it looks like I don't have this file at all:
Code: Select all
> ls ~/.kde4/share/
apps  config  kde4



Thanks again! :)


P.S.: Here's the output from kbuildsycoca4:


Code: Select all
> kbuildsycoca4 --noincremental
kbuildsycoca4 running...
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/opt/kde3/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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/keyboard.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/irda.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/printer.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/joystick.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/add-on.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/iscsi-client.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/security.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/sw_source.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_add_profile.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/bootloader.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/restore.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/lan.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.                     
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/isdn.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.                     
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/vendor.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.                   
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/runlevel.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.                 
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/modem.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.                   
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_Reports.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.               
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/samba-client.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.             
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/mail.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/sysconfig.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/online_update.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/inetd.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/hwinfo.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/backup.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/ldap.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/ldap_browser.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/samba-server.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_logprof.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/nfs.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/sound.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/sudo.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_delete_profile.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/webpin.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/yast-language.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/security.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/software.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/system.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file  "/usr/share/applications/YaST2/groups/apparmor.desktop"  has Type= "Application"  but no Exec line

kbuildsycoca4(5372) KBuildServiceFactory::createEntry: Invalid Service :  "/usr/share/applications/YaST2/groups/apparmor.desktop"
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/support.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/network_devices.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/hardware.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/network_services.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/misc.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/groups/high_availability.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/host.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/remote.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/firewall.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_edit_profile.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_control_panel.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/mouse.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/dsl.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/timezone.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/kerberos.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/nis.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/system_settings.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/users.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/checkmedia.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/tv.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/ntp-client.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/scanner.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/sw_single.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/proxy.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.
kbuildsycoca4(5372)/kdecore (services) KServicePrivate::init: The desktop entry file "/usr/share/applications/YaST2/SD_genprof.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.
kbuildsycoca4(5372) parseLayoutNode: The menu spec file contains a Layout or DefaultLayout tag without the mandatory Merge tag inside. Please fix your file.
User avatar
google01103
Manager
Posts
6668
Karma
25
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


OpenSuse Leap 42.1 x64, Plasma 5.x

reilly
Registered Member
Posts
8
Karma
0
google01103 wrote:so if .rb files are the only problem then we should focus on that


Sounds good; didn't realize that it was only affecting .rb until just then.

google01103 wrote: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


Kwrite is the first (and only) item in the list.

google01103 wrote:left click kwrite -> edit -> application -> command, it should be kwrite %U


That's exactly what's there.


google01103 wrote:also confirm right clicking a .rb file and opening with Kwrite works


Yep, right click / Kwrite and right click / open with... / kwrite also works.

google01103 wrote:note: if you use Kate you will get tabs for your documents


Thanks for the tip -- I'll check it out.

google01103 wrote:ps - when posting large amount of listings you should post on http://pastebin.com and then provide the link to the listing


Sorry; duly noted. :<
User avatar
google01103
Manager
Posts
6668
Karma
25
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


OpenSuse Leap 42.1 x64, Plasma 5.x

reilly
Registered Member
Posts
8
Karma
0
google01103 wrote: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


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.
User avatar
google01103
Manager
Posts
6668
Karma
25
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?


OpenSuse Leap 42.1 x64, Plasma 5.x

reilly
Registered Member
Posts
8
Karma
0
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. :)
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
This could have been caused by a Shebang line that the file had.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
freininghaus
Moderator
Posts
224
Karma
1
OS
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
reilly
Registered Member
Posts
8
Karma
0
bcooksley wrote:This could have been caused by a Shebang line that the file had.


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.
reilly
Registered Member
Posts
8
Karma
0
freininghaus wrote: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


This is a good idea. Thanks for the link. I'll upvote it when time avails itself.


Bookmarks



Who is online

Registered users: bancha, Bing [Bot], daret, Evergrowing, Google [Bot], lockheed, mesutakcan, sandyvee, Sogou [Bot]