feat: modify ppic example for the latest ppic
This commit is contained in:
@@ -34,7 +34,7 @@ clsid = "{B5291320-FE7C-4069-BF87-A0AC327FCD20}"
|
|||||||
#
|
#
|
||||||
# This key is optional. If you don't fill this key,
|
# This key is optional. If you don't fill this key,
|
||||||
# Windows will use your executable embedded Win32 resources for friendly name.
|
# Windows will use your executable embedded Win32 resources for friendly name.
|
||||||
name = "default"
|
name = "self"
|
||||||
|
|
||||||
# The icon of this program.
|
# The icon of this program.
|
||||||
#
|
#
|
||||||
@@ -42,7 +42,7 @@ name = "default"
|
|||||||
#
|
#
|
||||||
# This key is optional. If you don't fill this key,
|
# This key is optional. If you don't fill this key,
|
||||||
# Windows will use the first icon embedded in your executable as icon.
|
# Windows will use the first icon embedded in your executable as icon.
|
||||||
icon = "others"
|
icon = "self"
|
||||||
|
|
||||||
# The default behavior of your program.
|
# The default behavior of your program.
|
||||||
#
|
#
|
||||||
@@ -69,31 +69,41 @@ behavior = "generic"
|
|||||||
#
|
#
|
||||||
# Due to the same use of back-slash in path part,
|
# Due to the same use of back-slash in path part,
|
||||||
# you can utilize TOML "literal strings" syntax to write this value easier.
|
# you can utilize TOML "literal strings" syntax to write this value easier.
|
||||||
default = '@C:\path\to\ppic.exe,-1001'
|
# self = '@C:\path\to\ppic.exe,-1001'
|
||||||
|
|
||||||
# The value of this key also can be a plain string like this commente statement,
|
# The value of this key also can be a plain string like this commente statement,
|
||||||
# if you don't want to touch Win32 resources and your program do not have any I18N requirements.
|
# if you don't want to touch Win32 resources and your program do not have any I18N requirements.
|
||||||
# default = "Pineapple Picture"
|
self = "Pineapple Pictures"
|
||||||
|
|
||||||
# And more string resources...
|
# And more string resources...
|
||||||
jpg = '@C:\path\to\ppic.exe,-1011'
|
jpeg = 'JPEG Image'
|
||||||
jfif = '@C:\path\to\ppic.exe,-1050'
|
gif = 'GIF Animation Image'
|
||||||
gif = '@C:\path\to\ppic.exe,-1012'
|
png = 'PNG Image'
|
||||||
bmp = '@C:\path\to\ppic.exe,-1013'
|
svg = 'Scalable Vector Graphics'
|
||||||
png = '@C:\path\to\ppic.exe,-1014'
|
webp = 'WebP Image'
|
||||||
ico = '@C:\path\to\ppic.exe,-1015'
|
avif = 'AV1 Image File'
|
||||||
jpeg = '@C:\path\to\ppic.exe,-1016'
|
ico = 'Windows Icon Image'
|
||||||
tif = '@C:\path\to\ppic.exe,-1017'
|
icns = 'Apple Icon Image'
|
||||||
tiff = '@C:\path\to\ppic.exe,-1018'
|
psd = 'Photoshop Document'
|
||||||
webp = '@C:\path\to\ppic.exe,-1019'
|
kra = 'Krita Document'
|
||||||
avif = '@C:\path\to\ppic.exe,-1020'
|
xcf = 'GIMP Document'
|
||||||
svg = '@C:\path\to\ppic.exe,-1021'
|
tga = 'TARGA Image'
|
||||||
kra = '@C:\path\to\ppic.exe,-1022'
|
tif = 'Tagged Image File Format'
|
||||||
xcf = '@C:\path\to\ppic.exe,-1023'
|
bmp = 'Bitmap'
|
||||||
qoi = '@C:\path\to\ppic.exe,-1024'
|
wbmp = 'Wireless Bitmap'
|
||||||
apng = '@C:\path\to\ppic.exe,-1025'
|
dds = 'DirectDraw Surface'
|
||||||
exr = '@C:\path\to\ppic.exe,-1026'
|
hdr = 'High Dynamic Range Image'
|
||||||
tga = '@C:\path\to\ppic.exe,-1027'
|
iff = 'Interchange File Format'
|
||||||
|
pic = 'Softimage Picture'
|
||||||
|
pcx = 'PiCture eXchange PC Paintbrush Image'
|
||||||
|
qoi = 'Quite OK Image'
|
||||||
|
ras = 'Sun Raster Image'
|
||||||
|
ora = 'OpenRaster Image'
|
||||||
|
ani = 'Animated Cursor'
|
||||||
|
pfm = 'Portable Float Map'
|
||||||
|
rgb = 'Silicon Graphics Image'
|
||||||
|
pxr = 'Pixar Raster Image'
|
||||||
|
sct = 'Scitex Continuous Tone'
|
||||||
|
|
||||||
# ======== Icon Resources ========
|
# ======== Icon Resources ========
|
||||||
|
|
||||||
@@ -113,18 +123,17 @@ tga = '@C:\path\to\ppic.exe,-1027'
|
|||||||
#
|
#
|
||||||
# Due to the same use of back-slash in path part,
|
# Due to the same use of back-slash in path part,
|
||||||
# you can utilize TOML "literal strings" syntax to write this value easier.
|
# you can utilize TOML "literal strings" syntax to write this value easier.
|
||||||
png = 'C:\path\to\ppic.exe,-1'
|
self = 'C:\path\to\ppic.exe,0'
|
||||||
|
|
||||||
# The value of this key also can be the absolute path to existing icon file like this commente statement.
|
# The value of this key also can be the absolute path to existing icon file like this commente statement.
|
||||||
# png = 'C:\path\to\ppic\icons\png.ico'
|
generic = 'C:\path\to\ppic\icons\generic.ico'
|
||||||
|
|
||||||
# Add more icon resources...
|
# Add more icon resources...
|
||||||
svg = 'C:\path\to\ppic.exe,-2'
|
gif = 'C:\path\to\ppic\icons\gif.ico'
|
||||||
gif = 'C:\path\to\ppic.exe,-3'
|
jpeg = 'C:\path\to\ppic\icons\jpeg.ico'
|
||||||
jpg = 'C:\path\to\ppic.exe,-4'
|
png = 'C:\path\to\ppic\icons\png.ico'
|
||||||
webp = 'C:\path\to\ppic.exe,-5'
|
psd = 'C:\path\to\ppic\icons\psd.ico'
|
||||||
avif = 'C:\path\to\ppic.exe,-6'
|
svg = 'C:\path\to\ppic\icons\svg.ico'
|
||||||
others = 'C:\path\to\ppic.exe,-61'
|
|
||||||
|
|
||||||
# ======== Behaviors Collection ========
|
# ======== Behaviors Collection ========
|
||||||
|
|
||||||
@@ -162,76 +171,191 @@ generic = '"C:\path\to\ppic.exe" "%1"'
|
|||||||
[exts.jpg]
|
[exts.jpg]
|
||||||
# First, we specify its name shown in Windows Explorer.
|
# First, we specify its name shown in Windows Explorer.
|
||||||
# The value of this field is the token declared above in "strs" list.
|
# The value of this field is the token declared above in "strs" list.
|
||||||
name = "jpg"
|
name = "jpeg"
|
||||||
# Then, speficy its associated icon.
|
# Then, speficy its associated icon.
|
||||||
# The value of this field is the token declared above in "icons" list.
|
# The value of this field is the token declared above in "icons" list.
|
||||||
icon = "jpg"
|
icon = "jpeg"
|
||||||
# At last, specify the behavior of this extension define decide how we open this file.
|
# At last, specify the behavior of this extension define decide how we open this file.
|
||||||
# The value of this field is the token declared above in "behaviors" list.
|
# The value of this field is the token declared above in "behaviors" list.
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
|
|
||||||
# And more file extensions...
|
# And more file extensions...
|
||||||
[exts.jfif]
|
[exts.jpeg]
|
||||||
name = "jfif"
|
name = "jpeg"
|
||||||
icon = "jpg"
|
icon = "jpeg"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
|
[exts.jfif]
|
||||||
|
name = "jpeg"
|
||||||
|
icon = "jpeg"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
[exts.gif]
|
[exts.gif]
|
||||||
name = "gif"
|
name = "gif"
|
||||||
icon = "gif"
|
icon = "gif"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
[exts.bmp]
|
|
||||||
name = "bmp"
|
|
||||||
icon = "others"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.png]
|
[exts.png]
|
||||||
name = "png"
|
name = "png"
|
||||||
icon = "png"
|
icon = "png"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
[exts.ico]
|
|
||||||
name = "ico"
|
|
||||||
icon = "others"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.jpeg]
|
|
||||||
name = "jpeg"
|
|
||||||
icon = "jpg"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.tif]
|
|
||||||
name = "tif"
|
|
||||||
icon = "others"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.tiff]
|
|
||||||
name = "tiff"
|
|
||||||
icon = "others"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.webp]
|
|
||||||
name = "webp"
|
|
||||||
icon = "webp"
|
|
||||||
behavior = "generic"
|
|
||||||
[exts.svg]
|
[exts.svg]
|
||||||
name = "svg"
|
name = "svg"
|
||||||
icon = "svg"
|
icon = "svg"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
[exts.kra]
|
|
||||||
name = "kra"
|
[exts.webp]
|
||||||
icon = "others"
|
name = "webp"
|
||||||
behavior = "generic"
|
icon = "generic"
|
||||||
[exts.xcf]
|
|
||||||
name = "xcf"
|
|
||||||
icon = "others"
|
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
|
|
||||||
[exts.avif]
|
[exts.avif]
|
||||||
name = "avif"
|
name = "avif"
|
||||||
icon = "avif"
|
icon = "generic"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.ico]
|
||||||
|
name = "ico"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.icns]
|
||||||
|
name = "icns"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.psd]
|
||||||
|
name = "psd"
|
||||||
|
icon = "psd"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.psb]
|
||||||
|
name = "psd"
|
||||||
|
icon = "psd"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.pdd]
|
||||||
|
name = "psd"
|
||||||
|
icon = "psd"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.psdt]
|
||||||
|
name = "psd"
|
||||||
|
icon = "psd"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.kra]
|
||||||
|
name = "kra"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.xcf]
|
||||||
|
name = "xcf"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.tga]
|
||||||
|
name = "tga"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.tif]
|
||||||
|
name = "tif"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.tiff]
|
||||||
|
name = "tif"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.bmp]
|
||||||
|
name = "bmp"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.wbmp]
|
||||||
|
name = "wbmp"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.dds]
|
||||||
|
name = "dds"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.hdr]
|
||||||
|
name = "hdr"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.iff]
|
||||||
|
name = "iff"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.pic]
|
||||||
|
name = "pic"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.pcx]
|
||||||
|
name = "pcx"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
[exts.qoi]
|
[exts.qoi]
|
||||||
name = "qoi"
|
name = "qoi"
|
||||||
icon = "others"
|
icon = "generic"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
[exts.apng]
|
|
||||||
name = "apng"
|
[exts.ras]
|
||||||
icon = "png"
|
name = "ras"
|
||||||
|
icon = "generic"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
[exts.exr]
|
[exts.sun]
|
||||||
name = "exr"
|
name = "ras"
|
||||||
icon = "others"
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.ora]
|
||||||
|
name = "ora"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.ani]
|
||||||
|
name = "ani"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.pfm]
|
||||||
|
name = "pfm"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.phm]
|
||||||
|
name = "pfm"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.rgb]
|
||||||
|
name = "rgb"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.rgba]
|
||||||
|
name = "rgb"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.bw]
|
||||||
|
name = "rgb"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.sgi]
|
||||||
|
name = "rgb"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.pxr]
|
||||||
|
name = "pxr"
|
||||||
|
icon = "generic"
|
||||||
|
behavior = "generic"
|
||||||
|
|
||||||
|
[exts.sct]
|
||||||
|
name = "sct"
|
||||||
|
icon = "generic"
|
||||||
behavior = "generic"
|
behavior = "generic"
|
||||||
|
|||||||
Reference in New Issue
Block a user