tilix icon indicating copy to clipboard operation
tilix copied to clipboard

no option for 'open with tilix' in nautilus

Open rudrab opened this issue 2 years ago • 6 comments

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

rudrab avatar Sep 09 '22 15:09 rudrab

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

`

eda2z avatar Nov 14 '22 20:11 eda2z

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 avatar Nov 15 '22 14:11 dantob

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

dantob avatar Nov 15 '22 15:11 dantob

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

kalev avatar Nov 23 '22 10:11 kalev

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

Thanks a lot.

rudrab avatar Nov 25 '22 15:11 rudrab

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

sven-frotscher avatar Apr 07 '23 19:04 sven-frotscher