LinuxQuestions.org
Visit Jeremy's Blog.
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, 07: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, 08:08 PM   #2
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

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

Last edited by JWJones; 03-29-2014 at 08:11 PM.
 
Old 03-30-2014, 12:09 AM   #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, 09:29 AM   #4
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Rep: Reputation: 187Reputation: 187
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, 06: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, 11:50 PM   #6
JWJones
Member
 
Registered: Jun 2009
Location: Cascadia
Distribution: Slackware, LinuxBBQ, OpenBSD, Mac OSX
Posts: 723

Rep: Reputation: 187Reputation: 187
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


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


All times are GMT -5. The time now is 07:45 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration