Page 3 of 7 FirstFirst 12345 ... LastLast
Results 21 to 30 of 64

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

  1. #21

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

    Quote Originally Posted by benplaut
    can this do anything that nautilus-scripts can't, or is it just a pretty face for the same thing?
    It is a nicer nautiles-scripts yes, also it only displays items that are relevnet so you dont try and mount a odt file instead of an iso.

  2. #22
    Join Date
    Apr 2005
    Beans
    14

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

    Another example, I use this to play folders of media files in totem.

    Label: Play...
    Path: totem
    Parameters: %M
    File Patterns: *
    Show for folders only

  3. #23
    Join Date
    Apr 2005
    Location
    Illinois
    Beans
    272

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

    I got the following message when i entered nautilus -q

    (nautilus:16049): GLib-CRITICAL **: g_key_file_add_group: assertion `g_key_file_lookup_group_node (key_file, group_name) == NULL' failed

    (nautilus:16049): GLib-CRITICAL **: g_key_file_add_group: assertion `g_key_file_lookup_group_node (key_file, group_name) == NULL' failed

    (nautilus:16049): GLib-CRITICAL **: g_key_file_add_group: assertion `g_key_file_lookup_group_node (key_file, group_name) == NULL' failed

    (nautilus:16049): GLib-CRITICAL **: g_key_file_add_group: assertion `g_key_file_lookup_group_node (key_file, group_name) == NULL' failed

    (nautilus:16049): GLib-CRITICAL **: g_key_file_add_group: assertion `g_key_file_lookup_group_node (key_file, group_name) == NULL' failed

    It then opened nautilus. I right clicked a file and selected send to and didn't see any entry for thunderbird. Any idea?
    ===============================
    My Blog: http://www.blog.arun-prabha.com/
    My Home: http://www.arun-prabha.com
    ===============================

  4. #24
    Join Date
    Nov 2005
    Location
    Fredrikstad Norway
    Beans
    62
    Distro
    Ubuntu 6.10 Edgy

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

    This works almost fine. If I mark several items that i want to send in the same mail, I don't get the TB sendto option when I right click? The option only appears when I try to send one file.

    Any suggestions?

    JØrgen

  5. #25
    Join Date
    Jan 2005
    Location
    Italy
    Beans
    60
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    I looked around and found a way to have it works also if thunderbird is already running (it didn't worked for me in that case..)

    here is the script to call instead of mozilla-thunderbird and then you just have to put "%u" as action parameter:

    Code:
    #!/bin/sh
    
    res=`ps xc | grep -c mozilla-thunder`
    if [ $res -gt 0 ]; then
    
            exec mozilla-thunderbird -remote "xfeDoCommand(ComposeMessage,attachment=$1)"
    
    else
    
            exec mozilla-thunderbird -compose "attachment=$1"
    
    fi
    bye,
    Giovanni.

    p.s.
    Thanks Omar for the Search tip
    Last edited by Virtual DarKness; January 13th, 2006 at 01:06 AM.
    Linux registered user #72162

  6. #26
    Join Date
    Nov 2005
    Location
    Grand Rapids, MI, USA
    Beans
    105
    Distro
    Ubuntu 8.10 Intrepid Ibex

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

    nautilus actions is the shiznit!!!!

    =====================
    Play in Beep Media Player
    Path: beep-media-player
    Parameters: %M
    File Pattern: *
    Folders/Files: Both
    Multiple? checked
    =====================

    =====================
    Open with GThumb Viewer
    Path: gthumb
    Parameters: %M
    File Pattern: *
    Folders/Files: Both
    Multiple? checked
    =====================

    =====================
    Open Terminal
    Path: gnome-terminal
    Parameters: --working-directory=%M
    File Pattern: *
    Folders/Files: Only Folders
    Multiple? unchecked
    =====================

    =====================
    Open Root Terminal
    Path: gnome-sudo
    Parameters: 'gnome-terminal --working-directory=%M'
    File Pattern: *
    Folders/Files: Only Folders
    Multiple? unchecked
    =====================

    =====================
    Send to Email
    Path: /home/quonsar/.scripts/nautilus-sendmail
    Parameters: "%u"
    File Pattern: *
    Folders/Files: Only Files
    Multiple? checked
    =====================

    nautilus-sendmail is simply the script VirtualDarKness posted above. (substitute your actual path for the /home/quonsar/.scripts part)

  7. #27
    Join Date
    Nov 2005
    Beans
    34
    Distro
    Dapper Drake Testing/

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

    thanx the software is pretty usefull

    Here is a deb for amd64 users.
    Attached Files Attached Files

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

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

    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

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

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

    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.

  10. #30
    Join Date
    Jan 2005
    Beans
    Hidden!

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

    Is there a way to make THIS script work is Nautilus Actions? Its a mount/unmount .iso script.

Page 3 of 7 FirstFirst 12345 ... 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
  •