feat: finish ppic.toml as the example
This commit is contained in:
@@ -19,35 +19,112 @@ path = 'C:\path\to\ppic.exe'
|
|||||||
# CLSID is an unique UUID or GUID of your program.
|
# CLSID is an unique UUID or GUID of your program.
|
||||||
clsid = "{B5291320-FE7C-4069-BF87-A0AC327FCD20}"
|
clsid = "{B5291320-FE7C-4069-BF87-A0AC327FCD20}"
|
||||||
|
|
||||||
[manners]
|
# Icons hold a list including all possible used icons for file associations.
|
||||||
# Each manner has a name as its key, and detailed command line arguments list as its value.
|
# If you just want a single icon for all file associations,
|
||||||
# The name of manner will be used sonner for associating with specific file extension.
|
# you can just create one entry and refer it in every entries located in extension list.
|
||||||
# The command line arguments indicate which program should be executed and how to configure their arguments.
|
[icons]
|
||||||
|
# For each entry located in this list,
|
||||||
|
# its key is the token for referring them later, and its value is the pointer to true resource.
|
||||||
#
|
#
|
||||||
# Also, you can utilize "literal strings" syntax to write this pair,
|
# Its value can be the absolute path to existing icon file, or a valid program icon resource string.
|
||||||
# because quotes usually need special escape in "basic string" syntax.
|
# And considering there is backslash in string, you can utilize TOML "literal strings" syntax to write them.
|
||||||
common = '"C:\path\to\ppic.exe" "%1"'
|
png = 'C:\path\to\ppic.exe,-1'
|
||||||
|
# Add more icon resources...
|
||||||
|
svg = 'C:\path\to\ppic.exe,-2'
|
||||||
|
gif = 'C:\path\to\ppic.exe,-3'
|
||||||
|
jpg = 'C:\path\to\ppic.exe,-4'
|
||||||
|
webp = 'C:\path\to\ppic.exe,-5'
|
||||||
|
avif = 'C:\path\to\ppic.exe,-6'
|
||||||
|
others = 'C:\path\to\ppic.exe,-61'
|
||||||
|
|
||||||
# "exts" list hold all potential file extensions related with this program,
|
# Behaviors list including all ways to open with your software.
|
||||||
# and the correct manner for opening them.
|
# For example, if your program order you use `program.exe --solution solution.toml` to open solution file,
|
||||||
|
# and use `program.exe --file file.rs` to open code file respectively,
|
||||||
|
# you must define two seperated "behaviors" describe this difference.
|
||||||
|
# That was this list done.
|
||||||
|
# If your program only have one way to open file, please leave one entry without any doubt.
|
||||||
|
[behaviors]
|
||||||
|
# Each behavior has a name as its key, which is the token for referring them later,
|
||||||
|
# and an associated command line arguments list as its value.
|
||||||
|
# Surely, you can also utilize TOML "literal strings" syntax to write them.
|
||||||
|
generic = '"C:\path\to\ppic.exe" "%1"'
|
||||||
|
|
||||||
|
# Extensions list hold all potential file extensions related with this program,
|
||||||
|
# and the corresponding name, behavior and icon of them.
|
||||||
[exts]
|
[exts]
|
||||||
# In this case, we bind ".jpg" file extension with "common" manner for opening
|
# In this case, we start to define ".jpg" file extension.
|
||||||
# which was defined above.
|
[exts.jpg]
|
||||||
".jpg" = "common"
|
# First, we specify its name shown in Windows Explorer.
|
||||||
# Set more file extensions with manner defined above.
|
# It can be translated plain string, or a valid program string resource string written following.
|
||||||
".jfif" = "common"
|
name = '@C:\path\to\ppic.exe,-1011'
|
||||||
".gif" = "common"
|
# Then, speficy its associated icon.
|
||||||
".bmp" = "common"
|
# The value of this field is the token declared above in icons list.
|
||||||
".png" = "common"
|
icon = "jpg"
|
||||||
".ico" = "common"
|
# At last, specify the behavior of this extension define decide how we open this file.
|
||||||
".jpeg" = "common"
|
# The value of this field is the token declared above in behaviors list.
|
||||||
".tif" = "common"
|
behavior = "generic"
|
||||||
".tiff" = "common"
|
# Set more file extensions with same syntax shown above.
|
||||||
".webp" = "common"
|
[exts.jfif]
|
||||||
".svg" = "common"
|
name = '@C:\path\to\ppic.exe,-1012'
|
||||||
".kra" = "common"
|
icon = "jpg"
|
||||||
".xcf" = "common"
|
behavior = "generic"
|
||||||
".avif" = "common"
|
[exts.gif]
|
||||||
".qoi" = "common"
|
name = '@C:\path\to\ppic.exe,-1013'
|
||||||
".apng" = "common"
|
icon = "gif"
|
||||||
".exr" = "common"
|
behavior = "generic"
|
||||||
|
[exts.bmp]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1014'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.png]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1015'
|
||||||
|
icon = "png"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.ico]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1016'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.jpeg]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1017'
|
||||||
|
icon = "jpg"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.tif]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1018'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.tiff]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1019'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.webp]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1020'
|
||||||
|
icon = "webp"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.svg]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1021'
|
||||||
|
icon = "svg"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.kra]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1022'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.xcf]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1023'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.avif]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1024'
|
||||||
|
icon = "avif"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.qoi]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1025'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.apng]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1026'
|
||||||
|
icon = "png"
|
||||||
|
behavior = "generic"
|
||||||
|
[exts.exr]
|
||||||
|
name = '@C:\path\to\ppic.exe,-1027'
|
||||||
|
icon = "others"
|
||||||
|
behavior = "generic"
|
||||||
|
|||||||
Reference in New Issue
Block a user