[argyllcms] Installing display profile in local system scope under Vista/Win7

  • From: Florian Höch <lists+argyllcms@xxxxxxxxx>
  • To: argyllcms@xxxxxxxxxxxxx
  • Date: Mon, 07 Jun 2010 17:02:48 +0200

Hello Graeme,

dispwin with -Sl option seems to install in user scope under Vista/Win7 in the current Argyll release. Looking at the dispwin.c source, I've attatched a trivial patch which works for me so far (when running dispwin from an elevated command prompt of course). Would be cool if it could be included in the next release :)

Regards
--
Florian Höch
http://hoech.net
--- E:/fhs/opt/Argyll_V1.1.1_src/Argyll_V1.1.1/spectro/dispwin.c.bak    Sun Jun 
06 15:16:19 2010
+++ E:/fhs/opt/Argyll_V1.1.1_src/Argyll_V1.1.1/spectro/dispwin.c        Sun Jun 
06 14:42:22 2010
@@ -1787,7 +1787,7 @@
                if (scope == p_scope_user)
                        wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER;
                else 
-                       wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER;
+                       wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE;
 
                if ((wpath = char2wchar(fullpath)) == NULL) { 
                        debugr2((errout,"char2wchar failed\n"));
@@ -2039,7 +2039,7 @@
                if (scope == p_scope_user)
                        wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER;
                else 
-                       wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_CURRENT_USER;
+                       wcssc = WCS_PROFILE_MANAGEMENT_SCOPE_SYSTEM_WIDE;
 
                if ((wbname = char2wchar(basename)) == NULL) { 
                        debugr2((errout,"char2wchar failed\n"));

Other related posts: