Could you try and see what GtkSettings says? (It should be the same as
using GSettings directly but worth trying):
```
#include <gtk/gtk.h>
int main(int argc, char **argv)
{
gtk_init(&argc, &argv);
GtkSettings *settings = gtk_settings_get_default();
gboolean enable_animations;
g_object_get(G_OBJECT(settings), "gtk-enable-animations",
&enable_animations, NULL);
g_printerr("gtk-enable-animations=%s\n", enable_animations ? "true" :
"false");
return 0;
}
```
Compile with gcc -g -Wall test.c -o test `pkg-config --cflags --libs
gtk+-3.0`
--
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to xdg-desktop-portal in Ubuntu.
https://bugs.launchpad.net/bugs/2083593
Title:
Settings portal reports enable-animations as false when they are
enabled in GSettings
Status in xdg-desktop-portal package in Ubuntu:
New
Bug description:
Last week, I did a clean install of Ubuntu 24.04 LTS on a relatively
beefy Thinkpad. This is going to be my Linux build machine (for a game
I'm working on) so I installed only a few things: VSCode, Steam,
Caffeine, Timeshift, and the requirements for building the game
(Flutter SDK, development libraries).
While testing the game, I noticed that all animations in the game are
skipped. I checked what the app thinks about the environment and it
reports animations in the OS as disabled. I double-checked that
they're not.
1. They are not disabled in Settings > Accessibility.
2. `gsettings get org.gnome.desktop.interface enable-animations`
returns `true`
3. `dconf read /org/gnome/desktop/interface/enable-animations` returns
`true`
Yet, I get this when using `gdbus`:
```
$ gdbus call --session --dest org.freedesktop.portal.Desktop --object-path
/org/freedesktop/portal/desktop --method org.freedesktop.portal.Settings.Read
org.gnome.desktop.interface enable-animations
(<<false>>,)
```
Apparently, `gdbus` is where some applications are looking when trying
to figure out whether animations are enabled. From what I understand,
this is _the_ correct way, even.
Yesterday, I tried installing Ubuntu from scratch and I reproduced the
issue on the clean OS install as well, so it's not something I botched
along the way. You can see my screenshot gallery here:
https://github.com/flutter/flutter/issues/155982#issuecomment-2387958637
. This issue seems to not appear in installations of Ubuntu that were
upgraded from version 22.04, only in clean installations of Ubuntu
24.04.
Another person on Mastodon was able to reproduce this issue, too:
https://mastodon.social/@[email protected]/113238290862309705
I also asked this as a question on askubuntu
(https://askubuntu.com/questions/1528661/clean-ubuntu-install-reports-
enable-animations-as-false-when-theyre-enabled) but, in retrospect, I
think this is a bug in the system, not a support question. I know I
can fix this for myself but I want this to work as expected for
others.
System:
```
$ lsb_release -rd
No LSB modules are available.
Description: Ubuntu 24.04.1 LTS
Release: 24.04
```
## Expected
gdbus (or whatever the subsystem that gdbus uses) returns the correct
value for animations enabled/disabled state
## What happens instead
gdbus returns false while everything else returns true
ProblemType: Bug
DistroRelease: Ubuntu 24.04
Package: libglib2.0-bin 2.80.0-6ubuntu3.1
ProcVersionSignature: Ubuntu 6.8.0-45.45-generic 6.8.12
Uname: Linux 6.8.0-45-generic x86_64
ApportVersion: 2.28.1-0ubuntu3.1
Architecture: amd64
CasperMD5CheckMismatches: ./boot/grub/grub.cfg
CasperMD5CheckResult: fail
CurrentDesktop: ubuntu:GNOME
Date: Thu Oct 3 11:18:41 2024
InstallationDate: Installed on 2024-10-02 (1 days ago)
InstallationMedia: Ubuntu 24.04 LTS "Noble Numbat" - Release amd64 (20240424)
ProcEnviron:
LANG=en_US.UTF-8
PATH=(custom, no user)
SHELL=/bin/bash
TERM=xterm-256color
XDG_RUNTIME_DIR=<set>
SourcePackage: glib2.0
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/xdg-desktop-portal/+bug/2083593/+subscriptions
--
Mailing list: https://launchpad.net/~desktop-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help : https://help.launchpad.net/ListHelp