Giter Club home page Giter Club logo

dockhunt's People

Contributors

maxmusing avatar robertcoopercode avatar tedspare avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dockhunt's Issues

Update Twitter details

Is there any way to update the Twitter data with npx dockhunt?
Maybe some special flag to refresh bio and links?

Error With Sideloaded iPhone Binaries

When running DockHunt I receive the following error:

`​Scanning your dock...

node:fs:1405
handleErrorFromBinding(ctx);
^

Error: ENOENT: no such file or directory, scandir '/Applications/GroupMe.app/Contents/Resources'
at Object.readdirSync (node:fs:1405:3)
at Object.readdirSync (pkg/prelude/bootstrap.js:1309:35)
at getIconPath (/snapshot/dist/index.cjs)
at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
at getDockContents (/snapshot/dist/index.cjs) {
errno: -2,
syscall: 'scandir',
code: 'ENOENT',
path: '/Applications/GroupMe.app/Contents/Resources'
}`

This app was installed using an .ipa file compiled for iPhone and Sideloadly. If you need more information I would be happy to help. Thanks!

TypeError: undefined is not iterable (cannot read property Symbol(Symbol.iterator))

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:

  1. Open DuckHunt
  2. See error
  3. Cry.

Expected behavior

No error.

Screenshots
image

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

App crashes when in downloads folder

When I start thew App from my downloads folder, I get this error:
(MacOS 13.2 (22D49), Intel)

Scanning your dock...

Found the following pinned apps in your dock:

•  Elk
•  BBEdit
•  iTerm
•  Safari
•  Mail
•  NetNewsWire
•  Discord
•  Kalender
•  Nachrichten
•  Karten
•  Fotos
•  Erinnerungen
•  Kontakte
•  TV
•  Musik
•  Broadcasts
•  GraphicConverter 11
•  App Store
•  Systemeinstellungen
•  Steam
node:fs:1349
  handleErrorFromBinding(ctx);
  ^

Error: EROFS: read-only file system, mkdir '/private/var/folders/xk/_zlrj7391939rw0wzqk0s7fm0000gn/T/AppTranslocation/6C183074-E1F5-40E5-A647-CC82F8E5CBD9/d/Dockhunt.app/Contents/Resources/temp_1675747491055_icon_conversion'
    at Object.mkdirSync (node:fs:1349:3)
    at Object.mkdirSync (pkg/prelude/bootstrap.js:1642:33)
    at getDockContents (/snapshot/dist/index.cjs)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -30,
  syscall: 'mkdir',
  code: 'EROFS',
  path: '/private/var/folders/xk/_zlrj7391939rw0wzqk0s7fm0000gn/T/AppTranslocation/6C183074-E1F5-40E5-A647-CC82F8E5CBD9/d/Dockhunt.app/Contents/Resources/temp_1675747491055_icon_conversion'
}

Ability to delete account

Is your feature request related to a problem? Please describe.

I associated my dock with the wrong twitter account, and need a way to start over.

Describe the solution you'd like

A "delete my data" button on my dock page.

Describe alternatives you've considered

None

Additional context

None

Error when scanning Adobe Acrobat Reader

When I try to run the app, it gives me this error:

​Scanning your dock...

node:fs:1405
  handleErrorFromBinding(ctx);
  ^

Error: ENOENT: no such file or directory, scandir '/Applications/Adobe Acrobat Reader DC.app/Contents/Resources'
    at Object.readdirSync (node:fs:1405:3)
    at Object.readdirSync (pkg/prelude/bootstrap.js:1309:35)
    at getIconPath (/snapshot/dist/index.cjs)
    at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
    at getDockContents (/snapshot/dist/index.cjs)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -2,
  syscall: 'scandir',
  code: 'ENOENT',
  path: '/Applications/Adobe Acrobat Reader DC.app/Contents/Resources'
}

Error when using spacers

If you have spacers in your dock, which can be added with a command, the App will throw this error:

node:internal/process/task_queues:96
    runMicrotasks();
    ^

TypeError: Cannot read properties of undefined (reading '0')
    at getAppNamesToIconPaths (/snapshot/dist/index.cjs)
    at getDockContents (/snapshot/dist/index.cjs)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

Command for adding spacers:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'

Error when iOS apps are in the dock

Describe the bug
Dock scanning fails if any iOS apps are in the dock. iOS apps can be run on Apple Silicon Macs.

To Reproduce
Steps to reproduce the behavior:

  1. Add any iOS app to the dock
  2. Run Dockhunt

Expected behavior
Scanning should have been completed without any issues.

Screenshots

Screenshot 2023-02-06 at 9 30 56 pm

Error when scanning dock

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

Github Login

Is your feature request related to a problem? Please describe.

With Twitter ending API access soon, and the future of the platform being uncertain at best, perhaps this should support login from other platforms? Github seems obvious, but email auth would be ideal.

Describe the solution you'd like

More options for account authentication than just twitter.

Describe alternatives you've considered

There doesn't appear to be any alternative option.

Doesn't recognize spacers

Describe the bug

The dock has the ability to insert empty spaces to create program groups. Dockhunt doesn't recognize these spacers, so instead of looking like this:

image

It looks like this:

image

https://www.dockhunt.com/users/TwippedTech

To Reproduce

These two commands insert spacers into the dock configuration:

defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="spacer-tile";}'
Markup
defaults write com.apple.dock persistent-apps -array-add '{"tile-type"="small-spacer-tile";}'

They can then be dragged around just like application icons.

UnhandledPromiseRejection error from CLI

When I run npx dockhunt from iTerm I get the following error:

Scanning your dock...

Found the following pinned apps in your dock:

•  Google Chrome
•  Messages
•  Texts
•  Reflect
•  Figma
•  Cron
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason "Bad response from Dockhunt `check-apps` endpoint".] {
  code: 'ERR_UNHANDLED_REJECTION'
}

Here is my npx version details:

> npx -v
9.4.0

Also I should note that I got this same error when using the downloaded macOS app and I've now moved to the npx version which is throwing the same error.

I'm also getting an error when trying to Sign In with my Twitter account @jdsimcoe:

https://www.dockhunt.com/api/auth/signin?error=Callback
image

Sorting by added date feature

Is your feature request related to a problem? Please describe.

Hi there! I wonder if you could add sorting by added date feature!

Login with GitHub

Since Twitter login is probably not going to be free, why don't you add a GitHub login option? I want it even if Twitter keeps it free.

Error reading fs

When I try to run Dockhunt, it gives me this error (running from app, but cli is also downloaded):

​Scanning your dock...

Found the following pinned apps in your dock:

•  Safari
•  Pages
•  Music
•  Podcasts
•  App Store
•  Google Chrome
•  Sublime Text
•  qbittorrent
•  Notes
•  Slack
•  Gifski
•  OpenEmu
•  Notion
•  Figma
•  Terminal
node:fs:1349
  handleErrorFromBinding(ctx);
  ^

Error: EROFS: read-only file system, mkdir '/private/var/folders/y4/039y224d3k92kwy8k4xhyzqr0000gn/T/AppTranslocation/4A32B0B1-53D6-4793-8BA7-890A8AED77AE/d/Dockhunt.app/Contents/Resources/temp_1675264918196_icon_conversion'
    at Object.mkdirSync (node:fs:1349:3)
    at Object.mkdirSync (pkg/prelude/bootstrap.js:1642:33)
    at getDockContents (/snapshot/dist/index.cjs)
    at processTicksAndRejections (node:internal/process/task_queues:96:5) {
  errno: -30,
  syscall: 'mkdir',
  code: 'EROFS',
  path: '/private/var/folders/y4/039y224d3k92kwy8k4xhyzqr0000gn/T/AppTranslocation/4A32B0B1-53D6-4793-8BA7-890A8AED77AE/d/Dockhunt.app/Contents/Resources/temp_1675264918196_icon_conversion'
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.