LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 10-28-2008, 08:46 PM   #1
Frank64
Member
 
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:

Code:
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?

tnx!

Last edited by Frank64; 10-29-2008 at 09:04 PM.
 
Old 10-29-2008, 09:35 AM   #2
clvic
Member
 
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
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
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
Frank64
Member
 
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
plpl303
Member
 
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
Frank64
Member
 
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.

Used
Code:
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' {} \;"?

tnx
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 07:03 AM.

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