![]() |
#1 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2018
Device: kobo libra
|
what is the syntax for using the 'opener' tweak for a file?
Windows 10, Calibre 8.3.0
I am testing using a different Windowa reader for some files (rather than using the default or the calibre viewer) but it only opens the windows default (Sumatra in my case). As a test, I have deselected "EPUB" in <preferences / behaviour> settings. I attempted the following permutations: openers_by_scheme = {'file': 'Acrobat.exe %u'} openers_by_scheme = {'file': 'C:\\Program Files\\Ado ,...snip...> at\\Acrobat.exe %u'} openers_by_scheme = {'file': 'C:\\Program Files\\Ado ,...snip...> at\\Acrobat.exe'} I also tried these (with full pathname as well) {'epub': 'Acrobat.exe %u'} {'EPUB': 'Acrobat.exe %u'} What is the correct syntax / command to have a different reader open the file? Last edited by rmarhi; 04-21-2025 at 03:56 PM. |
![]() |
![]() |
![]() |
#2 |
null operator (he/him)
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 21,715
Karma: 29711016
Join Date: Mar 2012
Location: Sydney Australia
Device: none
|
Use the Open with feature ==>> Configuring and using Calibre's built in Open With
Openers by scheme is for protocols not file types, e.g. I prefer calibre to use Edge rather than my default browser (Firefox) for http. Code:
openers_by_scheme = {'http*': 'C:/Program Files (x86)/Microsoft/Edge/Application/msedge.exe %u'} Last edited by BetterRed; 04-21-2025 at 06:24 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 13
Karma: 10
Join Date: Jun 2018
Device: kobo libra
|
I misunderstood the purpose of the tweak. I appreciate the clarification. It makes sense now. Thanks.
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Possible Tweak: Allow more than one copy of same format (different file) | Philosopher | Library Management | 10 | 08-15-2021 08:48 PM |
One question about syntax | mariaclaudia | Calibre | 16 | 07-20-2016 07:45 AM |
File name syntax change, existing files? | martienne | Library Management | 5 | 02-09-2014 08:48 AM |
Help with Syntax please..... | Hendrixxxxxxxx | Library Management | 4 | 01-31-2013 12:17 AM |
File.seek() syntax/parameters/working | mkaluza | Sony Reader Dev Corner | 2 | 07-30-2008 06:09 PM |