4 ms·
On Ubuntu/Debian, it might make sense to run it after each apt-get: $ cat /usr/local/bin/spotify-turn-off-vacuum #!/usr/bin/env python2 target = "
by unhammer 10y ago
On Ubuntu/Debian, it might make sense to run it after each apt-get:
$ cat /usr/local/bin/spotify-turn-off-vacuum
#!/usr/bin/env python2
target = "/usr/bin/spotify"
with open(target) as infile:
bytes = infile.read()
with open(target+".bak", "wb") as backup:
backup.write(bytes)
fixed = bytes.replace("VACUUM;", "xxxxxx;")
with open (target, "wb") as outfile:
outfile.write(fixed)
$ cat /etc/apt/apt.conf.d/99spotify-turn-off-vacuum
DPkg::Post-Invoke {"/usr/local/bin/spotify-turn-off-vacuum";};