ensure desktop-file-utils is installed
A Linux user reported an issue while installing riseupvpn:
Traceback (most recent call last): File "/snap/riseup-vpn/184/meta/hooks/install", line 26, in <module> subprocess.call([update-desktop-database']) File "/usr/lib/python3.11/subprocess.py", line 389, in call with Popen(*popenargs, **kwargs) as p: File "/usr/lib/python3.11/subprocess.py", line 1024, in init self._execute_child(args,executable, preexec_fn, close_fds, File "/usr/lib/python3.11/subprocess.py", line 1901, in_execute_child raise child_exception_type(errno_num, err_msg, err_filename) FileNotFoundError: [Errno 2] No such file or directory: 'update-desktop-database'
They figured out the package desktop-file-utils
was missing.
This issue is there to check if this dependency is taken care of during the installation process. If not, we should probably require to install that package.
I think the user tried to install from snap.