rpmfusion-infra / fedy

Fedy makes it easy to install third-party software in Fedora.
GNU General Public License v3.0
185 stars 20 forks source link

Requiring Gtk but it has 3 versions available; use imports.gi.versions to pick one #96

Closed ShamimIslam closed 2 years ago

ShamimIslam commented 2 years ago

Describe the bug Unable to start fedy

To Reproduce Steps to reproduce the behavior:

  1. install gtk4-4.4.2-1.fc35.x86_64
  2. install gtk2-2.24.33-5.fc35.x86_64
  3. gtk3-3.24.31-2.fc35.x86_64
  4. Run fedy

Expected behavior fedy runs

Actual behavior Fedy crashes:

(gjs:1179114): Gtk-WARNING **: 20:36:57.563: Unknown key gtk-button-images in /home/shamim/.config/gtk-4.0/settings.ini

(gjs:1179114): Gtk-WARNING **: 20:36:57.563: Unknown key gtk-menu-images in /home/shamim/.config/gtk-4.0/settings.ini

(gjs:1179114): Gtk-WARNING **: 20:36:57.564: Unknown key gtk-toolbar-style in /home/shamim/.config/gtk-4.0/settings.ini

(gjs:1179114): Gjs-CRITICAL **: 20:36:58.486: JS ERROR: TypeError: Gtk.WindowPosition is undefined _buildUI@./app.js:37:17 wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27 _onStartup@./app.js:76:14 wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27 @./app.js:720:17

(gjs:1179114): Gjs-CRITICAL **: 20:36:58.486: JS ERROR: TypeError: this._window is undefined _onActivate@./app.js:70:9 wrapper@resource:///org/gnome/gjs/modules/script/_legacy.js:83:27 @./app.js:720:17

Version Information: Please run the following commands in the terminal and provide the output after the colon:

Additional context

ShamimIslam commented 2 years ago

Please be advised, I upgraded from Fedora 27 all the way through to Fedora 35, and certain programs use gtk2, and others use gtk3. I did not manually install them. This laptop has been in service a long time.

leigh123linux commented 2 years ago

Try updating fedy, the current version works ok.

$ rpm -q gtk3 gtk2 gtk4 fedy
gtk3-3.24.31-2.fc36.x86_64
gtk2-2.24.33-6.fc36.x86_64
gtk4-4.6.1-2.fc36.x86_64
fedy-5.0.20-1.fc36.noarch

The issue you have was fixed in version 5.0.1

https://github.com/rpmfusion-infra/fedy/commit/b7f579f167240189d7d11bcf4cc24b775e44d7c5

kwizart commented 2 years ago

Fedy is available from https://copr.fedorainfracloud.org/coprs/kwizart/fedy/ nowadays.

ShamimIslam commented 2 years ago

Correct response would have been: please upgrade to the latest fedy on Fedora 35. Your initial response made me think you were providing a Fedora 36 reponse.

ShamimIslam commented 2 years ago

P.S. Seeing as I just installed fedy 2 days ago, it wouldn't have been unhelpful to indicate that the Fedora 35 version is now "5.0.20-1"

So long and thanks for all the fish.