Skip to content

Commit 959405b

Browse files
committed
fix app name on GNOME
1 parent 346093d commit 959405b

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

auto_cpufreq/gui/app.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def __init__(self):
2323
self.set_resizable(False)
2424
self.load_css()
2525
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)
26-
self.set_icon(pixbuf)
26+
#self.set_icon(pixbuf)
2727
self.build()
2828

2929
def main(self):
@@ -84,4 +84,5 @@ def refresh(self):
8484
win = MyWindow()
8585
win.connect("destroy", Gtk.main_quit)
8686
win.show_all()
87+
GLib.set_application_name("auto-cpufreq")
8788
Gtk.main()

scripts/auto-cpufreq-gtk.desktop

+1
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Exec=auto-cpufreq-gtk
44
Type=Application
55
Terminal=false
66
Icon=auto-cpufreq
7+
StartupWMClass=App.py
78
Categories=System;

0 commit comments

Comments
 (0)