Comments (5)
@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.
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.
@Dieterbe this feature is now released in v0.5 :)
from handlr.
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.
@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)
- Unable to open m3u with default application
- panic when mimeapps.list doesn't end with newline? HOT 1
- Compile errors due to breaking changes in Clap 3.0 betas
- Panic when mimeapps.list is not writable HOT 2
- open multiple files by spawning mulitple programs
- set handlers really by extensions, not merely by mime-type hiding behind extensions
- mimeo-style custom association file
- Panic when using '<' or '>' characters in a commented line in mimeapps.list
- handlr does not respect desktop file IDs from subdirectories
- An example of setting the default terminal within filemanagers? HOT 1
- What's the proper way of setting up handler to open telegram links?
- no handlers found for 'application/x-zerosize'
- handlr incorrectly handling `Terminal` property with launch command
- command to run a .desktop file
- Error after installing HOT 1
- Clap Error HOT 6
- Base mime on file extension not on contents HOT 1
- sphere files (.sph)
- Cancelling selection for `https://` opens Brave web browser anyway HOT 1
- Is this repo dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from handlr.