Commit Graph

55 Commits

Author SHA1 Message Date
Alexandr Stelnykovych
95838b510c fix(UI; Linux): Workaround for unresponsive title-bar buttons on KDE with Wayland
https://github.com/safing/portmaster/issues/1909
2025-06-19 15:38:36 +03:00
Alexandr Stelnykovych
2e5076b3bc fix(UI): Automatically unminimize window when triggered by left mouse click 2025-06-06 13:55:06 +03:00
Alexandr Stelnykovych
ff18ec1292 Refactor window creation functions for improved environment variable handling 2025-06-05 15:08:14 +03:00
Alexandr Stelnykovych
11c4ae39d2 (Windows) Fix false-positive detection of Portmaster UI processes
Problem:
  System browsers launched from the Portmaster UI (e.g., when a user clicks a link) may be incorrectly detected as Portmaster UI child processes.

Solution:
  The Tauri UI app now sets the PORTMASTER_UI_WEBVIEW_PROCESS environment variable for all child WebView processes. Portmaster-core uses this variable to accurately determine if a process is truly related to the Portmaster UI.
2025-05-21 18:08:04 +03:00
Alexandr Stelnykovych
5bc1e779b2 fix: force UI to use IPv4 (127.0.0.1) for API endpoints
Previously, the API endpoint was defined using `localhost`, which could resolve to the IPv6 address `::1`.
This caused issues because the Portmaster core service is listening on `127.0.0.1:817` and only fast-tracking connections to that specific IPv4 address.
2025-05-16 10:56:30 +03:00
Alexandr Stelnykovych
d3e489f10a Merge branch 'v2.0' into feature/ui-security 2025-04-28 11:08:25 +03:00
Alexandr Stelnykovych
f81f5c7566 [desktop] Fix: --background command-line argument for UI 2025-04-25 17:12:03 +03:00
Alexandr Stelnykovych
5053ef1a23 [desktop] Use custom Tauri command for HTTP requests instead of http-client plugin
Replaced the http-client plugin, as it does not support keep-alive connections.
Each request opened a new TCP connection to the service, which was inefficient.

The new custom `send_tauri_http_request` command, exposed to the UI, uses an application-wide `reqwest::Client`, which supports idle (persistent) connections.
2025-04-24 14:00:15 +03:00
Alexandr Stelnykovych
09412e9222 [desktop] fix: Rust compilation warnings in Tauri project 2025-04-23 13:45:45 +03:00
Alexandr Stelnykovych
4ef04c72ca [desktop] Tauri HTTP interceptor 2025-04-12 23:34:07 +03:00
Vladimir Stoilov
e4756862ac [destkop] Fix tray context menu update 2025-03-31 16:20:50 +03:00
Alexandr Stelnykovych
27235ad7b7 Revert "[desktop] Fix tray menu spn status and button"
This reverts commit 8aab22a9ec.
2025-03-26 14:44:10 +02:00
Vladimir Stoilov
8aab22a9ec [desktop] Fix tray menu spn status and button 2025-03-25 14:47:13 +02:00
Vladimir Stoilov
c21a93a4d6 Add missing TODOs 2024-12-10 14:21:34 +02:00
Vladimir Stoilov
5ae261f062 [WIP] Fix tauri notifications 2024-12-03 17:28:40 +02:00
Vladimir Stoilov
85031e861b [desktop] Update tauri (#1760) 2024-11-28 10:41:14 +02:00
Vladimir Stoilov
96b1280b5c [WIP] Fix tauri compile issue 2024-10-11 11:40:28 +03:00
Vladimir Stoilov
3411e08500 [WIP] Fix cargo clippy lint build 2024-09-30 18:48:38 +03:00
Vladimir Stoilov
08830f29c6 [WIP] Fix ui api authentication 2024-09-25 17:34:23 +03:00
Vladimir Stoilov
83ec18f552 [WIP] Updater support for windows 2024-09-11 18:52:36 +03:00
Vladimir Stoilov
8c6eb04292 [desktop] Fix merge issues 2024-09-05 11:21:19 +03:00
Vladimir Stoilov
556e5dd921 [desktop] tauri remove some global variables. 2024-09-05 10:25:56 +03:00
Vladimir Stoilov
4c340f7b70 [desktop] Fix all clippy warning. Add clippy to CI. 2024-09-05 10:23:04 +03:00
Vladimir Stoilov
500256759e [desktop] Minor tauri fixes and improvments 2024-09-05 10:20:34 +03:00
Vladimir Stoilov
05a4093676 [desktop] improve theme detection and add manual theme selection. 2024-09-03 11:32:47 +03:00
Vladimir Stoilov
e162c81978 [desktop] Fix tauri unexpected exits 2024-09-03 11:31:15 +03:00
Vladimir Stoilov
2ea21b5fb8 [desktop] Move logging to user dir on windows. 2024-08-30 14:49:35 +03:00
Vladimir Stoilov
c9ee01d2c4 [desktop] update tauri 2.0.0-rc.3 2024-08-19 17:56:46 +03:00
Vladimir Stoilov
7a06b0bc1c [desktop] Tauri ignore extra cmdline args 2024-08-01 16:02:00 +03:00
Vladimir Stoilov
e92da53703 [desktop] Add tauri logs 2024-07-26 15:58:27 +03:00
Vladimir Stoilov
a12504178e [desktop] Switch to png for tray menu 2024-07-24 11:09:42 +03:00
Vladimir Stoilov
a6e1a37239 [desktop] Add support for system theme detection 2024-07-24 10:53:58 +03:00
Vladimir Stoilov
5b03076fac [desktop] tauri fix main windows size and theme 2024-07-23 17:26:53 +03:00
Vladimir Stoilov
674787df87 [desktop] tauri seve window size/position on exit 2024-07-23 17:25:59 +03:00
Vladimir Stoilov
c3d787e3ce [desktop] Update tauri 2024-07-23 17:24:29 +03:00
Vladimir Stoilov
273b16c523 [cmds] Handle edge cases when running tauri in beta 2024-07-11 09:33:21 +03:00
Vladimir Stoilov
0b72e99edd [cmds] Allow running of tauri in beta 2024-07-08 09:22:11 +03:00
Vladimir Stoilov
a84bbf4262 [desktop] Update tauri to beta.23 2024-07-04 14:13:46 +03:00
Vladimir Stoilov
f8685584cb [desktop/tauri] Add icon to the nsis insteller 2024-05-31 10:49:40 +03:00
Vladimir Stoilov
f07f4e6988 [desktop/tauri] Add check if webview is installed 2024-05-31 10:35:52 +03:00
Vladimir Stoilov
31b99e7647 [deskotp/tauri] update tauri, remove the need for nsis template 2024-05-31 07:11:42 +03:00
Vladimir Stoilov
ce43e2a81f [desktop/tauri] Fix windows slplash screen close crash 2024-05-30 10:18:51 +03:00
Vladimir Stoilov
3131fb28cc [dekstop] Add subscription to the shutdown event 2024-05-22 15:22:29 +03:00
Vladimir Stoilov
0b52c5347a [desktop] Improve tauri traymenu 2024-05-22 12:21:55 +03:00
Vladimir Stoilov
a984032621 [desktop] Fix traymenu exit button 2024-05-21 11:38:39 +03:00
Vladimir Stoilov
4ffd5f2079 [desktop] use tauri log pluggin 2024-05-17 17:05:37 +03:00
Vladimir Stoilov
ede9cabccc [desktop] fix icon resolution 2024-05-17 15:46:10 +03:00
Vladimir Stoilov
99b84d3f46 [desktop] support for windows notifications 2024-05-17 11:11:48 +03:00
Vladimir Stoilov
e964385f83 [desktop] Remove assets symlink 2024-05-10 20:36:16 +03:00
Vladimir Stoilov
f15958b091 Migrate tauri to new config 2024-04-24 15:30:46 +03:00