Merge pull request #88 from GreatNovaDragon/icon_from_os

Prefer to use Theme Icons
This commit is contained in:
Oskar Manhart 2024-05-15 10:12:38 +02:00 committed by GitHub
commit c563b38847
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
34 changed files with 114 additions and 11 deletions

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES=""
# System Icon
ICON="AdobeUpdate"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="application/vnd.adobe.aftereffects.project;application/vnd.adobe.aftereffects.template;"
# System Icon
ICON="AdobeAfterEffect"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES=""
# System Icon
ICON="AdobeAudition"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobeBridge"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobeBridge"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobeBridge"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Windows"
# GNOME mimetypes
MIME_TYPES=""
# System Icon
ICON="Terminal"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.template.macroEnabled.12;application/vnd.ms-excel.addin.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;"
# System Icon
ICON="ms-excel"s

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.template.macroEnabled.12;application/vnd.ms-excel.addin.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;"
# System Icon
ICON="ms-excel"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.template.macroEnabled.12;application/vnd.ms-excel.addin.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;"
# System Icon
ICON="ms-excel"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-excel;application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;application/vnd.openxmlformats-officedocument.spreadsheetml.template;application/vnd.ms-excel.sheet.macroEnabled.12;application/vnd.ms-excel.template.macroEnabled.12;application/vnd.ms-excel.addin.macroEnabled.12;application/vnd.ms-excel.sheet.binary.macroEnabled.12;"
# System Icon
ICON="ms-excel"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="application/illustrator;"
# System Icon
ICON="AdobeIllustrator"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="application/x-adobe-indesign-interchange;application/x-adobe-indesign;"
# System Icon
ICON="AdobeIndesign"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES=""
# System Icon
ICON="AdobeLightroom"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msonenote;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msonenote;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msonenote;"
# System Icon
ICON="ms-onenote"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msonenote;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-outlook;application/octet-stream;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-outlook;application/octet-stream;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-outlook;application/octet-stream;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-outlook;application/octet-stream;"
# System Icon
ICON="ms-outlook"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobePhotoshop"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobePhotoshop"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Adobe"
# GNOME mimetypes
MIME_TYPES="image/vnd.adobe.photoshop;"
# System Icon
ICON="AdobePhotoshop"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.addin.macroEnabled.12;application/vnd.ms-powerpoint.presentation.macroEnabled.12;application/vnd.ms-powerpoint.template.macroEnabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;"
# System Icon
ICON="ms-powerpoint"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.addin.macroEnabled.12;application/vnd.ms-powerpoint.presentation.macroEnabled.12;application/vnd.ms-powerpoint.template.macroEnabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;"
# System Icon
ICON="ms-powerpoint"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.addin.macroEnabled.12;application/vnd.ms-powerpoint.presentation.macroEnabled.12;application/vnd.ms-powerpoint.template.macroEnabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;"
# System Icon
ICON="ms-powerpoint"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/vnd.ms-powerpoint;application/vnd.openxmlformats-officedocument.presentationml.presentation;application/vnd.openxmlformats-officedocument.presentationml.template;application/vnd.openxmlformats-officedocument.presentationml.slideshow;application/vnd.ms-powerpoint.addin.macroEnabled.12;application/vnd.ms-powerpoint.presentation.macroEnabled.12;application/vnd.ms-powerpoint.template.macroEnabled.12;application/vnd.ms-powerpoint.slideshow.macroEnabled.12;"
# System Icon
ICON="ms-powerpoint"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;"
# System Icon
ICON="ms-word"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;"
# System Icon
ICON="ms-word"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;"
# System Icon
ICON="ms-word"

View File

@ -12,3 +12,6 @@ CATEGORIES="WinApps;Office"
# GNOME mimetypes
MIME_TYPES="application/msword;application/vnd.openxmlformats-officedocument.wordprocessingml.document;application/vnd.openxmlformats-officedocument.wordprocessingml.template;application/vnd.ms-word.document.macroEnabled.12;application/vnd.ms-word.template.macroEnabled.12;"
# System Icon
ICON="ms-word"

View File

@ -75,16 +75,19 @@ function waFindInstalled() {
}
function waConfigureApp() {
. "${SYS_PATH}/apps/${1}/info"
echo -n " Configuring ${NAME}..."
if [ ${USEDEMO} != 1 ]; then
${SUDO} rm -f "${APP_PATH}/${1}.desktop"
echo "[Desktop Entry]
if [ -z "${ICON}" ]; then
ICON=${SYS_PATH}/apps/${1}/icon.${2}
fi
. "${SYS_PATH}/apps/${1}/info"
echo -n " Configuring ${NAME}..."
if [ ${USEDEMO} != 1 ]; then
${SUDO} rm -f "${APP_PATH}/${1}.desktop"
echo "[Desktop Entry]
Name=${NAME}
Exec=${BIN_PATH}/winapps ${1} %F
Terminal=false
Type=Application
Icon=${SYS_PATH}/apps/${1}/icon.${2}
Icon=$ICON
StartupWMClass=${FULL_NAME}
Comment=${FULL_NAME}
Categories=${CATEGORIES}
@ -93,10 +96,11 @@ MimeType=${MIME_TYPES}
${SUDO} rm -f "${BIN_PATH}/${1}"
echo "#!/usr/bin/env bash
${BIN_PATH}/winapps ${1} $@
" |${SUDO} tee "${BIN_PATH}/${1}" > /dev/null
${SUDO} chmod a+x "${BIN_PATH}/${1}"
fi
echo " Finished."
" | ${SUDO} tee "${BIN_PATH}/${1}" >/dev/null
${SUDO} chmod a+x "${BIN_PATH}/${1}"
fi
echo " Finished."
ICON=""
}
function waConfigureApps() {
@ -217,7 +221,7 @@ Name=Windows
Exec=${BIN_PATH}/winapps windows %F
Terminal=false
Type=Application
Icon=${SYS_PATH}/icons/windows.svg
Icon=distributor-logo-windows
StartupWMClass=Micorosoft Windows
Comment=Micorosoft Windows
Categories=Windows