Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
PortWINE
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikhail Tergoev
PortWINE
Commits
8695c884
Commit
8695c884
authored
Oct 20, 2024
by
Vladislav
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improvements for name_desktop
parent
2a3c3abe
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
45 additions
and
5 deletions
+45
-5
PortProton.pot
data_from_portwine/locales/PortProton.pot
+4
-0
PortProton.po
data_from_portwine/locales/es/LC_MESSAGES/PortProton.po
+5
-0
PortProton.po
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
+7
-0
functions_helper
data_from_portwine/scripts/functions_helper
+29
-5
No files found.
data_from_portwine/locales/PortProton.pot
View file @
8695c884
...
...
@@ -41,6 +41,10 @@ msgstr ""
msgid "Newest DXVK, VKD3D, D8VK (Vulkan v1.3+)"
msgstr ""
msgid "A higher number of duplicate desktop files were found for this file."
"\\nShould I delete the extra ones or not?"
msgstr ""
msgid "Gallium Nine (DirectX 9 for MESA)"
msgstr ""
...
...
data_from_portwine/locales/es/LC_MESSAGES/PortProton.po
View file @
8695c884
...
...
@@ -1872,6 +1872,11 @@ msgstr "Agregar acceso directo a la biblioteca de STEAM"
msgid "Name"
msgstr "Nombre"
msgid ""
"A higher number of duplicate desktop files were found for this file."
"\\nShould I delete the extra ones or not?"
msgstr ""
msgid "For adding shortcut to STEAM, needed restart.\\n\\nRestart STEAM now?"
msgstr ""
"Para agregar el acceso directo a STEAM, es necesario reiniciar.\\n\\¿Quieres "
...
...
data_from_portwine/locales/ru/LC_MESSAGES/PortProton.po
View file @
8695c884
...
...
@@ -55,6 +55,13 @@ msgstr "Gallium Zink (трансляция OpenGL в Vulkan)"
msgid "CREATE SHORTCUT"
msgstr "СОЗДАТЬ ЯРЛЫК"
msgid ""
"A higher number of duplicate desktop files were found for this file."
"\\nShould I delete the extra ones or not?"
msgstr ""
"Для этого файла было обнаружено большее количество дубликатов\\nфайлов "
"рабочего стола. Удалить лишние или нет?"
msgid "Create shortcut for select file..."
msgstr "Создать ярлык для выбранного файла..."
...
...
data_from_portwine/scripts/functions_helper
View file @
8695c884
...
...
@@ -786,7 +786,7 @@ debug_timer () {
# Поиск нужного .desktop файла по $portwine_exe
search_desktop_file
()
{
local
count desktop_file desktop_file_new EXEC_DESKTOP EXEC_DESKTOP_NEW TIME_TOTAL i j
df
local
count desktop_file desktop_file_new EXEC_DESKTOP EXEC_DESKTOP_NEW TIME_TOTAL i j
unset
TIME_CURRENT_ARRAY DESKTOP_FILES_ARRAY
count
=
0
for
desktop_file
in
"
$PORT_WINE_PATH
"
/
*
;
do
...
...
@@ -5424,10 +5424,26 @@ portwine_create_shortcut () {
[[ -z "${PW_SHORTCUT_DESKTOP}" ]] && PW_SHORTCUT_DESKTOP="TRUE"
[[ -z "${PW_SHORTCUT_STEAM}" ]] && PW_SHORTCUT_STEAM="FALSE"
if [[ -z "${PORTPROTON_NAME}" ]] ; then
name_desktop="$(basename "$portwine_exe")"
name_desktop_basename="$(basename "${portwine_exe//.exe/}")"
search_desktop_file
if [[ -n $df ]] ; then
name_desktop_df="${df//"$PORT_WINE_PATH/"/}"
name_desktop_df="${name_desktop_df//.desktop/}"
if [[ $(echo "$name_desktop_basename" | tr '
[
:lower:]
' '
[
:upper:]
') =~ $(echo "$name_desktop_df" | tr '
[
:lower:]
' '
[
:upper:]
') ]]
then
name_desktop="$name_desktop_df"
elif [[ -n $PORTPROTON_NAME ]] && [[ ${DESKTOP_FILES_ARRAY[*]} =~ $PORTPROTON_NAME ]]
then
name_desktop="$PORTPROTON_NAME"
else
name_desktop="$name_desktop_df"
fi
else
name_desktop="${PORTPROTON_NAME}"
if [[ -z $PORTPROTON_NAME ]] ; then
name_desktop="$name_desktop_basename"
else
name_desktop="$PORTPROTON_NAME"
fi
fi
export name_desktop
...
...
@@ -5477,7 +5493,15 @@ portwine_create_shortcut () {
edit_user_conf_from_gui PW_SHORTCUT_MENU PW_SHORTCUT_DESKTOP PW_SHORTCUT_STEAM
try_remove_file
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
if
[[
-n
${
DESKTOP_FILES_ARRAY
[1]
}
]]
;
then
if
yad_question
"
${
translations
[A higher number of duplicate desktop files were found for this file.\\nShould I delete the extra ones or not?]
}
"
;
then
for
rm
in
"
${
DESKTOP_FILES_ARRAY
[@]
}
"
;
do
rm
-f
"
$rm
"
done
fi
else
try_remove_file
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
fi
echo
"[Desktop Entry]"
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Name=
${
name_desktop
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment