-
Notifications
You must be signed in to change notification settings - Fork 7
Registry Changes
Also see unofficial registry explorations at:
#Perceived Type# https://msdn.microsoft.com/en-us/library/windows/desktop/ee872121(v=vs.85).aspx#reg_perceived_types https://msdn.microsoft.com/en-us/library/windows/desktop/cc144150(v=vs.85).aspx
I would think that Krita images should be marked as Image
, but Document
could also be a possibility. Paint .NET sets .pdn
files to Image
too. Anyone knows what Photoshop does?
Also, I forgot to consider that Krita "images" can also have animations in it... But GIFs are also marked as Image
, so...
#Property Lists# https://msdn.microsoft.com/en-us/library/windows/desktop/cc144133(v=vs.85).aspx
See the registry changes.
#Thumbnail Overlay Icon# https://msdn.microsoft.com/en-us/library/windows/desktop/cc144118(v=vs.85).aspx#overlays
The MSDN docs says to set the TypeOverlay
value under the .<ext>
key, but if the PerceivedType
is set to Image
, the TypeOverlay
set under HKCR\SystemFileAssociations\image
(which is an empty value) will override the one set under .<ext>
. Setting TypeOverlay
under ProgId
, however, seems to override the one set by the perceived type.
In the future if custom icon handlers are implemented, we could possibly set it to Doesn't work.%1
and see if it works.
Probably should just use the Krita application icon. Since we can't leave it to default (SystemFileAssociations overrides default), we'll need to specify the Krita.exe.
#Resulting Registry Changes# Full registry changes I made to enable properties display in Windows Explorer:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\.kra]
;@="Krita.Document" ; ProgId, Set by installer, other installer values not listed
"PerceivedType"="Image"
; The ProgId should match the one in `.<ext>` as above
[HKEY_CLASSES_ROOT\Krita.Document]
"PreviewDetails"="prop:System.DateModified;System.Size;System.DateCreated;*System.Image.Dimensions;*System.OfflineAvailability;*System.OfflineStatus;*System.SharedWith"
"InfoTip"="prop:System.ItemTypeText;System.Image.Dimensions;*System.Size;System.DateModified"
"FullDetails"="prop:System.Image.Dimensions;System.Image.HorizontalSize;System.Image.VerticalSize;System.Image.HorizontalResolution;System.Image.VerticalResolution;System.PropGroup.FileSystem;System.ItemNameDisplay;System.ItemTypeText;System.ItemFolderPathDisplay;System.Size;System.DateCreated;System.DateModified;System.FileAttributes;*System.OfflineAvailability;*System.OfflineStatus;*System.SharedWith;*System.FileOwner;*System.ComputerName"
"TypeOverlay"="\"C:\\Program Files\\Krita (x64)\\bin\\krita.exe\",0"