-
Bug
-
Resolution: Duplicate
-
Minor
-
None
-
CentOS Stream 10
-
None
-
Yes
-
None
-
rhel-display-desktop-foundation
-
ssg_display
-
None
-
None
-
None
-
None
-
None
-
Unspecified
-
None
Running xdg-icon-resources install produces an error and fails to install icons
Steps to reproduce
1. Install google-chrome stable through official google-chrome repository
2. /usr/bin/xdg-icon-resource: line 1076: unexpected EOF while looking for matching ``'
3. Icons for google chrome and google chrome installed web apps fail to appear
further investigation
$ podman run -it -v ./hicolor:/mnt:z centos:10 # dnf install xdg-utils # mkdir -p /usr/share/icons/hicolor # xdg-icon-resource install --size 16 /mnt/16x16/apps/google-chrome.png /usr/bin/xdg-icon-resource: line 1076: unexpected EOF while looking for matching ``'
Running the xdg-icon-resources script through shellcheck I see the following outpuit
$ shellcheck myscript
Line 981:
path="$(xdg_realpath "$1")" 2> /dev/null` # Normalize path
^-- SC1078 (warning): Did you forget to close this backtick expansion?
Line 989:
kde_icon_dirs=`kde${KDE_SESSION_VERSION}-config --path icon 2> /dev/null |sed 's/:/ /g'`
^-- SC1079 (info): This is actually an end quote, but due to next char it looks suspect.
Line 1014:
}
^-- SC1089 (error): Parsing stopped here. Is this keyword correctly matched up?
Line 1026:
fi
^-- SC1089 (error): Parsing stopped here. Is this keyword correctly matched up?
Line 1065:
icon_icon_file=`echo "$icon_file" | sed 's/\.[a-z][a-z][a-z]$/.icon/'`
^-- SC1009 (info): The mentioned syntax error was in this simple command.
Line 1074:
case "$action" in
^-- SC1009 (info): The mentioned syntax error was in this case expression.
Line 1075:
install)
^-- SC1073 (error): Couldn't parse this case item. Fix to allow more checks.
Line 1076:
save_umask=`umask`
^-- SC1072 (error): Fix any mentioned problems and try again.
^-- SC1073 (error): Couldn't parse this backtick expansion. Fix to allow more checks.
Line 1125:
^-- SC1072 (error): Fix any mentioned problems and try again.
$
Editing line 981 allows me to run the script and install the icon, but further installations from chrome web apps don't seem to work.
- impacts account
-
RHEL-72199 xdg-icon-resource does not work properly with google-chrome icons
-
- Closed
-