Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-21-2005, 08:36 AM   #1
LQ Newbie
Registered: Jul 2005
Location: Hartford, CT
Distribution: Ubuntu
Posts: 7

Rep: Reputation: 0
Error when opening files with custom command in Gnome

I tried searching this site and Google as well and found a couple forums with this similar problem and no answers...Just more people chiming in saying, "yea, I'm having the same problem".

Anyways, on to the problem. When I try to open a file with the "open with" command in Gnome, it opens the open with box with a bunch of applications. No matter what application you click on or what command you enter for custom command it always pops up the error "Could not add application to the application database". I have tried it with files without an extension, files with the ".list" extension, and others as well. For some reason, I can open a file called "MANIFEST" (with no extension) and it defaults to the correct text editor (gedit). I thought this was strange since it seems as though a few files work, but most don't. The ".pl" and ".log" files default to gedit; so do files named "README", "Changes", "LICENSE" and so forth.

Any help with this is appreciated. Thanks.
Old 12-21-2005, 10:09 AM   #2
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Just before opening the file just look at what the file type is. Is it a media file, an iso image etc. These can be done using the
file <filename>
command. Just try this out and later on open the file with the appropiate program depending upon the file type.
Old 12-21-2005, 10:50 AM   #3
LQ Newbie
Registered: Jul 2005
Location: Hartford, CT
Distribution: Ubuntu
Posts: 7

Original Poster
Rep: Reputation: 0
Ok, I opened a Terminal window and typed "file <filename>" and it came back with the file type. Then when I tried to open it through Nautilus it opened with gedit, like it was supposed to. And magically, every file I have opened after that has worked. So I guess now my question is why, after identifying the filetype of one file, is everything working correctly now? And will I have to do this every time I restart?

Thanks for the initial response btw.


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
Opening up "custom" ports on CentOS/VMware kgoth Linux - Security 1 12-09-2005 08:08 AM
Usermin Custom Command help please AlphaNate Linux - Software 0 09-12-2005 08:16 AM
custom cd command glingon Linux - General 4 11-01-2004 07:39 PM
How to make a custom linux command? m3kgt Linux - General 1 03-11-2004 01:23 PM
debian - custom startup command =X= Linux - Distributions 8 04-28-2003 03:38 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:18 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration