Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Desktop
User Name
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.


  Search this Thread
Old 10-28-2008, 08:46 PM   #1
Registered: Feb 2008
Distribution: Kubuntu 19.10
Posts: 77

Rep: Reputation: 15
[SOLVED] Sorry - Could not find the program "kwrtie" (not kwrite)

Hi guys,

A few days ago I wanted to open a file, that had Kate as the default associated application, in Kwrite. So I chose "Open With..." I did a mistake and wrote "Kwrtie". It could not find the program of course, I think I did the mistake 2 or 3 times that day. Now whenever I want to open a program with Kwrite and I do use again "Open With..." and type in "Kwrite" correctly, not misspelled this time, KDE pops me the following error:

Sorry - KDesktop

Could not find the program 'kwrtie'
It seems KDE links "kwrite" to "kwrtie".

I have checked in KDE Configuration the file associations and everywhere I found Kwrite it's written correctly and points to the right binary. I have checked the "ALL" file association type and this one has no application listed.

So I cannot find where in KDE the code kept in memory "kwrtie"!

I am sure it is super easy to fix, but I just could not find where, neither could I found something on the web similar to this (what to search for is not easy as I do not know how to describe the problem in a few words).

Anyone has an idea?


Last edited by Frank64; 10-29-2008 at 09:04 PM.
Old 10-29-2008, 09:35 AM   #2
Registered: Feb 2008
Location: Rome, Italy
Distribution: OpenSuSE 11.x, vectorlinux, slax, Sabayon
Posts: 206
Blog Entries: 2

Rep: Reputation: 45
Try looking in the folder ~/.local/share/applications maybe you'll find there a wrong .desktop file and deleting it, then restarting kde, could be enough
Old 10-29-2008, 01:11 PM   #3
LQ 5k Club
Registered: May 2003
Location: London, UK
Distribution: Debian "Testing"
Posts: 6,117

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
My suggestion:
kcontrol in a terminal.
KDE Components -> File associations.
In "Find filename pattern" put the type of file you mistakenly associated with "kwrtie". Maybe txt ?
Click on it in the lower part of the window
You will see a list of applications associated with this filetype. "kwrtie" will be at the top of the list.
Select "kwrtie" and choose "Remove".
Make sure kwrite is now at the top of the list.
Click "Apply".
Should be all fixed now.
Old 10-29-2008, 05:26 PM   #4
Registered: Feb 2008
Distribution: Kubuntu 19.10
Posts: 77

Original Poster
Rep: Reputation: 15
Tried for .desktop and there is no kwrite or anything related. All looks fine.

The second verification, kcontrol, did that previously (this is why I posted, cuz I found weird having KWrite written correctly in kcontrol).

When I choose Open With... and Other, and type in KWRITE, it still links to "kwrtie". All txt files have kwrite associated correctly in kcontrol and it does open with kwrite if I choose Open With-Kwrite (it is listed in the drop down along with kate).

I can tell that performing an UPGRADE of my distro to a later version keeps that kwrite-kwrtie error. The upgrade from KDE3.5.7 to 3.5.10 does not override that mistake.

I will scan through all file types in kcontrol then. I checked 5-6 of them, but I'll see if I can find something on other types.

Last edited by Frank64; 10-29-2008 at 06:53 PM.
Old 10-29-2008, 08:50 PM   #5
Registered: Oct 2008
Posts: 31

Rep: Reputation: 15
How about this:

find ~ -exec grep -Hs kwrtie "{}" ";"

This will search your entire home directory for any file that contains the string "kwrtie" and will print out the name of the file. If you find one of these under the kde settings directories, maybe you can just manually change it from kwrtie to kwrite and fix the problem.

Seems like there should be an easier (more GUI?) way to fix it, but if nothing else works, maybe this will steamroller the problem into submission! :-)
Old 10-29-2008, 09:04 PM   #6
Registered: Feb 2008
Distribution: Kubuntu 19.10
Posts: 77

Original Poster
Rep: Reputation: 15
Found it!! At the same time you, plpl303, posted your msg, I was searching for the word, yes.

find / -type f -exec grep -H 'kwrtie' {} \;
And it did find a few!! I think it's worth posting, in case someone comes into this situation. After you get into it once, you remember. lol

Files in trouble where:

- ~/.kde/share/applnk/.hidden/kwrite.desktop
- ~/.kde/share/config/konquerorrc
- ~/.kde/share/config/keditfiletyperc

The 1st file is a binary. I don't know what's that folder for, the other file in there is wine, which I don't use. I guess I could delete them, but I edited the kwrite. Did not fix it.
So I went to the 2nd file, edited it, did not fix.
So I went to the 3rd file, edited it, and it fixed it!!

God I love Linux! Good luck to solve such issues in Winblows! :P

tnx guys, hopefully this thread will be of some help to other people.

P.S.: plpl303: what's the difference between "find ~ -exec grep -Hs kwrtie "{}" ";"" and "find / -type f -exec grep -H 'kwrtie' {} \;"?



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
New Newbie looking to create or find Linux based "Ghosting" program sbhoffmaster Linux - Software 5 06-29-2007 05:04 PM
Stock market "find the best price model" program cigarstub Programming 1 01-07-2007 08:24 AM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Programming 5 12-07-2005 05:04 PM
configure: error: Can't find "javac" in your PATH, when install/compile a program... JungMin Linux - Software 4 12-05-2005 11:20 PM
Just finished compiling Wine, getting "couldn't find program" error Maronflower Linux - Software 1 11-10-2003 06:50 PM > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 01:17 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration