PSPerspective | Exclusive PSP Network: Add "Open with gedit" to the right click menu in Ubuntu - PSPerspective | Exclusive PSP Network

Jump to content

Choose category:
VIP backgrounds
Change width
1
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Add "Open with gedit" to the right click menu in Ubuntu Sinaf Crew Rate Topic: -----

#1
User is offline   -Ra- 

  • Junior Member
  • PipPip
  • Group: Members
  • Posts: 44
  • Joined: 14-May 09
  • Firmware: 1.50
  • PSP Type:Brite
Mteam presents Sinaf Crew

Add "Open with gedit" to the right click menu in Ubuntu

Tested:Ubuntu Dapper, Ubuntu Edgy Eft

---------------[\/]team---------------


The file browser in Ubuntu provides the ability to run scripts on a selected file. These scripts can be used to do anything from opening a file to zipping or uploading, or anything that you can do from the command line.

To start off, we will need to open a terminal window and type in the following command, which will create a new script file in our nautilus scripts directory

CODE
gedit ~/.gnome2/nautilus-scripts/Open\ with\ gedit


Paste in the following script:
CODE
#!/bin/bash
#
# Nautilus script -> open gedit
#
# Owner : Largey Patrick from Switzerland
#     patrick.largey@nazeman.org
# www.nazeman.org
#
# Licence : GNU GPL
#
# Copyright (C) Nazeman
#
# Ver. 0.9-1 Date: 16.02.2002
# Add multiple file open in the same windows
#
# Ver: 0.9  Date: 27.10.2001
# Initial release
#
# Dependence : Nautilus (of course)
#   Gnome-utils (gdialog)
#
filesall=”"
while [ $# -gt 0 ]
do
files=`echo “$1″ | sed ’s/ /\?/g’`
filesall=”$files $filesall”
shift
done
gedit $filesall&


Save and close the gedit window, and then execute the following command to make the script executable:

CODE
chmod u+x ~/.gnome2/nautilus-scripts/Open\ with\ gedit


Credits goes to the orginal.
Tested by Sinaf Crew and Mteam

;)
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users