Giter Site home page Giter Site logo

Comments (6)

0jdxt avatar 0jdxt commented on June 8, 2024

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.

Dieterbe avatar Dieterbe commented on June 8, 2024

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.

0jdxt avatar 0jdxt commented on June 8, 2024

Could you give an example? So I can understand better what you mean

from handlr.

0jdxt avatar 0jdxt commented on June 8, 2024

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.

freed00m avatar freed00m commented on June 8, 2024

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.

chmln avatar chmln commented on June 8, 2024

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)

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.