Code Monkey home page Code Monkey logo

Comments (5)

chmln avatar chmln commented on August 22, 2024 2

@Dieterbe I've added --all to handlr list which will show all the associations, user and system :)

about something like handlr explain that says, for a given file, how it arrives at a decision?

Yeah I might add a verbose option to handlr get at some point. What do you think ?

from handlr.

Dieterbe avatar Dieterbe commented on August 22, 2024

handlr list --all is helpful, and the verbose flag sounds good. thank you!

FWIW, as a user it's not necessarily clear why certain associations exist (for example when i run the new handlr list --all i have "added associations" which seem to come from desktop files in /home/dieter/.local/share/applications/, but also from /usr/share/applications/, but confusingly other files from /usr/share/applications seem to go under "System Apps", not "added associations") a quick note about where the associations come from, maybe with a link to the relevant spec, would be really useful I think.

from handlr.

chmln avatar chmln commented on August 22, 2024

@Dieterbe this feature is now released in v0.5 :)

from handlr.

Dieterbe avatar Dieterbe commented on August 22, 2024

So, which specs should one read to understand how this tool works?
I was reading the source and through https://crates.io/crates/freedesktop-desktop-entry I found out it uses the spec https://specifications.freedesktop.org/desktop-entry-spec/latest/index.html

which other ones ? https://www.freedesktop.org/wiki/Specifications/file-uri-spec/ ? https://www.freedesktop.org/wiki/Specifications/shared-mime-info-spec/ ?
https://specifications.freedesktop.org/mime-apps-spec/mime-apps-spec-1.0.1.html ?

so far, seems mime-apps-spec is the most relevant one. Again, some guidance to users of this tool about what they should know, would be very helpful.

edit: after some reverse engineering, it seems handlr follows what mime-apps-spec says, and uses the files mentioned there. associations are maintained in $XDG_CONFIG_HOME/mimeapps.list (even when set through handlr), and not in the handlr config file. sort of stuff would be very useful to document . some more things i found out, the "selector" to choose how to open is only in case you have multiple entries on the priority mimeapps config. it doesn't let you choose if you have different choices at different priority levels.

from handlr.

chmln avatar chmln commented on August 22, 2024

@Dieterbe good points. If you wanna write up a quick paragraph to add it to the README I would really appreciate it

from handlr.

Related Issues (20)

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.