Skip to content
Snippets Groups Projects
Commit 94dc3213 authored by JennaHuntsman's avatar JennaHuntsman
Browse files

Add whitespace trimming feature.

parent 8fd6f9a9
No related branches found
No related tags found
No related merge requests found
......@@ -57,9 +57,10 @@ desktopfile
print "Installing menu entries via XDG..."
xdg-icon-resource install --novendor --size 256 "${install_prefix}/${VIEWERNAME,,}_icon.png" ${VIEWERNAME}-Viewer
#NOTE: Above command takes the path to the icon to install && The name of the icon to be used by XDG. This should always be in the format of "x-Viewer" to avoid potential naming conflicts, as per XDG spec.
xdg-desktop-menu install --novendor "${installation_prefix}"/${VIEWERNAME,,}-${CHANNELNAME}-viewer.desktop
xdg-desktop-menu install --novendor "${installation_prefix}"/"${VIEWERNAME,,}"-"${CHANNELNAME}"-viewer.desktop
}
CHANNELNAME=$(echo "${CHANNELNAME}" | xargs) #Trim leading and / or tailing whitespace from CHANNELNAME
if [ "$UID" == "0" ]; then
# system-wide
install_desktop_entry "${install_prefix}" /usr/local/share/applications
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment