[Desktop-packages] [Bug 1804954] Re: dconf overrides are not read by flatpaks on wayland sessions

2018-12-01 Thread Casey
Correction -- the issue of window controls is not specific to Wayland
and perhaps belongs in a separate bug.

-- 
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/1804954

Title:
  dconf overrides are not read by flatpaks on wayland sessions

Status in flatpak package in Ubuntu:
  Invalid
Status in xdg-desktop-portal package in Ubuntu:
  Confirmed

Bug description:
  "dconf supports distros installing override files into the system,
  then when queried dconf will look at user setting, then fallback to
  distro setting, then fallback to default setting. In a sandbox we can
  ask dconf for the user setting but we don't have disk access to the
  override files"

  So what this means is that on wayland flatpaks can't read the default
  overrides from the session (eg Ubuntu choosing Ambiance and Minimise,
  Maximise, Close etc) as it doesn't have permission to read the system
  files only user ones. (this doesn't affect X11 sessions as gtk reads
  from xsettings instead).

  This will be solved when the settings portal [0] is used in xdg-
  desktop-portal, as that runs on the host outside of the sandbox it is
  able to read the necessary files.

  # Workaround

  Install gnome-tweaks, change your theme to something else and then
  back to Ambiance. Also for the window controls change one of them from
  true to false to true. This will then write user settings to dconf
  which the flatpak's can then read.

  
  0 - https://github.com/flatpak/xdg-desktop-portal/pull/245

  
  === Original Description ===

  System: Ubuntu 18.04.1
  Flatpak version: 1.0.6-flatpak1~bionic (from 
https://launchpad.net/~alexlarsson/+archive/ubuntu/flatpak)

  Description: Flatpaks using GTK3 default to the Adwaita theme in a
  Wayland Gnome session. In Xorg sesions they are themed correctly. The
  attached screenshots demonstrate the same version of Gnome Builder
  running in Communitheme-Wayland and Communitheme-Xorg. However,
  flatpaks that use Qt5 (like KeepassXC) seem to be themed correctly
  under Wayland.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flatpak/+bug/1804954/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp


[Desktop-packages] [Bug 1804954] Re: dconf overrides are not read by flatpaks on wayland sessions

2018-12-01 Thread Casey
Thanks, that workaround does mostly work. However, the window controls
still don't look quite right even after disabling and enabling the
minimize and maximize buttons in Gnome Tweaks.

** Attachment added: "Screenshot from 2018-12-01 16-22-17.png"
   
https://bugs.launchpad.net/ubuntu/+source/flatpak/+bug/1804954/+attachment/5218035/+files/Screenshot%20from%202018-12-01%2016-22-17.png

-- 
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/1804954

Title:
  dconf overrides are not read by flatpaks on wayland sessions

Status in flatpak package in Ubuntu:
  Invalid
Status in xdg-desktop-portal package in Ubuntu:
  Confirmed

Bug description:
  "dconf supports distros installing override files into the system,
  then when queried dconf will look at user setting, then fallback to
  distro setting, then fallback to default setting. In a sandbox we can
  ask dconf for the user setting but we don't have disk access to the
  override files"

  So what this means is that on wayland flatpaks can't read the default
  overrides from the session (eg Ubuntu choosing Ambiance and Minimise,
  Maximise, Close etc) as it doesn't have permission to read the system
  files only user ones. (this doesn't affect X11 sessions as gtk reads
  from xsettings instead).

  This will be solved when the settings portal [0] is used in xdg-
  desktop-portal, as that runs on the host outside of the sandbox it is
  able to read the necessary files.

  # Workaround

  Install gnome-tweaks, change your theme to something else and then
  back to Ambiance. Also for the window controls change one of them from
  true to false to true. This will then write user settings to dconf
  which the flatpak's can then read.

  
  0 - https://github.com/flatpak/xdg-desktop-portal/pull/245

  
  === Original Description ===

  System: Ubuntu 18.04.1
  Flatpak version: 1.0.6-flatpak1~bionic (from 
https://launchpad.net/~alexlarsson/+archive/ubuntu/flatpak)

  Description: Flatpaks using GTK3 default to the Adwaita theme in a
  Wayland Gnome session. In Xorg sesions they are themed correctly. The
  attached screenshots demonstrate the same version of Gnome Builder
  running in Communitheme-Wayland and Communitheme-Xorg. However,
  flatpaks that use Qt5 (like KeepassXC) seem to be themed correctly
  under Wayland.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flatpak/+bug/1804954/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to : desktop-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp