Bug 349184 - Unable to switch back to internal editor after previous change to another application
Summary: Unable to switch back to internal editor after previous change to another app...
Status: RESOLVED FIXED
Alias: None
Product: krusader
Classification: Applications
Component: krviewer (other bugs)
Version First Reported In: 2.4.0-beta3 "Single Step"
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Krusader Bugs Distribution List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-15 12:41 UTC by Jan Pavlicek
Modified: 2018-05-06 00:15 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jan Pavlicek 2015-06-15 12:41:39 UTC
After change of default "internal editor" in "General -> Viewer/Editor -> Editor" to some external editor (in my case "/bin/geany"), there is no way to get the Internal editor back. After typing "internal editor" into box (tried with and without apostrophes), Krusader will automatically prepend the string with "/" on save and gives "Cannot open /internal editor" error on F4.

Reproducible: Always

Steps to Reproduce:
1. Set editor to some external editor with full path (e.g. /bin/kate) 
2. Save settings
3. Try to set editor back to internal one by typing "internal editor" into the Editor input

Actual Results:  
Krusader displays "cannot find /internal editor" error message on pressign F4

Expected Results:  
Krusader should open the file in internal editor when pressing F4

Using ArchLinux with Plasma 5. I believe that it also is not possible to enter any value without a absolute path (the "/" in the start). Simly "kate" would not work (cannot find /kate), but "/bin/kate" would work. This may be somewhat connected to the internal editor problem.
Comment 1 Davide Gianforte 2015-06-15 15:42:24 UTC
Leave the config box empty to revert to interrnal editor.
Comment 2 Jan Pavlicek 2015-06-16 10:02:04 UTC
(In reply to Davide Gianforte from comment #1)
> Leave the config box empty to revert to interrnal editor.

Thanks for the quick response, but unfortunately, that does not work either. Krusader just leaves me with a message 'Cannot open ""'.
Comment 3 Davide Gianforte 2015-06-16 12:19:58 UTC
I can't reproduce your problem (checked both with 2.4.0b3 and the future kde5); what is your kde version?

can you check the config file? it's located in ~/.kde/share/config/krusaderrc (kde4) or ~/.config/krusaderrc (kde5)

there is a [General] section with the "Editor=" parameter; if it's empty, krusader uses the internal editor, otherwise the one specified here; remember to close all krusader instances before modifying this file; what is the value of Editor when you empty the box in Konfigurator? (it should be no-value, but there's a strange behaviour)
Comment 4 Jan Pavlicek 2015-06-16 13:55:51 UTC
First, the versions: Krusader 2.4.0-beta3 "Single Step" Using KDE Development Platform 4.14.9, plasma-desktop version is 5.3.1-2. 

I do have a ~/.config/krusaderrc file, but it is not the one being loaded (I was recently testing the developement version for Qt5, so maybe this file is leftover from this version). The one loaded is in ~/.kde4/share/config/krusaderrc and the parameter "Editor" corresponds with whatever is in the Konfigurator - both ways. It will not append the slash to the beginning of the string if I edit the rc file manually, but if I try to input "internal editor", Krusader still complains about "not found", even without the slash. 

(I apologize for my bad English, it is not my first language)

Thank you and have a nice day, J
Comment 5 Radim Hopp 2015-11-23 10:40:17 UTC
I can confirm, that this bug is still happening. My box:
Krusader version 2.4.0-beta3
KDE Platform Version 4.14.14 (This is in About KDE box in Krusader. My Environment in otherwise Plasma 5.4.3)
Comment 6 Martin Kostolný 2015-12-02 08:18:51 UTC
I have the exact same problem on the same platform as Radim Hopp (KDE4 Krusader running within Plasma 5.4.3, KF 5.16 etc.). I also have Qt 5.5.1 installed.

There is another problem (probably related): Inside Krusader go to some folder (e.g. /home/user/Downloads) then open settings, set "internal editor" in mentioned settings and apply, close settings. Open settings again and you can see that instead of "internal editor" there is "/home/user/Downloads/internal editor" set.

Workaround for me was to change Editor property under [General] section inside ~/.kde4/share/config/krusaderrc file like this:
Editor=internal editor