gnunn1 / tilix

A tiling terminal emulator for Linux using GTK+ 3
https://gnunn1.github.io/tilix-web
Mozilla Public License 2.0
5.38k stars 293 forks source link

no option for 'open with tilix' in nautilus #2117

Open rudrab opened 1 year ago

rudrab commented 1 year ago

Hi, With gnome 43 (fedora 37-beta-rc), there is no ''Open with Tilix" option anymore. Any way to implement it?

tilix --version
Versions
    Tilix version: 1.9.5
    VTE version: 0.69
    GTK Version: 3.24.34

Tilix Special Features

(tilix:9219): GLib-GObject-WARNING **: 21:40:53.462: invalid (NULL) pointer instance

(tilix:9219): GLib-GObject-CRITICAL **: 21:40:53.462: g_signal_handlers_disconnect_matched: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed
    Notifications enabled=1
    Triggers enabled=0
    Badges enabled=1

gnome-shell --version
GNOME Shell 43.beta
eda2z commented 1 year ago

I am getting the same behavior (error messages and no "Open with Tilix") in Arch. Gnome shell version 43.1. If I try nautilus --version (not sure if that is valid) I get ` Traceback (most recent call last): File "/usr/share/nautilus-python/extensions/open-tilix.py", line 17, in require_version('Nautilus', '3.0') File "/usr/lib/python3.10/site-packages/gi/init.py", line 117, in require_version raise ValueError('Namespace %s is already loaded with version %s' % ValueError: Namespace Nautilus is already loaded with version 4.0 GNOME nautilus 43.0

(org.gnome.Nautilus:21344): GLib-CRITICAL **: 14:30:17.662: g_hash_table_foreach: assertion 'hash_table != NULL' failed

`

dantob commented 1 year ago
Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/open-tilix.py", line 17, in <module>
    require_version('Nautilus', '3.0')
  File "/usr/lib/python3.10/site-packages/gi/__init__.py", line 117, in require_version
    raise ValueError('Namespace %s is already loaded with version %s' %
ValueError: Namespace Nautilus is already loaded with version 4.0

After changing the required version to 4, it now fails with this

Traceback (most recent call last):
  File "/usr/share/nautilus-python/extensions/open-tilix.py", line 40, in <module>
    Nautilus.LocationWidgetProvider):
  File "/usr/lib/python3.10/site-packages/gi/module.py", line 123, in __getattr__
    raise AttributeError("%r object has no attribute %r" % (
AttributeError: 'gi.repository.Nautilus' object has no attribute 'LocationWidgetProvider'

and the migration docs say

The Nautilus.LocationWidgetProvider was removed without replacement. If your script requires it, you can request a new model-based API for your specific use case on the Nautilus issue tracker

dantob commented 1 year ago

https://github.com/gnunn1/tilix/pull/2115 works for me

kalev commented 1 year ago

I went ahead and backported #2115 to tilix-1.9.5-6.fc37 for Fedora 37.

rudrab commented 1 year ago

I went ahead and backported #2115 to tilix-1.9.5-6.fc37 for Fedora 37.

Thanks a lot.

sven-frotscher commented 1 year ago

I went ahead and backported #2115 to tilix-1.9.5-6.fc37 for Fedora 37.

Arch backported it too: https://github.com/archlinux/svntogit-community/commit/ad16a37ac4323a2b2e2d22247f1b88a620031bde