Linux nautilus script question

Discussion in 'Software' started by OneSeventeen, 2 Sep 2005.

  1. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    I've noticed that if I don't run any sudo commands for a while, none of my sudo-powered nautilus scripts will run...

    Is there something I need to do to make these scripts prompt for a sudo password or something?

    (I'm wanting to write my own for mounting ISO files, which requires sudo access...)
     
  2. BBurger

    BBurger What's a Dremel?

    Joined:
    7 Apr 2005
    Posts:
    155
    Likes Received:
    0
    On Ubuntu I think sudo privs expire after 15 minutes.

    Haven't gotten into writing scripts for Nautilus myself - what sort of stuff are you using them for?
     
  3. OneSeventeen

    OneSeventeen Oooh Shiny!

    Joined:
    3 Apr 2002
    Posts:
    3,454
    Likes Received:
    2
    Originally I was going to make it so I could right-click on an ISO and mount it so I could watch .iso's of my DVDs

    Then I realized I can just open .iso files from VLC and all is well! :p

    Also, here's how you can make a nautilus/shell script do something and require a sudo password:

    instead of "sudo gnome-terminal" (to open a root terminal) try:
    gksudo gnome-terminal

    gksudo pops up a login window, then sudoes whatever you were telling it to do. It works really nicely :)
     
Tags:

Share This Page