dmgbuild / ds_store Goto Github PK
View Code? Open in Web Editor NEWManipulate Finder .DS_Store files from Python
Home Page: https://ds-store.readthedocs.io
License: MIT License
Manipulate Finder .DS_Store files from Python
Home Page: https://ds-store.readthedocs.io
License: MIT License
What is their status? Have they all been resolved?
Should hey be migrated here?
(my specific interest concerns https://bitbucket.org/al45tair/ds_store/issues/7)
trying to install ds_store
on python3.11 with pip22.3 triggers the following warning:
DEPRECATION: ds_store is being installed using the legacy 'setup.py install' method, because it does not have a 'pyproject.toml' and the 'wheel' package is not installed. pip 23.1 will enforce this behaviour change. A possible replacement is to enable the '--use-pep517' option. Discussion can be found at pypa/pip#8559
the warning points to the following discussion: pypa/pip#8559
I ran into the issue fixed by #3, because the version at https://pypi.org/project/ds_store doesn't have that fix included. Mind publishing the latest version there?
If a local .DS_Store file, ds_store works well on it. ex:
from ds_store import DSStore
def local():
d = DSStore.open('~/.DS_Store', 'r')
for i in d._traverse(None):
print(i, i.filename)
if __name__ == '__main__':
local()
If a remote .DS_Store, ex: http://127.0.0.1/.DS_Store, how to make ds_store work without downloading the file ?
A stand alone script that takes an .DS_Store
file as input and outputs the parsing output.
The code at the top of split2 takes only elements 0 and 1, as if it assumes the list is always length 2:
https://github.com/dmgbuild/ds_store/blob/main/src/ds_store/store.py#L474-L476
But then code inside _rebalance seems to pass in a list of length 3:
https://github.com/dmgbuild/ds_store/blob/main/src/ds_store/store.py#L884-L893
Does this actually work? I notice the tests for this library are fairly sparse.
Bitcoin Core uses the ds_store module to generate a DMGs DS_Store (arrangement and background).
Newer macOS Versions (tested 10.12 and. 10.14) can't open the volume โ containing the DS_Store. file โ anymore (while older versions like 10.8 still can). Sometimes Finder even crashes.
The DMG in case someone likes to test this:
https://bitcoincore.org/bin/bitcoin-core-0.17.0/bitcoin-0.17.0-osx.dmg
Removing the DS_Store file cures the issue.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.