File association in wine association.reg not working

0

I have previously set up WINE to open .pdf and .xls files with the default linux application by importing an association.reg file into the registry that instructs WINE to use winebrowser.exe to launch those files.

This still works, though lately I get an "error 30 launching...' message for PDF's even though they launch the linux native PDF viewer anyway. XLS's launch in LibreOffice with no such complaint.

Anyway, I just tried setting up an association for .csv files the same way. I edited my association.reg file, changing all the XLS references to CSV, like so:

[HKEY_CLASSES_ROOT\.csv]
@="CSVfile"
"Content Type"="application/csv"
[HKEY_CLASSES_ROOT\CSVfile\Shell\Open\command]
@="winebrowser.exe \"%1\""

But when I try to import this in regedit, it tells me association.reg is not a valid registry file.

Has something changed in WINE since I set up my winebrowser associations for PDF and XLS files? I'm running Kubuntu 18.04, with WINE 3.6.

littlenoodles

Posted 2019-09-10T14:43:22.183

Reputation: 21

For what it's worth, I was able to manually edit the registry to insert my .csv and CSVfile entries, and it's working now. Also, I changed application/csv to text/csv, since that's what was defined on my Linux desktop. Don't know whether that was necessary or not. – littlenoodles – 2019-09-10T15:13:15.127

No answers