unity-tweak-tool: GLib-GIO-ERROR

Bug #1946794 reported by Brett Bogert
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
unity-tweak-tool (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

unity-tweak-tool_0.0.7+-0ubuntu9 is giving an GLib-GIO-ERROR:

(unity-tweak-tool:8927): GLib-GIO-ERROR **: 15:26:30.421: Settings schema 'org.gnome.desktop.interface' does not contain a key named 'antialiasing'
Trace/breakpoint trap (core dumped)

This is probably coming from /usr/lib/python3/dist-packages/UnityTweakTool/section/spaghetti/theme.py which is still referencing "antialiasing" and "hinting" instead of "font-aliasing"
and "font-hinting" as in the new schema in desktop.interface:

diff theme.py theme.py.fixed
166c166
< if gsettings.antialiasing.get_string('antialiasing') == 'none':
---
> if gsettings.antialiasing.get_string('font-antialiasing') == 'none':
168c168
< elif gsettings.antialiasing.get_string('antialiasing') == 'grayscale':
---
> elif gsettings.antialiasing.get_string('font-antialiasing') == 'grayscale':
170c170
< elif gsettings.antialiasing.get_string('antialiasing') == 'rgba':
---
> elif gsettings.antialiasing.get_string('font-antialiasing') == 'rgba':
174c174
< if gsettings.antialiasing.get_string('hinting') == 'none':
---
> if gsettings.antialiasing.get_string('font-hinting') == 'none':
176c176
< elif gsettings.antialiasing.get_string('hinting') == 'slight':
---
> elif gsettings.antialiasing.get_string('font-hinting') == 'slight':
178c178
< elif gsettings.antialiasing.get_string('hinting') == 'medium':
---
> elif gsettings.antialiasing.get_string('font-hinting') == 'medium':
180c180
< elif gsettings.antialiasing.get_string('hinting') == 'full':
---
> elif gsettings.antialiasing.get_string('font-hinting') == 'full':

Sorry for the late bug report but got tied up working on gtk3-nocsd for GTK4.

If you don't have a Unity desktop to test on and want to test your changes
before commit I have a 21.10 machine setup with Unity for testing purposes
and will be glad to test it for you if needed.

Thanks,
Brett "WolfMan" Bogert
<email address hidden>

Tags: patch
Revision history for this message
Sebastien Bacher (seb128) wrote :

Hey, so I've been uploading patches suggested by contributors over a few revision but I don't have time to do the testing. It seems like those iteration didn't really work out though I'm going to step out of uploading fixes until someone comes with a proper debdiff tested in which case I'm happy to help with the sponsoring

Revision history for this message
Brett Bogert (bbogert24) wrote : Re: [Bug 1946794] Re: unity-tweak-tool: GLib-GIO-ERROR

Sebastian,

                 Not a problem. I will look into it and see if I can get
the needed changes tested and
                 try to get a debdiff for you.

Thanks for your help,
Brett "WolfMan" Bogert
<email address hidden>

On 10/13/21 2:57 AM, Sebastien Bacher wrote:
> Hey, so I've been uploading patches suggested by contributors over a few
> revision but I don't have time to do the testing. It seems like those
> iteration didn't really work out though I'm going to step out of
> uploading fixes until someone comes with a proper debdiff tested in
> which case I'm happy to help with the sponsoring
>

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-tweak-tool (Ubuntu):
status: New → Confirmed
Revision history for this message
Brett Bogert (bbogert24) wrote :

Sebastien,

         Got the changes done and tested but could not get the patch header via
         quilt to work so we are sans patch header. Clearly the other patch
         writers have another way to get a header into the patch so if we can
         find out how they are doing it I will be glad to add it and redo the
         debdiff.

         Built using pbuilder and debuild. Installed via gdebi. Tested all 3
         selections of antialiasing as well as all 4 selections of hinting as
         well as other items that I needed to change. Works as intended and I
         will attach the debdiff to the bug report.

         Let me know what I need to do next.

Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "more new font schemas changes" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]

tags: added: patch
Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I added some patch headers manually when sponsoring. Uploaded to jammy.

Changed in unity-tweak-tool (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package unity-tweak-tool - 0.0.7+-0ubuntu10

---------------
unity-tweak-tool (0.0.7+-0ubuntu10) jammy; urgency=medium

  * debian/patches/more-new-fonts-schemas.patch:
    - add "font-" to "antialiasing" and "hinting" in theme.py
    (lp: #1946794)

 -- Brett Bogert <email address hidden> Sat, 04 Dec 2021 12:07:50 -0500

Changed in unity-tweak-tool (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.