3 ms·
Thunar should call an external program to unzip.
by DarylZero 5y ago
Thunar 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.