Compare commits

...
1 Commits
Author SHA1 Message Date
Boria138 d1018019d2 feat: added exe network block
Code check / Check code (pull_request) Successful in 1m44s
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
2026-08-01 10:07:13 +05:00
3 changed files with 16 additions and 3 deletions

No files matched your search

@@ -3754,6 +3754,10 @@ start_portproton () {
*) get_and_set_reg_file --delete 'Software\Wine\Drivers' 'Audio' ;;
esac
if [[ -n "${PW_NETWORK_BLOCKLIST:-}" ]] ; then
export PW_LD_PRELOAD="${PW_LD_PRELOAD:+${PW_LD_PRELOAD}:}libppqt-network-filter.so"
fi
add_in_start_portproton
if [[ "$FULL_LN" == russian ]] ; then
+3 -3
View File
@@ -795,7 +795,7 @@ class ExeSettingsDialog(
line_edit.setEnabled(False)
line_edit.setStyleSheet(self.theme.SETTINGS_DISABLED_INPUT_STYLE)
if setting['key'] == 'PW_RUN_AFTER_EXE':
if setting['key'] in ('PW_RUN_AFTER_EXE', 'PW_NETWORK_BLOCKLIST'):
text_container = QWidget()
text_container.setProperty("ppqt_run_after_exe_widget", True)
text_layout = QHBoxLayout(text_container)
@@ -810,7 +810,7 @@ class ExeSettingsDialog(
if is_blocked:
browse_button.setEnabled(False)
def open_run_after_exe_selector(
def open_setting_file_selector(
_checked: bool = False,
target_line_edit=line_edit,
file_filter="",
@@ -832,7 +832,7 @@ class ExeSettingsDialog(
)
file_explorer.exec()
browse_button.clicked.connect(open_run_after_exe_selector)
browse_button.clicked.connect(open_setting_file_selector)
text_layout.addWidget(browse_button)
self.advanced_table.setCellWidget(row, 1, text_container)
else:
+9
View File
@@ -321,6 +321,14 @@ def get_advanced_settings(disabled_text, logical_core_options=None, locale_optio
'default': ''
})
advanced_settings.append({
'key': 'PW_NETWORK_BLOCKLIST',
'name': _("Blocked Network Destinations"),
'description': _("Comma-separated IP addresses, domains, wildcard patterns, or absolute paths to hosts files. Example: 192.0.2.1,example.com,*.ru,/home/user/hosts"),
'type': 'text',
'default': ''
})
# 8. CPU cores limit
advanced_settings.append({
'key': 'PW_WINE_CPU_TOPOLOGY',
@@ -405,6 +413,7 @@ ADVANCED_SETTING_KEYS = [
'WINEDLLOVERRIDES',
'LAUNCH_PARAMETERS',
'PW_RUN_AFTER_EXE',
'PW_NETWORK_BLOCKLIST',
'PW_WINE_CPU_TOPOLOGY',
'PW_MESA_GL_VERSION_OVERRIDE',
'PW_VKD3D_FEATURE_LEVEL',