Use "Zotero" directory in C:\ProgramData
Instead of using "Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38" like Firefox and Thunderbird
This commit is contained in:
parent
c0bc796fce
commit
1e78025726
1 changed files with 14 additions and 0 deletions
|
@ -369,6 +369,20 @@ if [ $BUILD_WIN == 1 ]; then
|
||||||
mv $xdir-core $xdir
|
mv $xdir-core $xdir
|
||||||
|
|
||||||
pushd $xdir
|
pushd $xdir
|
||||||
|
|
||||||
|
# Replace "Mozilla-1de4eec8-1241-4177-a864-e594e8d1fb38" with "Zotero" for C:\ProgramData directory
|
||||||
|
#
|
||||||
|
# Mozilla uses a UUID in the path because they previously used just "Mozilla" and needed to
|
||||||
|
# recreate the folder with correct permissions for security reasons, but we never had a folder in
|
||||||
|
# ProgramData, so we can just create it as "Zotero". Instead of using a custom xul.dll, just
|
||||||
|
# replace the hard-coded string with "Zotero" and add a bunch of NULs.
|
||||||
|
perl -pe 's/\x{4D}\x{00}\x{6F}\x{00}\x{7A}\x{00}\x{69}\x{00}\x{6C}\x{00}\x{6C}\x{00}\x{61}\x{00}\x{2D}\x{00}\x{31}\x{00}\x{64}\x{00}\x{65}\x{00}\x{34}\x{00}\x{65}\x{00}\x{65}\x{00}\x{63}\x{00}\x{38}\x{00}\x{2D}\x{00}\x{31}\x{00}\x{32}\x{00}\x{34}\x{00}\x{31}\x{00}\x{2D}\x{00}\x{34}\x{00}\x{31}\x{00}\x{37}\x{00}\x{37}\x{00}\x{2D}\x{00}\x{61}\x{00}\x{38}\x{00}\x{36}\x{00}\x{34}\x{00}\x{2D}\x{00}\x{65}\x{00}\x{35}\x{00}\x{39}\x{00}\x{34}\x{00}\x{65}\x{00}\x{38}\x{00}\x{64}\x{00}\x{31}\x{00}\x{66}\x{00}\x{62}\x{00}\x{33}\x{00}\x{38}\x{00}/\x{5A}\x{00}\x{6F}\x{00}\x{74}\x{00}\x{65}\x{00}\x{72}\x{00}\x{6F}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}\x{00}/' < xul.dll > xul.dll.new
|
||||||
|
mv xul.dll.new xul.dll
|
||||||
|
if [[ -z "$(strings -e l xul.dll | grep -m 1 Zotero)" ]]; then
|
||||||
|
echo '"Zotero" not found in xul.dll after replacement'
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
modify_omni $arch
|
modify_omni $arch
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue