LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices

Reply
 
Search this Thread
Old 02-20-2009, 05:53 AM   #1
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Rep: Reputation: 45
Nautilus scripting not working...


I recently changed distros to Sabayon... from gentoo. I've been impressed with entropy so far... and reduces time on updates and compiles.

I recompiled nautilus in Sabayon for optimization. I became accustomed with the option "open as administrator" So, I added a script just for this reason, because its know longer an option in the nautilus menu. Here's the code, located in ~./gnome2/nautilus-scripts

Code:
 for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
    gksudo "gnome-open $uri" &
  done
I'd also tried with gedit as root... Doesnt seem to work... Is there any suggestions. I also chmod +x this file.
Or, if someone can point me to directions to echo my variable paths to make sure there ok.
I know I can use console other methods... though the convenience of opening and editing a file in nautilus as a admin is a nice feature

Last edited by manwithaplan; 02-20-2009 at 06:09 AM.
 
Old 02-20-2009, 11:01 AM   #2
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
you can try debugging with:
Code:
echo uris = $NAUTILUS_SCRIPT_SELECTED_URIS > ~/g-scirpt.dbg
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
echo command = gksudo "gnome-open $uri" >> ~/g-scirpt.dbg    gksudo "gnome-open $uri" &
  done
take a look at:
http://g-scripts.sourceforge.net/
 
Old 02-20-2009, 11:12 AM   #3
schneidz
Senior Member
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 3,917

Rep: Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599Reputation: 599
if you know the type of file maybe you can call that program directly ?

Last edited by schneidz; 02-20-2009 at 11:15 AM.
 
Old 02-20-2009, 03:36 PM   #4
manwithaplan
Member
 
Registered: Nov 2008
Location: ~/
Distribution: Arch || Sidux
Posts: 393

Original Poster
Rep: Reputation: 45
That was actually what I was looking for... Though my debug output was null... I had no values at all. Just a "uri=" as an output. I am going to dig through the website and work on trying to get this to work.
 
  


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
nautilus scripting - shh-tc.ksh schneidz Programming 1 03-05-2007 11:06 PM
nautilus scripting - shh-cd-rip schneidz Programming 0 12-15-2006 04:23 PM
Nautilus Scripting Questions fatsheep Programming 3 10-14-2006 10:17 PM
Naive scripting question (for Nautilus) the_rydster Programming 3 11-15-2003 02:58 PM
Naive scripting question (for Nautilus) the_rydster Linux - General 0 11-15-2003 10:58 AM


All times are GMT -5. The time now is 03:07 AM.

Main Menu
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