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
Vladislav
PortWINE
Commits
d2f5b1d3
Commit
d2f5b1d3
authored
Mar 24, 2024
by
Mikhail Tergoev
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'replace-flatpak-id' of
https://github.com/Boria138/PortWINE
into…
Merge branch 'replace-flatpak-id' of
https://github.com/Boria138/PortWINE
into Boria138-replace-flatpak-id
parents
8b50639a
a6aec0bb
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
6 deletions
+8
-6
setup.sh
data_from_portwine/scripts/setup.sh
+1
-1
start.sh
data_from_portwine/scripts/start.sh
+5
-3
yad_gui
data_from_portwine/scripts/yad_gui
+2
-2
No files found.
data_from_portwine/scripts/setup.sh
View file @
d2f5b1d3
...
...
@@ -7,7 +7,7 @@ if grep -i "flatpak" /etc/os-release &>/dev/null ; then
echo
"[Desktop Entry]"
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Name=
${
name_desktop
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Version=
${
install_ver
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Exec=flatpak run
com.castrofidel.portp
roton"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Exec=flatpak run
ru.linux_gaming.PortP
roton"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Type=Application"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Terminal=False"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Categories=Game"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
...
...
data_from_portwine/scripts/start.sh
View file @
d2f5b1d3
...
...
@@ -191,7 +191,9 @@ portwine_start_debug () {
[[
`
command
-v
glxinfo
`
]]
&&
glxinfo
-B
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"-----"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
echo
"inxi -G:"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
"
${
PW_PLUGINS_PATH
}
/portable/bin/inxi"
-Gc0
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
if
!
grep
-i
"flatpak"
/etc/os-release &>/dev/null
then
"
${
PW_PLUGINS_PATH
}
/portable/bin/inxi"
-Gc0
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
fi
if
echo
"
$LSPCI_VGA
"
|
grep
-i
nvidia &>/dev/null
;
then
if
command
-v
ldconfig &>/dev/null
;
then
echo
"------"
>>
"
${
PORT_WINE_PATH
}
/
${
portname
}
.log"
...
...
@@ -677,8 +679,8 @@ else
kill
-s
SIGUSR1
$(
pgrep
-a
yad |
grep
"
\-
-key=
${
KEY
}
\-
-notebook"
|
awk
'{print $1}'
)
>
/dev/null 2>&1
fi
if
grep
-i
"flatpak"
/etc/os-release &>/dev/null
;
then
PW_EXEC_FROM_DESKTOP
=
"
$(
cat
"
${
PORT_WINE_PATH
}
/
${
PW_YAD_SET
//¬/
" "
}
"
|
grep
Exec |
head
-n
1 |
sed
's|flatpak run
com.castrofidel.portp
roton|\"${PORT_SCRIPTS_PATH}/start.sh\"|'
|
awk
-F
'='
'{print $2}'
)
"
if
grep
-i
"flatpak"
/etc/os-release &>/dev/null
then
PW_EXEC_FROM_DESKTOP
=
"
$(
cat
"
${
PORT_WINE_PATH
}
/
${
PW_YAD_SET
//¬/
" "
}
"
|
grep
Exec |
head
-n
1 |
sed
's|flatpak run
ru.linux_gaming.PortP
roton|\"${PORT_SCRIPTS_PATH}/start.sh\"|'
|
awk
-F
'='
'{print $2}'
)
"
else
PW_EXEC_FROM_DESKTOP
=
"
$(
cat
"
${
PORT_WINE_PATH
}
/
${
PW_YAD_SET
//¬/
" "
}
"
|
grep
Exec |
head
-n
1 |
awk
-F
"=env "
'{print $2}'
)
"
fi
...
...
data_from_portwine/scripts/yad_gui
View file @
d2f5b1d3
...
...
@@ -722,7 +722,7 @@ portwine_create_shortcut () {
echo
"[Desktop Entry]"
>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
echo
"Name=
${
name_desktop
}
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
if
grep
-i
"flatpak"
/etc/os-release &>/dev/null
then
echo
"Exec=flatpak run
com.castrofidel.portp
roton
\"
${
portwine_exe
}
\"
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
then
echo
"Exec=flatpak run
ru.linux_gaming.PortP
roton
\"
${
portwine_exe
}
\"
"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
else
echo
"Exec=env "
\"
${
PORT_SCRIPTS_PATH
}
/start.sh
\"
\"
${
portwine_exe
}
\"
""
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
fi
echo
"Type=Application"
>>
"
${
PORT_WINE_PATH
}
/
${
name_desktop
}
.desktop"
...
...
@@ -754,7 +754,7 @@ portwine_create_shortcut () {
echo
"export START_FROM_STEAM=1"
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
echo
"export LD_PRELOAD="
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
if
grep
-i
"flatpak"
/etc/os-release &>/dev/null
then
echo
"flatpak run
com.castrofidel.portp
roton
\"
${
portwine_exe
}
\"
"
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
then
echo
"flatpak run
ru.linux_gaming.PortP
roton
\"
${
portwine_exe
}
\"
"
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
else
echo
"
\"
${
PORT_SCRIPTS_PATH
}
/start.sh
\"
\"
${
portwine_exe
}
\"
"
>>
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
fi
chmod
u+x
"
${
STEAM_SCRIPTS
}
/
${
name_desktop
}
.sh"
...
...
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