WebApps: Make file handlers show up in Nautilus and Nemo file managers.
Previously, Nautilus and Nemo would know that file handling web apps could handle files, but not what types of files. This meant that web apps would not show up in the "Open With" menus of these file handlers. The cause of this issue was two fold: 1. xdg-desktop-menu install my-file.desktop only runs update-desktop-database when installing a system wide desktop file (in Chrome, we only ever install in user mode). 2. update-desktop-database doesn't run on ~/.local/share/applications unless explicitly requested to. This meant that the mimeinfo.cache file in ~/.local/share/applications (which these file managers use to determine what apps can open different mime types) was not being updated. The fix is to run update-desktop-database $XDG_DATA_HOME/applications after installing a new entry in the desktop menu, to ensure mimeinfo.cache is updated. Bug: 1027994 Change-Id: Ia71fa4d49030ecec6622a5b0ab8e18facc303274 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2002043 Commit-Queue: Jay Harris <harrisjay@chromium.org> Reviewed-by:Alan Cutter <alancutter@chromium.org> Cr-Commit-Position: refs/heads/master@{#732212}
Showing
Please register or sign in to comment