After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749338 - Warning: "failed to set screen _ICC_PROFILE"
Warning: "failed to set screen _ICC_PROFILE"
Status: RESOLVED OBSOLETE
Product: gnome-settings-daemon
Classification: Core
Component: color
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Richard Hughes
gnome-settings-daemon-maint
Depends on:
Blocks:
 
 
Reported: 2015-05-13 22:19 UTC by Christian Stadelmann
Modified: 2019-03-20 11:26 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Christian Stadelmann 2015-05-13 22:19:49 UTC
Every time I start my gnome-session by logging in I get this warning logged to syslog:

(gnome-settings-daemon:1218): color-plugin-WARNING **: failed to set screen _ICC_PROFILE: Datei »/home/username/.local/share/icc/edid-[some-id].icc« konnte nicht geöffnet werden: Keine Berechtigung

Where edid-[some-id].icc file exists in ~/.local/share/icc with mode -rw------ (600). "Keine Berechtigung" means "Permission denied".

I could only find one single reference to this _ICC_PROFILE in g-s-d and that is in gnome-settings-daemon/plugins/color/gsd-color-state.c:151. The process trying to do so is owned by gdm, not by the user. It looks like gnome-settings-daemon started by user gdm (and thus by gdm) tries to access this file, which is obviously wrong.
Comment 1 Richard Hughes 2016-03-02 10:41:41 UTC
What distro is this? The g-s-d started by gdm really shouldn't be touching files in your home directory.
Comment 2 Christian Stadelmann 2016-03-02 12:18:45 UTC
(In reply to Richard Hughes from comment #1)
> What distro is this?
It was on Fedora 22, now still present on a fully updated Fedora 23.

> The g-s-d started by gdm really shouldn't be touching files in your home directory.
Looks like it doesn't care what it should or should not do ;)

To make sure this is not caused by any misconfiguration on my side I've reinstalled Fedora since reporting this bug. Even resetting gdm¹ didn't change this behavior. Might this issue be depending on my local user configuration? or on Hardware?

Before and after resetting gdm, there is a file in /var/lib/gdm/.local/share/icc with the same name as the file in ~/.local/share/icc, but contents differ.


¹ Steps:
1. # systemctl stop gdm
2. # rm -rf /var/lib/gdm
3. # dnf reinstall gdm
4. # systemctl reboot
5. in gdm, login as ordinary user
Comment 3 Anton Leontiev 2016-03-28 06:55:56 UTC
I have the same issue in ArchLinux x86_64. Default configuration is used. gnome-session 3.18.1.2, gnome-settings-daemon 3.18.3.

  $ LANG=C journalctl -b -u session-c1.scope | grep ICC
  Mar 28 08:39:23 hostname gnome-session[523]: (gnome-settings-daemon:4383): color-plugin-WARNING **: failed to set screen _ICC_PROFILE: Не удалось открыть файл «/home/username/.local/share/icc/edid-[id].icc»: Отказано в доступе

  $ ps l 523 4383
  F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND
  0   120   523   516  20   0 575936 14512 -      Sl+  tty1       0:00 /usr/lib/gnome-session/gnome-session-binary --autostart /usr/share/gdm/greeter/autostart --session gnome-wayland
  0   120  4383   523  20   0 962416 46672 -      Sl+  tty1       0:00 /usr/lib/gnome-settings-daemon/gnome-settings-daemon

  $ getent passwd | grep 120
  gdm:x:120:120:Gnome Display Manager:/var/lib/gdm:/sbin/nologin

  $ cat /proc/4383/environ | xargs -0l echo
  XDG_VTNR=1
  DCONF_PROFILE=gdm
  XDG_SESSION_ID=c1
  GIO_LAUNCHED_DESKTOP_FILE_PID=4383
  WAYLAND_DISPLAY=wayland-0
  XDG_MENU_PREFIX=gnome-
  SHELL=/sbin/nologin
  XDG_SESSION_CLASS=greeter
  USER=gdm
  DESKTOP_AUTOSTART_ID=1021e2d37e6ad54588145914354884951200000005230001
  SSH_AUTH_SOCK=/run/user/120/keyring/ssh
  SESSION_MANAGER=local/hostname:@/tmp/.ICE-unix/523,unix/hostname:/tmp/.ICE-unix/523
  USERNAME=gdm
  GIO_LAUNCHED_DESKTOP_FILE=/etc/xdg/autostart/gnome-settings-daemon.desktop
  PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin
  DESKTOP_SESSION=gnome
  XDG_SESSION_TYPE=wayland
  PWD=/var/lib/gdm
  LANG=ru_RU.UTF-8
  GDM_LANG=ru_RU.UTF-8
  GDMSESSION=gnome
  XDG_SEAT=seat0
  HOME=/var/lib/gdm
  SHLVL=0
  GNOME_DESKTOP_SESSION_ID=this-is-deprecated
  GDM_SEAT_ID=seat0
  LOGNAME=gdm
  XDG_SESSION_DESKTOP=gnome
  DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/120/bus
  XDG_DATA_DIRS=/usr/share/gdm/greeter:/usr/local/share/:/usr/share/
  DISPLAY=:1024
  XDG_RUNTIME_DIR=/run/user/120
  GDM_VERSION=3.18.2
  XDG_CURRENT_DESKTOP=GNOME
  RUNNING_UNDER_GDM=true
Comment 4 Christian Stadelmann 2016-04-07 12:19:31 UTC
@Richard Hughes: You marked this bug as NEEDINFO a while ago. Which info do you need?

Now it is Fedora 24.
Comment 5 Bjørn Lie 2016-04-23 13:35:14 UTC
Seeing the same in openSUSE Tumbleweed.

As to the needinfo, I guess that should have been cleared by reporter when he answered Richard.
Comment 6 Khad 2016-05-25 16:34:07 UTC
Same here, using Fedora 24:

May 25 23:10:02 localhost.localdomain gnome-settings-daemon.desktop[1514]: (gnome-settings-daemon:1514): color-plugin-WARNING **: failed to set screen _ICC_PROFILE: Failed to open file '/home/x/.local/share/icc/edid-a092a6b7f0cd0ebf9929474386e24789.icc': Permission denied

-rw-rw-r--. 1 x x 1.3K May 25 23:07 /home/x/.local/share/icc/edid-a092a6b7f0cd0ebf9929474386e24789.icc

is probably caused by selinux?
Comment 7 Christian Stadelmann 2016-05-25 19:56:59 UTC
(In reply to Khad from comment #6)
> is probably caused by selinux?

No, see comment #2. GDM has no reason to access any home directory, but it tries to, anyway.
Comment 8 Christian Stadelmann 2016-06-07 17:16:12 UTC
Also, when running gnome-control-center as user from a terminal, I noted this warning when opening the "Color" page:

color-cc-panel-WARNING **: /var/lib/gdm/.local/share/icc/edid-[some-id].icc is not usable by this user
Comment 9 hughbragg 2016-06-25 04:49:18 UTC
Same problem here. This isn't a fedup problem is it?
Comment 10 Christian Stadelmann 2016-06-25 08:26:48 UTC
(In reply to hughbragg from comment #9)
> Same problem here. This isn't a fedup problem is it?

No, not related to fedup at all.
Comment 11 hughbragg 2016-06-25 09:37:52 UTC
(In reply to Christian Stadelmann from comment #10)
> (In reply to hughbragg from comment #9)
> > Same problem here. This isn't a fedup problem is it?
> 
> No, not related to fedup at all.

How can y9u be so sure, what's your reasoning. I've fedup since 22 and it can easily be a left over setting.
Comment 12 Christian Stadelmann 2016-06-25 09:50:36 UTC
(In reply to hughbragg from comment #11)
> (In reply to Christian Stadelmann from comment #10)
> > (In reply to hughbragg from comment #9)
> > > Same problem here. This isn't a fedup problem is it?
> > 
> > No, not related to fedup at all.
> 
> How can y9u be so sure, what's your reasoning. I've fedup since 22 and it
> can easily be a left over setting.

Reasons why fedup is not to blame:
1. No, I haven't used fedup to update from F22 (afaik).
2. Fedup doesn't touch gdm or gnome-settings-daemon or gnome-control-center settings.
3. gdm and gnome-control-center and gnome-settings-daemon use dconf for settings. In dconf-editor you can see that there is no dconf entry related to this.

I'm not 100% sure this is an issue with gnome-settings-daemon, but its devs should know better. But at least, gnome-settings-daemon provides some related code for reading/parsing color profiles with EDID: https://git.gnome.org/browse/gnome-settings-daemon/tree/plugins/color
Comment 13 mattia.b89 2016-09-22 10:38:58 UTC
I report the same problem here (Arch Linux x86_64, gnome 3.20.2) and now:

Sep 22 12:29:11 arch-xps gnome-settings-daemon.desktop[2255]: (gnome-settings-daemon:2255): color-plugin-WARNING **: failed to set screen _ICC_PROFILE: Failed to open file '/home/mattia/.local/share/icc/edid-4f5c266a34a86a0e977c63a087e98d94.icc': Permission denied

NB: this message is logged twice at boot and after I close and I re-open the LID of my laptop
Comment 14 Stefan Jensen 2016-10-31 19:54:16 UTC
I still see this with 3.22.1-1 on Arch, too.

Name                     : gnome-settings-daemon
Version                  : 3.22.1-1
Comment 15 Otávio Cipriani 2016-11-27 12:02:46 UTC
(In reply to Stefan Jensen from comment #14)
> I still see this with 3.22.1-1 on Arch, too.
> 
> Name                     : gnome-settings-daemon
> Version                  : 3.22.1-1

Me too. Same version.
Comment 16 piedro.kulman 2016-12-30 08:08:20 UTC
Me on ARch I see a different path failing: 

arch gnome-settings-[1238]: failed to set screen _ICC_PROFILE: File »/var/lib/gdm/.local/share/icc/edid-dcc982a15a9ed3282cdf414600645dca.icc«

p.
Comment 17 Christian Stadelmann 2017-10-25 21:52:46 UTC
This issue is still present on gnome-settings-daemon 3.26.1 (Fedora 27 beta).

Could this be an old value put somewhere in a config file which is not being updated? If yes, where is this config file?
Comment 18 mattnizo 2017-10-28 19:33:35 UTC
It's still on Arch with 3.26.1 too.
Comment 19 Jan Vlug 2018-06-12 21:32:42 UTC
I see this error message in Fedora 28.
Comment 20 Cedric Bhihe 2018-09-30 15:16:45 UTC
This bug also appears on:
  Arch 4.18.10
  gdm 3.30.1 on X11
  (xorg server 1.20.1).
Comment 21 GNOME Infrastructure Team 2019-03-20 11:26:13 UTC
-- GitLab Migration Automatic Message --

This bug has been migrated to GNOME's GitLab instance and has been closed from further activity.

You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/gnome-settings-daemon/issues/265.