xuancong84 / indicator-cpufreq

for displaying and setting CPU frequency
GNU General Public License v3.0
14 stars 2 forks source link

Small correction for this to work in Ubuntu 22.04 #1

Closed sulph68 closed 1 year ago

sulph68 commented 1 year ago

the existing code doesn't seem to work in Ubuntu22.04 as the GTK version has changed. the below patch on indicator.py will allow this useful applet to work again.

# FIXME:
# org.freedesktop.PolicyKit1 (cheat at distutils-extra)

import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
DjZU commented 1 year ago

Thank you @sulph68

marotoweb commented 1 year ago

I updated Ubuntu and came across an error message the first time I rebooted, phenomenal when I questioned ChatGPT with this error and it recommended that same code change

Antimailer commented 1 year ago

Thanks @sulph68 for sharing :+1:

xuancong84 commented 1 year ago

Thanks! Patch applied.