Hi guys,
I need help porting the following Nautilus extension to Files 43:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# by Ricardo Lenz, 2016-jun
# riclc@hotmail.com
#
import os, gi
gi.require_version('Nautilus', '3.0')
from gi.repository import GObject, Nautilus, Gtk, Gio, GLib
def ok():
app = Gtk.Application.get_default()
app.set_accels_for_action( "view.rename", ["Return"] )
class CustomShortcuts(GObject.GObject, Nautilus.LocationWidgetProvider):
def __init__(self):
pass
def get_widget(self, uri, window):
ok()
return None
I tried simply bumping the required Nautilus version but that didn’t work.
I was looking at the extension examples in the Nautilus source code repo but didn’t find one showing how a custom shortcut could be set which is the thing I would like to achieve.
Thanks for any input!