gnome-shell-extension-cast-to-tv icon indicating copy to clipboard operation
gnome-shell-extension-cast-to-tv copied to clipboard

GNOME 40+ support

Open yochananmarqos opened this issue 3 years ago • 11 comments

The extension cannot be enabled after updating:

Error: Requiring Vte, version none: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

Stack trace:
  @/usr/share/gnome-shell/extensions/[email protected]/prefs.js:4:54
  _init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:206:33
  OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
  asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:132:22
  run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
  main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
  run@resource:///org/gnome/gjs/modules/script/package.js:222:19
  start@resource:///org/gnome/gjs/modules/script/package.js:206:8
  @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17
cd /usr/share/gnome-shell/extensions/[email protected]/node_scripts
DEBUG=bridge,chromecast* node server

Output: NONE

vte3 0.64.0-1 gtk3 3.24.27-4 gtk4 1:4.0.3+61+gcb05be0aa5-1 gnome-shell 1:40.0-1 nodejs 15.12.0-1 Manjaro GNOME (unstable branch)

yochananmarqos avatar Mar 27 '21 00:03 yochananmarqos

Extension preferences need to be ported to GTK4. The top bar remote button and menu will probably also be broken since GNOME 40 did a total UI overhaul.

Rafostar avatar Mar 27 '21 08:03 Rafostar

Also would be nice if vte ported first, so I won't have to remove installing Node modules inside extension preferences window: https://gitlab.gnome.org/GNOME/vte/-/issues/12

Rafostar avatar Mar 27 '21 19:03 Rafostar

any update ?

RedCommand avatar Sep 08 '21 15:09 RedCommand

any update ?

As mentioned earlier, until all dependencies used here (including vte) are ported to GTK4, the project is on hold.

Rafostar avatar Sep 08 '21 15:09 Rafostar

I noticed that there is no alternative solution to this gnome-shell-extension available for linux based systems, which was kind of surprising to me. The following might be an idea to support different gnome versions (and non gnome systems) at the same time:

  1. Contribution of a Google Cast protocol part to Gnome Network Displays
  2. Implementation of a similar app as in 1., focusing on Google Cast (and maybe others, like Apple AirPlay)

Either option would enable to separate from a gnome-shell specific implementation, which seems to cause a lot of trouble. The envisioned app might use:

  • pulseaudio and/or pipewire to provide a system wide audio sink
  • The default screen sharing system of the WM - Wayland and XOrg shoud both provide a stable interface
  • file system access and ffmpeg/gstreamer to stream local files (which might be dragged and dropped to the app)

rmeissn avatar Dec 06 '21 15:12 rmeissn

Can't we just downgrade our gnome version?

GoranTopic avatar Oct 15 '22 22:10 GoranTopic

Same issue here as previously mentioned:

`Error: Requiring Vte, version none: Requiring namespace 'Gtk' version '3.0', but '4.0' is already loaded

Stack trace: @/home/amiga/.local/share/gnome-shell/extensions/[email protected]/prefs.js:4:54 _init@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:23:33 ExtensionPrefsDialog@resource:///org/gnome/Shell/Extensions/js/extensionPrefsDialog.js:10:4 OpenExtensionPrefsAsync@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:124:33 async*_handleMethodCall@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:368:35 _wrapJSObject/<@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:401:34 run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:186:20 main@resource:///org/gnome/Shell/Extensions/js/main.js:22:13 run@resource:///org/gnome/gjs/modules/script/package.js:206:19 start@resource:///org/gnome/gjs/modules/script/package.js:190:8 @/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17`

CaptainMorgan12 avatar Feb 11 '23 20:02 CaptainMorgan12

FWIW, vte-0.72.1 seems to contain gtk4 support

$ cd vte-0.72.1
$ meson  -Dgtk4=true -Dgtk3=false _build
$ ninja -C _build
$ _build/src/app/vte-2.91-gtk4

dleonard0 avatar Apr 29 '23 13:04 dleonard0

Up

monteirotorres avatar May 02 '23 18:05 monteirotorres

@Rafostar Any chance you will consider updating this?

fmehdad97 avatar Apr 22 '24 00:04 fmehdad97

Just use GNOME Network Displays.

https://flathub.org/apps/org.gnome.NetworkDisplays

https://www.omgubuntu.co.uk/2024/02/gnome-network-displays-adds-support-for-mice-chromecast

teohhanhui avatar Apr 22 '24 04:04 teohhanhui