FS#33316 - [xdg-utils] xdg-desktop-menu fails unless /usr/share/desktop-directories/ exists in filesystem
Attached to Project:
Arch Linux
Opened by Jon Gjengset (Jonhoo) - Monday, 07 January 2013, 00:46 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 07 January 2013, 18:50 GMT
Opened by Jon Gjengset (Jonhoo) - Monday, 07 January 2013, 00:46 GMT
Last edited by Andreas Radke (AndyRTR) - Monday, 07 January 2013, 18:50 GMT
|
Details
Description: Calling xdg-desktop-menu install to install a
.desktop file fails if the directory for .directory files
(/usr/share/desktop-directories/) does not exist. In Arch,
this directory does not exist by default, so the
installation of .desktop files now fails even though
/usr/share/applications/ exists and is writable.
Additional info: xdg-utils 1.1.0.git20121008-1 # XDG_UTILS_DEBUG_LEVEL=3 xdg-desktop-menu install test.desktop Install locations for *.directory files: xdg_user_dir: /root/.local/share/desktop-directories xdg_global_dir: kde_user_dir: kde_global_dir: gnome_user_dir: gnome_global_dir: xdg-desktop-menu: No writable system menu directory found. Steps to reproduce: 1. Verify that /usr/share/desktop-directories does not exist (it did not on my Arch install at least) 2. Install any .desktop file with xdg-desktop-menu install 3. Notice that the operation fails with the message "No writable system menu directory found." 4. Create the directory /usr/share/desktop-directories as root (which is not needed for *.desktop files) 5. Run xdg-desktop-menu install again 6. Notice that the script now runs correctly |
This task depends upon
Closed by Andreas Radke (AndyRTR)
Monday, 07 January 2013, 18:50 GMT
Reason for closing: Fixed
Additional comments about closing: 1.1.0.git20121008-2
Monday, 07 January 2013, 18:50 GMT
Reason for closing: Fixed
Additional comments about closing: 1.1.0.git20121008-2
I cannot imagine a case where you have not one single file in /usr/share/applications/ installed before the post.install msg is called.