Code Monkey home page Code Monkey logo

Comments (2)

shundhammer avatar shundhammer commented on June 21, 2024 1

That makes a number of assumptions that may work in some scenarios, but not in others:

  • xdg-mime is installed and configured correctly.
  • gtk-launch is installed and configured correctly.

While this probably works on a default GNOME or Xfce4 installation, it may not work at all or only partially on KDE Plasma or on other, more exotic desktops.

Also, it needs several indirections before the interesting thing is started: Your file manager.

In a real-world setup, it would have to do that xdg-mime query default inode/directory the first time that %filemanager macro is used and - importantly - log the result to give the user a fighting chance to do something in case it didn't work as expected.

Using %p instead of %d again makes an assumption: That the file manager that was picked up actually behaves like you described, to set the keyboard focus in the newly opened window to that file, and not simply execute it instead (if it is an executable) or start the associated application if it's a known MIME type that has one.

I'd really hate to get LibreOffice started with a spreadsheet or a text document that I had selected when I just want to open a file manager there.

from qdirstat.

shundhammer avatar shundhammer commented on June 21, 2024

If you know that this works in your environment, you are free to change the command line for the "Open File Manager here" cleanup action in the "Cleanup Actions" configuration dialog to the one you proposed here.

But I don't think that would be a good default for all users.

from qdirstat.

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.