Page 4 of 7 FirstFirst ... 23456 ... LastLast
Results 31 to 40 of 64

Thread: HOWTO: Custom commands in nautilus (TB Attachment example)

  1. #31
    Join Date
    Jan 2006
    Location
    Belgium, Leuven
    Beans
    194
    Distro
    Ubuntu 6.10 Edgy

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    A new nautilus actions available!!!!

    Quote Originally Posted by MetalMusicAddict
    Is there a way to make THIS script work is Nautilus Actions? Its a mount/unmount .iso script.

    if you want to mount iso who are movie-dvd's,
    you can play iso's right away in a mediaplayer, without mounting

  2. #32
    Join Date
    Nov 2005
    Beans
    6

    Lightbulb Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    Quote Originally Posted by maxdevis
    i want to make a menubutton so gxine loads the subtitle of an avi.
    it works when i give in the terminal this:
    gxine file:///home/michiel/file#subtitle:/home/michiel/file.srt

    when i make a script it also works,
    but when i want to do it with nautilus actions, it loads the avi, but not the subtitle.
    i tried to add the script to nautilus actions, but again he loads the avi, not the srt.
    In fact Nautilus-actions use a Glib function to parse the command line, and it seems that this function parse the # character as the sign of comment and so ignore the end of the line. To workaround it, just put a backslash before the # sign like this :

    Code:
    file://%d/%f\#%d/%f.srt

  3. #33
    Join Date
    Nov 2005
    Beans
    6

    Lightbulb Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    Quote Originally Posted by maxdevis
    i want to mount iso's.
    the script works
    but the menu not?
    it gives me the error from the script.

    #!/bin/bash
    #
    # nautilus-mount-iso

    foo=`gksudo -u root -k -m "" /bin/echo "got r00t?"`

    sudo mkdir /media/"$*"

    if sudo mount -o loop -t iso9660 "$*" /media/"$*"
    then
    if zenity --question --title "ISO Mounter" --text "$* Successfully Mounted.

    Open Volume?"
    then
    nautilus /media/"$*" --no-desktop
    fi
    exit 0
    else
    sudo rmdir /media/"$*"
    zenity --error --title "ISO Mounter" --text "Kan niet mounten $*!"
    exit 1
    fi

    Let's try this little rewrite of it and check if it makes it works better :

    Code:
    #!/bin/bash
    #
    # nautilus-mount-iso
    
    image_name=`basename $2 .iso`
    
    foo=`gksudo -u root -k -m "" /bin/echo "got r00t?"`
    
    sudo mkdir /media/"$image_name"
    
    if sudo mount -o loop -t iso9660 "$1" /media/"$image_name"
    then
            if zenity --question --title "ISO Mounter" --text "$2 Successfully Mounted.
            
            Open Volume?"
            then
                    nautilus /media/"$image_name" --no-desktop
            fi
            exit 0
    else
            sudo rmdir /media/"$image_name"
            zenity --error --title "ISO Mounter" --text "Kan niet mounten $2!"
            exit 1
    fi
    and use this as parameters in Nautilus-actions :

    Code:
    %d/%f %f
    I don't manage to test it because gksudo doesn't works on my Fedora box and when I removed it, the script didn't work because sudo ask for a password under X even though it didn't ask for it in command line.

  4. #34
    Join Date
    Aug 2005
    Location
    Spain
    Beans
    326
    Distro
    Ubuntu

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    Great work. Now i can send files to my BT devices

    Label: SenSend to Bluetooth Device
    Path: gnome-obex-send
    Parameters: %M
    File pattern: *
    Appears if selection contains only files.

    Cheers

  5. #35
    Join Date
    Nov 2005
    Location
    Republic of Texas
    Beans
    14
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    looking at the first posts on this thread I followed the link to nautilus-actions homepage. There is available a new release (1.0), and even a breezy deb package.

    now my three cents on custom actions:

    ***********
    Enqueue in xmms
    Path: xmms
    Parameters: %M -e
    File Pattern: *
    Folders/Files: Both
    Multiple? checked
    ***********

  6. #36
    Join Date
    Nov 2004
    Beans
    12

    HOWTO: Custom commands in nautilus - recursively set writable

    When you copy files from CD onto hard disk, they carry their permissions with them and remain unwritable. This is easy to fix from the command line but time consuming in the GUI. This action allows you to recursively set the writable flag on selected files and directories.

    Label: Recursive writable
    Tooltip: Make all of the selection writable, including all subfolders.
    Action: chmod
    Parameters: -R u+w %M

    Files/Folders: Both (or you could make this just apply to folders).

    Cheers,
    Toby Haynes

  7. #37
    Join Date
    Mar 2006
    Location
    europe/germany
    Beans
    230
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    enqueue in XMMS:
    (displays only for audiofiles and folders in contrast to method above)

    for files:
    path: xmms
    parameter: -e %M
    symbol: /usr/share/xmms_mini.xpm

    filter: *.mp3; *.ogg; *.wav (and whatever you want)
    only files: checked
    multiple checked: checked

    Scheme:
    file

    for folders:
    path: xmms
    parameter: -e %M
    symbol: /usr/share/xmms_mini.xpm

    filter: *
    only folders: checked
    multiple checked: checked

    Scheme:
    file

    play in XMMS:

    for files:
    path: xmms
    parameter: %M
    symbol: /usr/share/xmms_mini.xpm

    filter: *.mp3; *.ogg; *.wav (and whatever you want)
    only files: checked
    multiple checked: checked

    Scheme:
    file

    for folders:
    path: xmms
    parameter: %M
    symbol: /usr/share/xmms_mini.xpm

    filter: *
    only folders: checked
    multiple checked: checked

    Scheme:
    file

    tag with Easy Tagger
    path: easytag
    parameter: %M
    symbol: /usr/share/EasyTAG.xpm

    filter: *
    only folders: checked
    multiple checked: not checked

    Scheme:
    file
    Last edited by Bazon; March 11th, 2006 at 09:14 AM.

  8. #38
    Join Date
    Feb 2006
    Beans
    201
    Distro
    Ubuntu

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    Easy convert webshots .wbz to .jpg using wbz2jpg for nautilus-actions:

    download and follow the instuctions here http://www.angelfire.com/darkside/wbz2jpg/
    then in nautilus-actions

    Label: Convert to JPEG
    Tooltip: Converts wbz to jpg
    Path: /usr/bin/wbz2jpg
    Parameters: %M %M.jpg

    File Pattern: *.wbz
    only files: checked
    multiple checked: checked

    scheme: file

    I can't seem to get it to work for more than one file at a time, but it works.
    Last edited by jms830; May 7th, 2006 at 08:50 PM.

  9. #39
    Join Date
    Nov 2005
    Beans
    6

    Lightbulb Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    I'm happy to annouce you that it is now possible to share your actions on the official web site of Nautilus-actions.

    There is already a few configs submited and you have the possibility to submit your own configs too.

    the configuration repository can be found at the following address :

    http://www.grumz.net/configlist

    You can found more information about this here

    Happy sharing !

  10. #40
    Join Date
    Feb 2006
    Location
    UK
    Beans
    5
    Distro
    Ubuntu Breezy 5.10

    Re: HOWTO: Custom commands in nautilus (TB Attachment example)

    Gnome easy install of deb files by right clicking on them.

    Quote Originally Posted by Sevoma
    I made one, but I can 't get it to work. It installs .deb's with a zenity progress thing and makes a log.

    here it is:

    Label: Install Deb
    Tooltip: Install the selected Debian Package
    Icon: /usr/share/pixmaps/debian-logo.png
    Path: zenity --progress --pulsate --title "Please Wait" --text $"Installing %f" & && gksudo dpkg -i
    Parameters: %M" > ~/install_log.txt && killall zenity
    File Pattern: *.deb

    If anybody could make it work that would be great. This would be possible by executing a script also.
    I've made a script to install deb files from the right click menu. Please be kind it's my first Linux script. Very easy to use, with progress bar.

    Copy and paste the following script into a file call it "installer" and save it in your home folder, then make it executable.

    #!/bin/bash
    #
    # nautilus-deb-installer

    package_name=`basename $1`

    if zenity --question --title "Alert" --text "Do you wish to install the package $package_name?"
    then
    foo=`gksudo -u root -m "Please enter your password to install $package_name" /bin/echo "0"`
    sudo dpkg -i "$1" | zenity --progress --pulsate --title "Please Wait" --text $"Installing $package_name"
    zenity --info --title "Installation Complete" --text "The package $package_name has been installed"
    else
    zenity --info --title "Installation aborted" --text "The package $package_name was not installed"
    exit 1
    fi

    Then in Nautilus Actions:

    Label: Install Package
    Path: /home/<your username>/installer
    Parameters: %M
    File Pattern: *.deb
    Files only

    Then when you right click on a deb file you will be able to install it.
    Last edited by sellotape; April 1st, 2006 at 02:51 AM.

Page 4 of 7 FirstFirst ... 23456 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •