Created attachment 23672 [details] [review] access(mime_dir, F_OK) check When you try to run update-mime-database on a non-existant directory (due to type or someone suggesting you to run it like this), it tells you about missing write permissions and rerunning it as root. This can be kind of irritating if you already are root. It would be nice for the update-mime-database tool to check for existence of the directory prior to checking for writability, and issue a more fitting error message in the absence of the directory.
* update-mime-database.c (main): Patch from Martin von Gagern <Martin.vGagern@gmx.net> to give a better error message when a directory doesn't exist (Closes: #20552)
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.