! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Calibration and profile information buttons are shown even when gnome-color-m...
Status:
RESOLVED: WONTFIX
Product:
Xfce4-settings
Component:
Color Settings

Comments

Description Pasi Lallinaho editbugs 2019-04-07 08:43:05 CEST
Calibration and profile information buttons are shown in the Color Profiles dialog even when gnome-color-manager is not installed.

When these buttons are clicked, the dialog crashes.

Since we are probing for gnome-color-manager, could we potentially probe for other tools (like DisplayCAL) as well? Obviously in the case when multiple tools are installed, we would ideally have to have a dialog/dropdown to let the user pick which tool is their preferred one...
Comment 1 Simon Steinbeiss editbugs 2019-04-07 21:47:57 CEST
Right, so that shouldn't be the case (the buttons should be hidden when gnome-color-manager isn't installed).

The reason not to support DisplayCAL is because it conflicts with xiccd, the currently preferred way of applying display profiles to colord. Ideally xiccd will be replaced by server-side support for colord (currently we only have the frontend).
To be clear: DisplayCAL has its own daemon that also handles some colord stuff and therefore creates race conditions with xiccd (see https://github.com/agalakhov/xiccd/issues/8 for reference).
Comment 2 Simon Steinbeiss editbugs 2019-04-07 22:14:13 CEST
Created attachment 8390 
Patch ensuring hiding info and calibrate buttons

Please test the attached patch.
Comment 3 Pasi Lallinaho editbugs 2019-04-08 10:47:03 CEST
The patch doesn't work, but... I can't confirm that the code doesn't work.

I started investigating and it seems I *do* have gnome-color-manager installed, but it crashes when clicking on the buttons. Maybe this is because my configuration is done with DisplayCAL and that I'm using its daemons etc. and gnome-color-manager is indeed conflicting with xiccd.

I wonder if we can probe if gnome-color-manager is working "correctly" (read: is being at all), and only *then* show the buttons.
Comment 4 Simon Steinbeiss editbugs 2019-04-08 22:51:31 CEST
> I started investigating and it seems I *do* have gnome-color-manager installed.
That means the original code works and there's potentially a bug in gcm. Have you tried launching it from the cli to see the about the error message? (gcm-calibrate and gcm-viewer are the base commands)

> I wonder if we can probe if gnome-color-manager is working "correctly" (read: is being at all), and only *then* show the buttons.
Nope, that's not possible.
Comment 5 Pasi Lallinaho editbugs 2019-04-09 09:56:29 CEST
gcm-calibrate exits with the message "No device was specified!". (How do I even initialize my devices with gcm?)

gcm-viewer does open, but even after importing my profile (with gcm-import), the clicking the profile information button crashes the dialog.
Comment 6 Simon Steinbeiss editbugs 2019-04-09 22:00:19 CEST
gcm-calibrate expects a colord device as argument, you can get that with "colormgr get-devices".

(In any case, that's why I created a GUI for this part of the process ;))
Comment 7 Pasi Lallinaho editbugs 2019-04-10 14:40:46 CEST
Incidentally, "colormgr get-devices" returns nothing...
Comment 8 Simon Steinbeiss editbugs 2020-05-16 01:08:43 CEST
Hm, to be honest I'm not sure how to close this report (you have to tell me), but I feel it should be closed. Not sure what else we can do.

If gcm-calibrate is installed we show the button. If gcm-calibrate fails silently there's very little we can do... (because that implies a bug in gcm-calibrate)

Bug #15265

Reported by:
Pasi Lallinaho
Reported on: 2019-04-07
Last modified on: 2020-05-28

People

Assignee:
Simon Steinbeiss
CC List:
3 users

Version

Version:
unspecified

Attachments

Additional information