这是indexloc提供的服务,不要输入任何密码
Skip to content

Add a custom url handler #547

@kskyten

Description

@kskyten

I would like to be able to use QR code scans in scripts. Currently I do this by using sharing the scanned barcode with termux and using a custom file editor script. This works, but it is not ideal as the scanned barcode has to be saved in ~/downloads. I found out that I could launch the barcode scanner by running

termux-open zxing://scan/?ret=http://ddg.gg={CODE}

This will perform a search using the scanned barcode in duckduckgo. Is it possible to replace the return url with a custom version like termux://myscript/{CODE}, that would pass the results of the scan to a script called myscipt?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions