Git Product home page Git Product logo

alfred-py3-default-browser's People

Contributors

dependabot[bot] avatar wmorland avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

alfred-py3-default-browser's Issues

Doesn't detect anything on macOS Monterey

[05:25:25.174] Py3 Default Browser[Script Filter] Queuing argument '(null)' [05:25:25.252] Py3 Default Browser[Script Filter] Script with argv '(null)' finished [05:25:25.264] ERROR: Py3 Default Browser[Script Filter] Code 1: Traceback (most recent call last): File "/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/defaultbrowser.py", line 15, in <module> import objc File "/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/lib/objc/__init__.py", line 6, in <module> from . import _objc ImportError: cannot import name '_objc' from partially initialized module 'objc' (most likely due to a circular import) (/Users/username/Library/Application Support/Alfred/Alfred.alfredpreferences/workflows/user.workflow.A131F7C1-120F-4080-A739-E357320942A8/lib/objc/__init__.py)

Use custom icons for each browser

Currently we just use generic icons. By using the same icons as used in by the App (for example in the doc) it will be easier for users to quickly pick a browser at a glance.

We will need to either store or fetch the icons and then set them when we add items:

if browser == current_default:
wf.add_item(title=browser, icon=workflow.ICON_FAVOURITE, valid=False)
else:
wf.add_item(
title=browser, icon=workflow.ICON_WEB, valid=True, arg=browser
)

For reference @stuartcryan does this by having a folder with different images already available https://github.com/stuartcryan/defaultbrowser-alfred-workflow/tree/master/workflow/images

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.