Skip to content

Commit

Permalink
fix app name on GNOME
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeyg56 committed Feb 19, 2023
1 parent 346093d commit 959405b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto_cpufreq/gui/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def __init__(self):
self.set_resizable(False)
self.load_css()
pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(filename="/usr/local/share/auto-cpufreq/images/icon.png", width=500, height=500, preserve_aspect_ratio=True)
self.set_icon(pixbuf)
#self.set_icon(pixbuf)
self.build()

def main(self):
Expand Down Expand Up @@ -84,4 +84,5 @@ def refresh(self):
win = MyWindow()
win.connect("destroy", Gtk.main_quit)
win.show_all()
GLib.set_application_name("auto-cpufreq")
Gtk.main()
1 change: 1 addition & 0 deletions scripts/auto-cpufreq-gtk.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ Exec=auto-cpufreq-gtk
Type=Application
Terminal=false
Icon=auto-cpufreq
StartupWMClass=App.py
Categories=System;

0 comments on commit 959405b

Please sign in to comment.