![]() Registered Member ![]()
|
hi there, here is my problem...
i'm using kde4 and kate to edit php files, but everytime i open a new file from dolphin it opens in a new kate window. i remember kde 3.5 opens all files in the same window by default. i found this in the kate faq http://kate-editor.org/faq/general/is_it_possible_to_open_all_files_in_the_same_kate_window , but it refers to kcontrol on kde 3.5. kcontrol don't exist in kde4 unless you have installed kde 3.5 and kcontrol. someone knows some way to do it on kde4? thanks.. |
![]() KDE Developer ![]()
|
I just drag and drop my files into Kate and it opens in the same window.
|
![]() Administrator ![]()
|
It's in System Settings, Advanced tab -> File Associations (at least in trunk).
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
nice, but still we have a problem... when i tried to edit the command "kate %U" by "kate -u %U" (-u as i undestand it opens new files in the same window) it says: KDEInit could not launch '/usr/bin/kate'. and nothing happens XD... still trying...
this seems to be the only way at this moment. |
![]() Administrator ![]()
|
Which distro do you use?
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
|
![]() Administrator ![]()
|
Hm, seems to be a Kubuntu issue. Maybe you can try to edit the desktop file directly (I think it's /usr/share/applications/kde4/kate.desktop) and replace
with
You might have to restart the system. If you still get the KDEInit error, please post the line that starts with "X-DBUS-StartupType=" (in the desktop file) here.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() KDE Developer ![]()
|
It would be an upstream bug then. The .desktop shipped with kdesdk 4.1.80 uses:
|
![]() Registered Member ![]()
|
it looks like a good idea... i'll check it...
it's strange, but after "KDEInit could not launch '/usr/bin/kate'" message, it really works... it opens the new file in the same window... still working... i'll tell you if i have good news |
![]() Administrator ![]()
|
JontheEchinda: I did a little search and found bugs such as this one: bug #184337.
For example, see Olivier's comment. Since I don't have this problem, I assumed that it was specific to Kubuntu. Sorry for jumping to conclusions.
Problem solved? Please click on "Accept this answer" below the post with the best answer to mark your topic as solved.
10 things you might want to do in KDE | Open menu with Super key | Mouse shortcuts |
![]() Registered Member ![]()
|
The same situation in OpenSuSE 11.1 with KDE4.2 release.
By default I get new Kate instance for every file opened from Dolphin. In case I set "Exec=kate -u %U" and "X-DBUS-StartupType=None" - it seems to work properly but mouse cursor stucks in busy state like "kate is loading". And after I close kate I can see kate process in memory. If I set "Exec=kate -u %U" and "X-DBUS-StartupType=Unique" for every next file opened except the first one I get an error "KDEInit could not launch '/usr/bin/kate'". But in this case kate closing closes all kate processes properly.
OpenSuSE 11.1, KDE4.2 release, nVidia 8400m GS
|
![]() Administrator ![]()
|
This is probably because Kate is not a KUniqueApplication. You need to use the default X-DBUS-StartupType ( Application or something like that ) with your current "Exec" value.
KDE Sysadmin
[img]content/bcooksley_sig.png[/img] |
![]() Registered Member ![]()
|
Yesterday I found a workaround in Novell bugzilla: https://bugzilla.novell.com/show_bug.cgi?id=411537 https://bugzilla.novell.com/show_bug.cgi?id=420150 So, steps I made: In KDE System parameters - File associations select filetype (for example) "text: x-c++src" then select application on right "Kate editor" and edit its parameters: 1) Application command: kate -u %u (note here I use small "u", not "U" - it's the key) 2) In additional parameters switch-off startup notify and DBUS registration Then it's done. After this step new "kate.desktop" file appears in ~/.local/share/applications/kde4 And it looks like:
But the original one was much more verbose:
OpenSuSE 11.1, KDE4.2 release, nVidia 8400m GS
|
![]() Registered Member ![]()
|
I tried this steps but its not opening on same window. I use kde 4.3
jithin1987, proud to be a member of KDE forums since 2008-Oct.
|
Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]