On 6/26/2013 10:20 AM, luigi scarso wrote: > > > > On Wed, Jun 26, 2013 at 3:53 PM, Bill Meahan > > wrote: > > > How does one override the default pdf viewer for MKIV Standalone > on Windows 7-64 so --autopdf starts Acrobat Reader instead of > "sumatrapdf.exe"? > > I don't have "sumatra" and do not wish to install it just to > satisfy this one application. WTH is it anyway? (I know what it > is, it's a rhetorical question). Making some obscure pdf viewer > the default with no clear way to change it is not a good idea. For > Windows, the vast majority of people have Acrobat Reader which is > very often preinstalled. For Linux, it's less clear what the > default should be but {xpdf |evince|acroread} are quite common. > Can't speak to OSX as I've never used it but I'd bet a coffee > Acrobat Reader is (or can be) there, too. > > I have searched through the source and tried editing l-pdf.lua but > that doesn't seem to fix the problem. I shouldn't have to edit > system source in any event. > > Mark me frustrated. > > I don't see l-pdf.lua in my standalone . > TYPO: It's l-pdfview.lua sometimes my memory.... From my standalone (updated yesterday) ..[snip].. if os.type == "windows" then opencalls = { ['default'] = "pdfopen --rxi --file", ['acrobat'] = "pdfopen --rxi --file", ['fullacrobat'] = "pdfopen --axi --file", ['okular'] = 'start "test" "c:/data/system/kde/bin/okular.exe" --unique', -- todo! ['sumatra'] = 'start "test" "c:/data/system/sumatrapdf/sumatrapdf.exe" -reuse-instance', ['okular'] = 'start "test" "okular.exe" --unique', ['sumatra'] = 'start "test" "sumatrapdf.exe" -reuse-instance -bg-color 0xCCCCCC', } closecalls= { ['default'] = "pdfclose --file", ['acrobat'] = "pdfclose --file", ['okular'] = false, ['sumatra'] = false, } allcalls = { ['default'] = "pdfclose --all", ['acrobat'] = "pdfclose --all", ['okular'] = false, ['sumatra'] = false, } pdfview.method = "acrobat" -- no longer useful due to green pop up line and clasing reader/full pdfview.method = "sumatra" <=========================== runner = function(cmd) os.execute(cmd) -- .. " > /null" end else ..[snip].. Although I first discovered this when trying to use SciTE, it does the same thing if invoked from the command line. The pdf viewer does not appear in any of the SciTE *.properties files. -- Bill Meahan Westland, Michigan "The nice thing about standards is there are so many of them." --Henry Spencer