mirror of
https://github.com/winapps-org/winapps.git
synced 2025-06-05 22:57:19 +02:00
Revert changes made by pre-commit bot.
This commit is contained in:
parent
d053974995
commit
0102f62a25
29
installer.sh
29
installer.sh
@ -985,12 +985,6 @@ function waConfigureApp() {
|
|||||||
Categories=${CATEGORIES}
|
Categories=${CATEGORIES}
|
||||||
MimeType=${MIME_TYPES}"
|
MimeType=${MIME_TYPES}"
|
||||||
|
|
||||||
# Remove the existing '.desktop' file for the application if it exists.
|
|
||||||
$SUDO rm -f "${APP_PATH}/${1}.desktop"
|
|
||||||
|
|
||||||
# Remove the existing bash script for the application if it exists.
|
|
||||||
$SUDO rm -f "${BIN_PATH}/${1}"
|
|
||||||
|
|
||||||
# Store the '.desktop' file for the application.
|
# Store the '.desktop' file for the application.
|
||||||
echo "$APP_DESKTOP_FILE" | $SUDO tee "${APP_PATH}/${1}.desktop" &>/dev/null
|
echo "$APP_DESKTOP_FILE" | $SUDO tee "${APP_PATH}/${1}.desktop" &>/dev/null
|
||||||
|
|
||||||
@ -1117,6 +1111,7 @@ function waConfigureDetectedApps() {
|
|||||||
local OPTIONS=() # Stores a list of options presented to the user.
|
local OPTIONS=() # Stores a list of options presented to the user.
|
||||||
local APP_INSTALL="" # Stores the option selected by the user.
|
local APP_INSTALL="" # Stores the option selected by the user.
|
||||||
local SELECTED_APPS=() # Detected applications selected by the user.
|
local SELECTED_APPS=() # Detected applications selected by the user.
|
||||||
|
local APP_DESKTOP_FILE="" # Stores the '.desktop' file used to launch the application.
|
||||||
local DLM=$'\x1F' # Unit separator delimiter.
|
local DLM=$'\x1F' # Unit separator delimiter.
|
||||||
|
|
||||||
if [ -f "$DETECTED_FILE_PATH" ]; then
|
if [ -f "$DETECTED_FILE_PATH" ]; then
|
||||||
@ -1206,23 +1201,21 @@ function waConfigureDetectedApps() {
|
|||||||
# Create directory to store application icon and information.
|
# Create directory to store application icon and information.
|
||||||
$SUDO mkdir -p "${APPDATA_PATH}/apps/${EXE_FILENAME}"
|
$SUDO mkdir -p "${APPDATA_PATH}/apps/${EXE_FILENAME}"
|
||||||
|
|
||||||
# Write application information to file.
|
# Determine the content of the '.desktop' file for the application.
|
||||||
echo "\
|
APP_DESKTOP_FILE="\
|
||||||
# GNOME shortcut name
|
# GNOME Shortcut Name
|
||||||
NAME=\"${NAME}\"
|
NAME=\"${NAME}\"
|
||||||
|
# Used for Descriptions and Window Class
|
||||||
# Used for descriptions and window class
|
|
||||||
FULL_NAME=\"${NAME}\"
|
FULL_NAME=\"${NAME}\"
|
||||||
|
# Executable within Windows VM
|
||||||
# The executable inside Windows VM
|
|
||||||
WIN_EXECUTABLE=\"${EXES[$APPNAME]}\"
|
WIN_EXECUTABLE=\"${EXES[$APPNAME]}\"
|
||||||
|
# GNOME Categories
|
||||||
# GNOME categories
|
|
||||||
CATEGORIES=\"WinApps\"
|
CATEGORIES=\"WinApps\"
|
||||||
|
# GNOME MIME Types
|
||||||
|
MIME_TYPES=\"\""
|
||||||
|
|
||||||
# GNOME mimetypes
|
# Store the '.desktop' file for the application.
|
||||||
MIME_TYPES=\"\"
|
echo "$APP_DESKTOP_FILE" | $SUDO tee "${APPDATA_PATH}/apps/${EXE_FILENAME}/info" &>/dev/null
|
||||||
" | $SUDO tee "${APPDATA_PATH}/apps/${EXE_FILENAME}/info" &>/dev/null
|
|
||||||
|
|
||||||
# Write application icon to file.
|
# Write application icon to file.
|
||||||
echo "${ICONS[$APPNAME]}" | base64 -d | $SUDO tee "${APPDATA_PATH}/apps/${EXE_FILENAME}/icon.ico" &>/dev/null
|
echo "${ICONS[$APPNAME]}" | base64 -d | $SUDO tee "${APPDATA_PATH}/apps/${EXE_FILENAME}/icon.ico" &>/dev/null
|
||||||
|
Loading…
x
Reference in New Issue
Block a user