右键一级菜单: 来自stackoverflow
You can use nautilus-actions from command line and script:
man nautilus-actions-new
However, this requires for this package to be installed (I'm using Ubuntu Oneiric Alpha and this package was not installed), which can only be acheived by packing your program as a deb archive.
Other possibility is Nautilus Scripts which does not require any packages. But it will place your menu item in a submenu.
Programs like nautilus-open-terminal add stuff to the nautilus menu without any dependencies, you might want to checkout its source.
You can use nautilus-actions from command line and script:
man nautilus-actions-new
However, this requires for this package to be installed (I'm using Ubuntu Oneiric Alpha and this package was not installed), which can only be acheived by packing your program as a deb archive.
Other possibility is Nautilus Scripts which does not require any packages. But it will place your menu item in a submenu.
Programs like nautilus-open-terminal add stuff to the nautilus menu without any dependencies, you might want to checkout its source.