1
0
Files
wfassoc/example/ppic.toml

54 lines
2.0 KiB
TOML
Raw Normal View History

2025-10-18 09:55:08 +08:00
# Identifier is used as an unique symbol for your program.
# Please choose it carefully to avoid any name conflict.
#
# The value of identifier should only contain alphabet chars and digits and
# digits should not be the first char (like C variable naming convention).
#
# More preciously, this identifier is used as the "vendor" part of ProgId.
2025-10-16 15:13:38 +08:00
identifier = "PineapplePicture"
2025-10-18 09:55:08 +08:00
# The fully qualified path to the application.
#
# A fully qualified path or absolute path always defines an exact path
# from a particular drive or device to a target file or directory,
# and does not depend on the current drive or current directory.
#
# Considering Windows use back-slash as path splittor, which is frequently used as escape char,
# you can utilize "literal strings" syntax in this TOML file to quickly write this path
# as this example following does.
2025-10-16 15:13:38 +08:00
path = 'C:\path\to\ppic.exe'
2025-10-18 09:55:08 +08:00
# CLSID is an unique UUID or GUID of your program.
2025-10-16 15:13:38 +08:00
clsid = "{B5291320-FE7C-4069-BF87-A0AC327FCD20}"
[manners]
2025-10-18 09:55:08 +08:00
# Each manner has a name as its key, and detailed command line arguments list as its value.
# The name of manner will be used sonner for associating with specific file extension.
# The command line arguments indicate which program should be executed and how to configure their arguments.
#
# Also, you can utilize "literal strings" syntax to write this pair,
# because quotes usually need special escape in "basic string" syntax.
2025-10-16 15:13:38 +08:00
common = '"C:\path\to\ppic.exe" "%1"'
2025-10-18 09:55:08 +08:00
# "exts" list hold all potential file extensions related with this program,
# and the correct manner for opening them.
2025-10-16 15:13:38 +08:00
[exts]
2025-10-18 09:55:08 +08:00
# In this case, we bind ".jpg" file extension with "common" manner for opening
# which was defined above.
2025-10-16 15:13:38 +08:00
".jpg" = "common"
2025-10-18 09:55:08 +08:00
# Set more file extensions with manner defined above.
2025-10-16 15:13:38 +08:00
".jfif" = "common"
".gif" = "common"
".bmp" = "common"
".png" = "common"
".ico" = "common"
".jpeg" = "common"
".tif" = "common"
".tiff" = "common"
".webp" = "common"
".svg" = "common"
".kra" = "common"
".xcf" = "common"
".avif" = "common"
".qoi" = "common"
".apng" = "common"
".exr" = "common"