Put Java application into file manager's context menu

后端 未结 1 1056
抹茶落季
抹茶落季 2021-01-28 14:40

I\'m using Eclipse IDE on Ubuntu. My app offers encryption services and I want to integrate it into the client OS. My question is: Is there a way to put my app programmatically

1条回答
  •  清酒与你
    2021-01-28 15:24

    If you target vanilla ubuntu, you can assume that the file manager is Gnome Nautilus. You can write an extension (probably in Vala/C/python) to nautilus :

    http://developer.gnome.org/libnautilus-extension/stable/

    Or you could re-use existing extensions, like nautilus-action or nautilus-script which allow you to bind scripts to contextual-menu entries.

    If you want to support all file managers out there, you have to look at dolphin(for KDE), thunar(for xcfe), and maybe pcmanfm...

    Edit : If you want to write your plugin in java, you might want to look at Gobject Introspection. Don't know if it works yet.

    0 讨论(0)
提交回复
热议问题