Scripts version 2263

This commit is contained in:
Mikhail Tergoev 2024-03-15 02:50:08 +03:00
parent 1280cb9ac5
commit e623b589e8
4 changed files with 13 additions and 4 deletions

@ -2,6 +2,10 @@ You can help us in the development of the project on the website: https://linux-
----------------------------------------
Changelog:
###Scripts version 2263### Date: 15.03.2024 / Download update size: 15 megabytes
* the lock file of the second session has been moved to "/tmp/portproton.lock"
* when starting from the terminal, it is clearly indicated that the lock file and its location have been found
###Scripts version 2262### Date: 14.03.2024 / Download update size: 230 megabytes
* added a warning when starting the second PortProton session
* added the ability to disable the container

@ -2,6 +2,10 @@
-----------------------------------------
История изменений:
###Scripts version 2263### Дата: 15.03.2024 / Размер скачиваемого обновления: 15 мегабайт
* файл блокировки второй сессии перенесен в "/tmp/portproton.lock"
* при запуске с терминала, явно указано что найден файл блокировки и его месторасположение
###Scripts version 2262### Дата: 14.03.2024 / Размер скачиваемого обновления: 230 мегабайт
* добавлено предупреждение при запуске второй сессии PortProton
* добавлена возможность отключения контейнера

@ -865,14 +865,15 @@ check_user_conf
check_variables PW_LOG "0"
if [[ -z "${INSTALLING_PORT}" ]] ; then
if [[ -f "$HOME/.config/.portproton.lock" ]] ; then
if [[ -f "/tmp/portproton.lock" ]] ; then
print_warning "Found lock file: /tmp/portproton.lock"
yad_info "$loc_gui_portproton_lock"
exit 0
fi
touch "$HOME/.config/.portproton.lock"
touch "/tmp/portproton.lock"
rm_lock_file () {
echo "Removing the lock file..."
rm "$HOME/.config/.portproton.lock" && echo "OK"
rm -fv "/tmp/portproton.lock" && echo "OK"
}
trap "rm_lock_file" EXIT

@ -1,6 +1,6 @@
#!/usr/bin/env bash
#Author: Castro-Fidel (linux-gaming.ru)
#SCRIPTS_NEXT_VERSION=2262
#SCRIPTS_NEXT_VERSION=2263
########################################################################
export PW_MANGOHUD="0"
export DEFAULT_MANGOHUD_CONFIG="cpu_stats,cpu_temp,cpu_mhz,gpu_stats,gpu_temp,gpu_core_clock,gpu_mem_clock,vulkan_driver,gpu_name,vram,ram,frame_timing=1,time,arch,wine,toggle_hud=Shift_R+F12,resolution,vkbasalt,gamemode"