** Summary changed:

- monitors.xml is incompatible with MATE (and vice versa)
+ Use less generic name for monitors.xml to avoid clashing with other desktops

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gnome-control-center in Ubuntu.
https://bugs.launchpad.net/bugs/2028469

Title:
  Use less generic name for monitors.xml to avoid clashing with other
  desktops

Status in gnome-control-center package in Ubuntu:
  New

Bug description:
  #### Expected behaviour
  cinnamon is using a dedicated name, cinnamon-monitors.xml. This doesn't cause 
the file to be overwritten by the display preferences if other desktop 
environment are used on the same distro. If MATE and GNOME followed the same 
approach, the file name would be mate-monitors.xml, and gnome-monitors.xml, 
respectively.

  #### Actual behaviour
  GNOME's monitors.xml:

  ```
  <monitors version="2">
    <configuration>
      <migrated/>
      <logicalmonitor>
        <x>0</x>
        <y>0</y>
        <primary>yes</primary>
        <monitor>
          <monitorspec>
            <connector>Virtual-1</connector>
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
          </monitorspec>
          <mode>
            <width>1600</width>
            <height>900</height>
            <rate>60</rate>
          </mode>
        </monitor>
      </logicalmonitor>
    </configuration>
    <configuration>
      <logicalmonitor>
        <x>0</x>
        <y>0</y>
        <scale>1</scale>
        <primary>yes</primary>
        <monitor>
          <monitorspec>
            <connector>Virtual-1</connector>
            <vendor>unknown</vendor>
            <product>unknown</product>
            <serial>unknown</serial>
          </monitorspec>
          <mode>
            <width>1600</width>
            <height>900</height>
            <rate>60</rate>
          </mode>
        </monitor>
      </logicalmonitor>
    </configuration>
  </monitors>
  ```
  MATE's monitors.xml:
  ```
  <monitors version="1">
    <configuration>
        <clone>no</clone>
        <output name="Virtual-1">
            <vendor>???</vendor>
            <product>0x0000</product>
            <serial>0x00000000</serial>
            <width>1600</width>
            <height>900</height>
            <rate>60</rate>
            <x>0</x>
            <y>0</y>
            <rotation>normal</rotation>
            <reflect_x>no</reflect_x>
            <reflect_y>no</reflect_y>
            <primary>yes</primary>
        </output>
        <output name="Virtual-2">
        </output>
        <output name="Virtual-3">
        </output>
        <output name="Virtual-4">
        </output>
    </configuration>
  </monitors>
  ```

  #### Steps to reproduce the behaviour
  Both GNOME and MATE can be installed on the same distro. Both DEs are 
installing "$HOME/.config/monitors.xml" via manually configured display GUI 
preferences:
  * GNOME via `$ gnome-control-center display`
  * MATE via `$ mate-display-properties`

  The screen resolution is used directly (no need to log out). However,
  when you switch to the other desktop environment, the screen
  resolution is reset because their setup in monitors.xml is different.

  ## Links to bug reports
  GNOME https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/2579
  MATE https://github.com/mate-desktop/mate-control-center/issues/712

  
  ProblemType: Bug
  DistroRelease: Ubuntu 22.04
  Package: gnome-control-center 1:41.7-0ubuntu0.22.04.6
  ProcVersionSignature: Ubuntu 5.19.0-43.44~22.04.1-generic 5.19.17
  Uname: Linux 5.19.0-43-generic x86_64
  ApportVersion: 2.20.11-0ubuntu82.5
  Architecture: amd64
  CasperMD5CheckResult: pass
  CurrentDesktop: ubuntu:GNOME
  Date: Mon Jul 24 01:24:22 2023
  InstallationDate: Installed on 2023-04-17 (97 days ago)
  InstallationMedia: Ubuntu 22.04 LTS "Jammy Jellyfish" - Release amd64 
(20220419)
  SourcePackage: gnome-control-center
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-control-center/+bug/2028469/+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

Reply via email to