gnome-tweaks rebuild

This commit is contained in:
Rmys
2022-07-17 17:32:06 +03:00
committed by ayhanyalcinsoy
parent 7233acfe0a
commit eb852a4fcc
3 changed files with 36 additions and 6 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ from pisi.actionsapi import mesontools
from pisi.actionsapi import get
def setup():
pisitools.dosed("gtweak/utils.py", "0.7", "0.8")
#pisitools.dosed("gtweak/utils.py", "0.7", "0.8")
mesontools.configure()
def build():
@@ -0,0 +1,33 @@
diff -Nuar a/gtweak/utils.py b/gtweak/utils.py
--- a/gtweak/utils.py 2022-03-05 09:35:46.000000000 +0300
+++ b/gtweak/utils.py 2022-07-17 16:57:23.917185664 +0300
@@ -12,7 +12,10 @@
import logging
import gi
-gi.require_version("Notify", "0.7")
+try:
+ gi.require_version("Notify", "0.7")
+except ValueError:
+ gi.require_version("Notify", "0.8")
from gi.repository import GObject
from gi.repository import GLib
from gi.repository import Gio
@@ -331,7 +334,7 @@
)
self.notification.set_hint(
"desktop-entry",
- GLib.Variant('s', 'org.gnome.tweaks'))
+ GLib.Variant('s', gtweak.APP_ID))
self.notification.show()
else:
raise Exception("Not Supported")
@@ -351,7 +354,7 @@
self._logout, None, None)
self.notification.set_hint(
"desktop-entry",
- GLib.Variant('s', 'org.gnome.tweaks'))
+ GLib.Variant('s', gtweak.APP_ID))
self.notification.show()
else:
raise Exception("Not Supported")
+2 -5
View File
@@ -10,6 +10,7 @@
</Packager>
<License>GPLv3</License>
<IsA>library</IsA>
<Icon>gnome</Icon>
<Summary>Graphical interface for advanced GNOME 3 settings (Tweak Tool)</Summary>
<Description>Gelişmiş GNOME 3 ayarları için grafik arayüz</Description>
<Archive sha1sum="4d69fc7bb4982a281066d9c62d6a2713df2955e2" type="tarxz">https://download.gnome.org/sources/gnome-tweaks/40/gnome-tweaks-40.10.tar.xz</Archive>
@@ -22,13 +23,9 @@
<Dependency>gnome-settings-daemon-devel</Dependency>
<Dependency>gsettings-desktop-schemas-devel</Dependency>
</BuildDependencies>
-->
<!--
<Patches>
<Patch>gnome-tweaks.patch</Patch>
<Patch level="1">gnome-tweaks.patch</Patch>
<Patch level="1">Notify-0.8.patch</Patch>
</Patches>
-->
</Source>
<Package>