Comments (2)
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.
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)
- File type statistics don't add up = literally HOT 10
- Qt6 support? HOT 7
- File type statistics for packages sometimes allowed, sometimes not HOT 9
- Find files subtree not updated when the DirTree is reloaded HOT 2
- Unexpected results when refreshing the locate files window HOT 2
- Accelerator clashes HOT 6
- Fonts can't always be resized in the output window HOT 1
- Crash during recursive cleanup with refresh policy "assume deleted" HOT 10
- Cross filesystems setting not respected HOT 2
- Possibly unintended change to the sorting of hardlinks HOT 1
- Crash when unable to open a cache file HOT 5
- 100% CPU after reading is aborted HOT 1
- Package member file sometimes not showing package data in file details view HOT 2
- Erratic crash apparently related to the Unpkg dialog HOT 12
- Question for use in Linux with files with multiple hard links HOT 2
- qdirstat-cache-writer does not operate correctly with relative paths HOT 2
- Crash when selecting ignored root in Unpackaged view
- Ignored directory has children that are not ignored HOT 1
- Crash when selecting the dot entry of an aborted package read HOT 1
- Option to store uid, gid and perms in cache file HOT 10
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 qdirstat.