3 ms·
Right but you've just retrospectively decided that Thunar and Xfce4-terminal are the ideal unit of "doing one thing". It's a completely arbitrary threshold. Th
by IshKebab 5y ago
Right but you've just retrospectively decided that Thunar and Xfce4-terminal are the ideal unit of "doing one thing". It's a completely arbitrary threshold.
Thunar can unzip files. Oh no it's doing two things! Shouldn't it leave that job up to `tar`? Xfce4-terminal has tabs. Erm shouldn't that be the job of the window manager like on Mac? Stop doing more than one thing!!
- DarylZero 5y agoThunar should call an external program to unzip.
- IshKebab 5y agoIt should use a third party library. Having a file manager use `system()` to unzip files would be insane for so so many reasons. You could potentially do it with something like D-Bus I suppose. But it would still probably be simply better if it was built in.
- DarylZero 5y agoHuh? What's wrong with calling the unzip binary? Using a library is only a slight optimization (though I admit -- it's better). D-BUS???
- IshKebab 5y ago1. Way more likely to break because the user doesn't have the program installed or it isn't in PATH or whatever. 2. You have to do all communication through argv and parsing stdout which is extremely error-prone. 3. You're almost certainly not going to get proper progress reporting. 4. It can't be interactive (e.g. how do you implement the "This file exists, what do you want to do?" dialog?) It's so obviously worse I'm surprised you even asked. I'm not sure what "D-BUS??" means but D-Bus mitigates a few of those problems at least.