basedash / dockhunt-cli Goto Github PK
View Code? Open in Web Editor NEWScans which apps you have in your macOS dock and shares the result on Dockhunt.
Home Page: https://www.dockhunt.com
Scans which apps you have in your macOS dock and shares the result on Dockhunt.
Home Page: https://www.dockhunt.com
Cli application
When I open the app or run the script npx dockhunt, it will throw an error:
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: Cannot read properties of undefined (reading 'dict')
at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
at getDockContents (/snapshot/dist/index.cjs)
Test env
MacBook Pro (Retina, 15-inch, Mid 2015)
MacOS Mojave 10.14.6
The Catalyst apps (iPad apps compatible with apple machines running on Apple Silicon) don't have the same structure as native MacOS apps, so the lookup for icons fails for these apps since AppName.app/Contents/Resources directory doesn't exist for these apps.
Beautiful website!
Noticed that Soulver and Firefox are not detected correctly:
I've already converted the icns files to PNG using sips
and optimized them using imageoptim
:
Note that you can also get the right icon file name using something like:
defaults read /Applications/<Any-App>.app/Contents/Info.plist CFBundleIconFile
e.g.
defaults read '/Applications/Firefox Developer Edition.app/Contents/Info.plist' CFBundleIconFile
Original issue: Basedash/dockhunt#28
Describe the bug
Scanning your dock...
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))
at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
at getDockContents (/snapshot/dist/index.cjs)
To Reproduce
Steps to reproduce the behavior:
Expected behavior
No error.
Additional context
Ventura 13.1 (22C65)
Darwin asgard07.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
The icons for Rider and Blender render incorrectly on dockhunt.com
https://www.dockhunt.com/users/thejustinwalsh
Let me know if there is any other info that would be helpful to provide.
Related to #7 but a feature request
Example structure of the Mix app, which is a catalyst app:
$ ls -l /Applications/Mix.app/
total 0
lrw-r--r-- 1 root wheel 15 Jan 20 09:20 WrappedBundle -> Wrapper/Mix.app
drwxr-xr-x 5 root wheel 160 Jan 20 09:20 Wrapper
$ ls -l /Applications/Mix.app/Wrapper/
total 16
-rw-r--r-- 1 root wheel 618 Jan 20 09:20 BundleMetadata.plist
drwxr-xr-x@ 87 root wheel 2784 Jan 20 09:20 Mix.app
-rw-r--r-- 1 root wheel 1353 Jan 20 09:20 iTunesMetadata.plist
$ ls -l /Applications/Mix.app/Wrapper/Mix.app/
total 41656
-rw-r--r--@ 1 root wheel 6613 Jan 18 12:59 ActivityCell.nib
-rw-r--r--@ 1 root wheel 3063 Jan 18 12:59 [email protected] # AppIcon
-rw-r--r--@ 1 root wheel 3787 Jan 18 12:59 AppIcon76x76@2x~ipad.png # AppIcon used in the dock
-rw-r--r--@ 1 root wheel 975960 Jan 18 12:59 Assets.car
# ...
# Rest of the files
# ...
I am happy to open a PR for this!
App name: Microsoft Outlook (com.microsoft.Outlook)
Check the second icon on the dock: https://www.dockhunt.com/users/oscargong1995
App name: Sublime Text (com.sublimetext.4)
Also check: https://www.dockhunt.com/users/oscargong1995
I attached the correct Icon.
Github doesn't allow icns type attachment, I compressed it.
Heyyy! First of all, amazing work folks, this is an awesome product 😭😭
Quite random app, but is there any chance you can update the Tweek app icon?
https://www.dockhunt.com/apps/Tweek
Tweek
Fast and minimal weekly calendar app
Unfortunately I couldn't find any .icns
file in the package contents. It seems like a React Native built app, so all I could find are some .png
s, would these be enough?
When I run the dockhunt app I get the following error....
Scanning your dock...
node:internal/process/promises:279
triggerUncaughtException(err, true /* fromPromise */);
^
TypeError: Cannot read properties of undefined (reading '0')
at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
at getDockContents (/snapshot/dist/index.cjs)
When I run the CLI I get this error....
const appDirectoryUrl = parsedAppData.dict[0].dict[0].string[0];
^
TypeError: Cannot read properties of undefined (reading '0')
My working theory is that I have intentionally added in spaces in my dock that don't show as apps and that breaks the script that gets the app icons.
How to add spaces: https://dev.to/shadowfaxrodeo/til-how-to-add-spaces-to-the-dock-on-macos-m50.
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.