Comments (6)
handlr can be used as a replacement for xdg-open
so, yes. I create .desktop files for programs without them, even for personal scripts. Some mimetypes i choose between GUI or CLI. I hope this answers your question.
from handlr.
Hi @0jdxt thanks for your reply. how do you write the desktop files such that they work whether you're in a terminal already, or when you're in a graphical UI and need to create a fresh terminal?
from handlr.
Could you give an example? So I can understand better what you mean
from handlr.
I think I got it, I recently set mine up so amfora opens Gemini links, just set Terminal=true
in the desktop file
from handlr.
This is still eluding me.
I've tried something like
[Desktop Entry]
Type=Application
Name=Neovim editor
Exec=/usr/bin/nvim %F
Terminal=true
Icon=gvim
Categories=Utility;TextEditor
Then nothing happens, it blinks possibly with error I can't read. While command outside handlr open works fine and other binaries like "notify-send" also works and shows me the filename.
Nano also prints "Too many errors from stdin"
I am beginning to think the setup is fragile.
EDIT: it's a bug, xdg-utils will launch the app as expected, handlr will send app into background after spawn.. I will attempt to file an issue #34
from handlr.
handlr
now properly supports Terminal=true
apps along with GUI ones.
Feel free to re-open or create new issues if you run into problems
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.