DeDRM_tools/dedrm_src
Adam Plaice 4bd89fa4aa Fix automatic import of decryption keys on Linux with wine
By default, the wineprefix passed to WineGetKeys is "". Unfortunately,

    os.path.abspath(os.path.expanduser(os.path.expandvars("")))

returns the path to the working directory, which depends on the
directory from which calibre was invoked.  Hence under current
behaviour the wineprefix becomes that path, no longer being the empty
string.  This means that the `cmdline` that's run is always
`WINEPREFIX=/some/path/ wine python.exe [...]`, rather than `wine
python.exe [...]` even under default conditions, when the wineprefix
hasn't been changed.  Unless the user is improbably lucky and invokes
calibre from ~/.wine/ (the default wineprefix), this causes automatic
retrieval of the keys to always fail.

The bug was introduced in f2190a6755.

Checking for "" allows for correct behaviour in the default case,
while keeping the nice behaviour of expanding `~`.
2019-06-12 21:13:25 +02:00
..
__init__.py Version to 6.6.3 with update for kindle book name cleanup and .kinf2018 support (initial) 2019-03-30 15:02:40 +00:00
activitybar.py Move to new positions 2018-12-02 11:37:07 +00:00
adobekey.py Move to new positions 2018-12-02 11:37:07 +00:00
aescbc.py Move to new positions 2018-12-02 11:37:07 +00:00
alfcrypto_src.zip Move to new positions 2018-12-02 11:37:07 +00:00
alfcrypto.dll Move to new positions 2018-12-02 11:37:07 +00:00
alfcrypto.py Move to new positions 2018-12-02 11:37:07 +00:00
alfcrypto64.dll Move to new positions 2018-12-02 11:37:07 +00:00
androidkindlekey.py Move to new positions 2018-12-02 11:37:07 +00:00
argv_utils.py Move to new positions 2018-12-02 11:37:07 +00:00
askfolder_ed.py Move to new positions 2018-12-02 11:37:07 +00:00
config.py Move to new positions 2018-12-02 11:37:07 +00:00
convert2xml.py Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Adobe Digital Editions Key_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Barnes and Noble Key_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_EInk Kindle Serial Number_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_eReader Key_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Kindle for Android Key_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Kindle for Mac and PC Key_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
DeDRM_Mobipocket PID_Help.htm Move to new positions 2018-12-02 11:37:07 +00:00
encodebase64.py Move to new positions 2018-12-02 11:37:07 +00:00
epubtest.py Move to new positions 2018-12-02 11:37:07 +00:00
erdr2pml.py Move to new positions 2018-12-02 11:37:07 +00:00
flatxml2html.py Move to new positions 2018-12-02 11:37:07 +00:00
flatxml2svg.py Move to new positions 2018-12-02 11:37:07 +00:00
genbook.py Move to new positions 2018-12-02 11:37:07 +00:00
ignobleepub.py Move to new positions 2018-12-02 11:37:07 +00:00
ignoblekey.py Move to new positions 2018-12-02 11:37:07 +00:00
ignoblekeyfetch.py Move to new positions 2018-12-02 11:37:07 +00:00
ignoblekeygen.py Move to new positions 2018-12-02 11:37:07 +00:00
ineptepub.py Move to new positions 2018-12-02 11:37:07 +00:00
ineptpdf.py Move to new positions 2018-12-02 11:37:07 +00:00
ion.py Move to new positions 2018-12-02 11:37:07 +00:00
k4mobidedrm.py Version to 6.6.3 with update for kindle book name cleanup and .kinf2018 support (initial) 2019-03-30 15:02:40 +00:00
kfxdedrm.py Move to new positions 2018-12-02 11:37:07 +00:00
kgenpids.py Move to new positions 2018-12-02 11:37:07 +00:00
kindlekey.py Fix silly version number error 2019-03-30 16:13:05 +00:00
kindlepid.py Move to new positions 2018-12-02 11:37:07 +00:00
libalfcrypto.dylib Move to new positions 2018-12-02 11:37:07 +00:00
libalfcrypto32.so Move to new positions 2018-12-02 11:37:07 +00:00
libalfcrypto64.so Move to new positions 2018-12-02 11:37:07 +00:00
mobidedrm.py Move to new positions 2018-12-02 11:37:07 +00:00
openssl_des.py Move to new positions 2018-12-02 11:37:07 +00:00
plugin-import-name-dedrm.txt Move to new positions 2018-12-02 11:37:07 +00:00
prefs.py Move to new positions 2018-12-02 11:37:07 +00:00
pycrypto_des.py Move to new positions 2018-12-02 11:37:07 +00:00
python_des.py Move to new positions 2018-12-02 11:37:07 +00:00
scriptinterface.py Move to new positions 2018-12-02 11:37:07 +00:00
scrolltextwidget.py Move to new positions 2018-12-02 11:37:07 +00:00
simpleprefs.py Move to new positions 2018-12-02 11:37:07 +00:00
stylexml2css.py Move to new positions 2018-12-02 11:37:07 +00:00
subasyncio.py Move to new positions 2018-12-02 11:37:07 +00:00
topazextract.py Move to new positions 2018-12-02 11:37:07 +00:00
utilities.py Move to new positions 2018-12-02 11:37:07 +00:00
wineutils.py Fix automatic import of decryption keys on Linux with wine 2019-06-12 21:13:25 +02:00
zipfilerugged.py Move to new positions 2018-12-02 11:37:07 +00:00
zipfix.py Move to new positions 2018-12-02 11:37:07 +00:00