LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices


Reply
  Search this Thread
Old 03-29-2014, 06:41 PM   #1
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Rep: Reputation: 15
Xfce: how to set pico as the default text editor


Hi!
I would like to have Pico instead of Vim or Emacs as the default text editor in Xfce.
How can I achieve this?
Thank you in advance for the help
 
Old 03-29-2014, 07:08 PM   #2
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
In Xfce, look for MIME Type Editor in the Settings.

Last edited by JWJones; 03-29-2014 at 07:11 PM.
 
Old 03-29-2014, 11:09 PM   #3
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
Yes, I did try to change tor Nano for plain text mime. Nano does not appear in the available alternative applications list. So I used the manual input: /usr/bin/nano.
Nothing happens when I double click on a plain text file, though.
I guess Nano has to be executed in a terminal.
How do I do make this to happen?
 
Old 03-30-2014, 08:29 AM   #4
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Ah yes, I see what you mean. I tried the same, and it froze up X(fce). I don't know whether this will work in X (or Slackware), but you might try this:

http://www.cyberciti.biz/faq/howto-r...e-text-editor/
 
Old 03-30-2014, 05:07 PM   #5
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
I found a solution to this.
Just enter:

exo-open --launch TerminalEmulator nano %s

in the "Use a custom command" box of the "MIME Type Editor" dialog

Nano will now work as Vim or Emacs
 
Old 03-30-2014, 10:50 PM   #6
JWJones
Senior Member
 
Registered: Jun 2009
Posts: 1,444

Rep: Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709Reputation: 709
Quote:
Originally Posted by jayhel View Post
exo-open --launch TerminalEmulator nano %s

in the "Use a custom command" box of the "MIME Type Editor" dialog
Excellent, good to know! I knew it would be an easy solution.
 
  


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
Nano /pico text editor required for SUSE10 shoaib_m23 Linux - Newbie 3 07-29-2009 06:42 AM
How to set a default text editor carlsonultimate SUSE / openSUSE 2 04-26-2007 03:52 PM
pico and mcedit text editor install how to x2000koh Linux - General 4 07-25-2004 09:59 PM
Text editor, Pico command not found gigglesnorter Linux - Newbie 2 05-21-2004 03:14 PM
pico text editor for RH 8 Pillay Linux - Software 2 11-01-2003 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation

All times are GMT -5. The time now is 10:27 PM.

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