LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Creating a new Alternative on RHEL3? (https://www.linuxquestions.org/questions/linux-general-1/creating-a-new-alternative-on-rhel3-322243/)

krishvij 05-11-2005 01:01 AM

Creating a new Alternative on RHEL3?
 
Hi,

I use KDE as my desktop. Whenever I double click on any text file, the file gets opened in KWrite. But, I want that the file should open in GEdit. So, I did the following to set up a new alternative and associate it with these two programs :-

ln -s /usr/bin/kwrite /etc/alternatives/editor

alternatives --install /etc/alternatives/editor guieditor /usr/bin/kwrite

alternatives --install /etc/alternatives/editor guieditor /usr/bin/gedit

Then, I typed the command as follows :-

alternatives --config guieditor

it shows me both kwrite and gedit. even if i configure the guieditor alternative to gedit, it still opens the file in kwrite only. Can some one help?

ashamril 05-11-2005 01:24 AM

how about u right click on the text file -> Open With -> Other -> select gedit
and tick on the "Remember application association for this type of file"

krishvij 05-11-2005 01:30 AM

well that will definitely work. unfortunately i happen to be a trainer :-))). and there is a topic on alternatives. they have just given some commands on usage of alternatives but not how to set it up. that is why i need this howto. Please see if you can help


All times are GMT -5. The time now is 07:57 PM.