chmln / handlr

A better xdg-utils
MIT License
616 stars 24 forks source link

XDG-utils-handlr doesn't cover all xdg-tools commands #15

Open OctarineSourcerer opened 4 years ago

OctarineSourcerer commented 4 years ago

Hi! I've found that I've had some issues with updating some software when it uses some xdg-tools commands in its install script; here's an example when I was updating reaper-bin from the AUR:

REAPER installer -- install to /home/dan/.cache/yay/reaper-bin/pkg/reaper-bin/opt

Copying files... done
Writing uninstall script to /home/dan/.cache/yay/reaper-bin/pkg/reaper-bin/opt/REAPER/uninstall-reaper.sh
Installing desktop integration for user.../home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 520: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 521: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 525: xdg-icon-resource: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 528: xdg-desktop-menu: command not found
/home/dan/.cache/yay/reaper-bin/src/reaper_linux_x86_64/install-reaper.sh: line 594: xdg-mime: command not found

Is it possible to handle those commands with handlr's xdg-utils?

chmln commented 3 years ago

@OctarineSourcerer I'm open to the idea but covering the entire suite hasn't been a priority as I've been focused on core handlr functionality. Would appreciate some input on this from you guys on which xdg commands ones are the most important

OctarineSourcerer commented 3 years ago

That's totally fair. Honestly I don't know what ones are most used; the big hit for me is that when I update, reaper's install script uses xdg-icon-resource, xdg-desktop-menu and xdg-mime, so I have to go and install xdg-tools temporarily, then install xdg-utils-handlr again afterwards. I can't install both at the same time, so I can either have handlr's shim, or all xdg-tools.

I'd appreciate external input on the most common ones used too.

Is there any way to use xdg-utils' stuff for commands handlr hasn't got yet, while still having the xdg-utils-handlr shim?

chmln commented 3 years ago

@OctarineSourcerer

Is there any way to use xdg-utils' stuff for commands handlr hasn't got yet, while still having the xdg-utils-handlr shim?

I'd say just take the xdg-open and put it in some local bin directory, then replace xdg-utils-handlr with xdg-utils. That way you get handlr's xdg-open and everything else from the xdg suite

OctarineSourcerer commented 3 years ago

@OctarineSourcerer

Is there any way to use xdg-utils' stuff for commands handlr hasn't got yet, while still having the xdg-utils-handlr shim?

I'd say just take the xdg-open and put it in some local bin directory, then replace xdg-utils-handlr with xdg-utils. That way you get handlr's xdg-open and everything else from the xdg suite

That's a great idea, thank you! Doing that :)