diff options
author | Rex Dieter <rdieter@math.unl.edu> | 2016-05-05 07:13:32 -0500 |
---|---|---|
committer | Rex Dieter <rdieter@math.unl.edu> | 2016-05-05 07:13:32 -0500 |
commit | 9dac27a442b0e44b3f235798b77715e26169500f (patch) | |
tree | 3d6e5ea0bd43b4b2fbff3620fdf3006e2d574ce2 | |
parent | 6acfbbe3fc5fa545db9089da4448091ce598de4c (diff) |
xdg-mime does not write the file it reads in a query (BR95051)
use
$XDG_CONFIG_HOME/mimeapps.list
instead of (deprecated)
$XDG_DATA_HOME/applications/mimeapps.list
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | scripts/xdg-mime.in | 8 |
2 files changed, 7 insertions, 4 deletions
@@ -1,5 +1,8 @@ === xdg-utils 1.1.2 (unreleased) === +2016-05-05 Rex Dieter <rdieter@fedoraproject.org> + * xdg-mime: xdg-mime does not write the file it reads in a query (BR95051) + 2016-04-15 Rex Dieter <rdieter@fedoraproject.org> * xdg-mime: properly handle varied ktraderclient5 output (BR94946) diff --git a/scripts/xdg-mime.in b/scripts/xdg-mime.in index 63b8a82..61b12f1 100644 --- a/scripts/xdg-mime.in +++ b/scripts/xdg-mime.in @@ -238,10 +238,10 @@ make_default_generic() { # $1 is vendor-name.desktop # $2 is mime/type - # Add $2=$1 to XDG_DATA_HOME/applications/mimeapps.list - xdg_user_dir="$XDG_DATA_HOME" - [ -n "$xdg_user_dir" ] || xdg_user_dir="$HOME/.local/share" - default_file="$xdg_user_dir/applications/mimeapps.list" + # Add $2=$1 to XDG_CONFIG_HOME/mimeapps.list + xdg_config_home="$XDG_CONFIG_HOME" + [ -n "$xdg_config_home" ] || xdg_config_home="$HOME/.config" + default_file="$xdg_config_home/mimeapps.list" DEBUG 2 "make_default_generic $1 $2" DEBUG 1 "Updating $default_file" [ -f "$default_file" ] || touch "$default_file" |