hiddify-next
hiddify-next copied to clipboard
[linux system tray] visibility setting not saved
Search first
- [X] I searched and no similar issues were found
What Happened?
when I set hiddify's tray visibility to always hide, the tray icon are hidden. then I restart hiddify, the visibility setting restored to Visible when relevant.
Reproduce the Bug
- open kde system tray settings
- go to item - hiddify, set it to always hide, the hiddify icon hidden
- restart hiddify
- hiddify tray unwanted shows up, and the visibility setting in kde system tray settings restored back to Visible when relevant
Expected Behavior
when the visibility setting in kde system tray settings set to hide, hiddify tray icon should be always hidden
Version
v0.11.1 main branch dev
Platform/OS
Linux
Additional Context
https://github.com/hiddify/hiddify-next/assets/44510779/590b2933-df7d-4f1c-a545-598730846ba2
Relevant log output
$ hiddify
(hiddify:126285): Gdk-CRITICAL **: 22:43:23.160: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
** (hiddify:126285): CRITICAL **: 22:43:23.282: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126285): CRITICAL **: 22:43:23.282: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126285): CRITICAL **: 22:43:23.283: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126285): CRITICAL **: 22:43:23.283: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126285): CRITICAL **: 22:43:23.284: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
flutter: [D] Pref<bool, dynamic>: getting persisted preference [enable_analytics](bool)
flutter: [D] Pref<bool, dynamic>: getting persisted preference [debug_mode](bool)
flutter: [D] PlatformServices: getting paths
flutter: [I] FilesEditorService: directories: (baseDir: Directory: '/home/detiam/.local/share/app.hiddify.com', tempDir: Directory: '/tmp', workingDir: Directory: '/home/detiam/.local/share/app.hiddify.com')
flutter: [D] GeoAssetRepositoryImpl: initializing
flutter: 👻 22:43:23.363121 INFO bootstrap - hiddify v0.11.1 (1101) [dev]
general release
linux [Linux 6.7.0-rc3-1-mainline #1 SMP PREEMPT_DYNAMIC Mon, 27 Nov 2023 12:39:50 +0000]
flutter: 🐛 22:43:23.363234 DEBUG Pref<bool, dynamic> - getting persisted preference [silent_start](bool)
flutter: 🐛 22:43:23.363256 DEBUG bootstrap - initializing [Auto Start Service] and [Window Controller]
flutter: 🐛 22:43:23.363319 DEBUG AutoStartService - initializing
flutter: 👻 22:43:23.363383 INFO AutoStartService - auto start is [Disabled]
flutter: 🐛 22:43:23.395850 DEBUG FFISingboxService - initializing
flutter: 🐛 22:43:23.395911 DEBUG bootstrap - initialized [Singbox Service]
flutter: 🐛 22:43:23.395975 DEBUG ActiveProfile - watching active profile
flutter: 🐛 22:43:23.408553 DEBUG SystemTrayController - initializing
flutter: 🐛 22:43:23.411129 DEBUG Pref<ServiceMode, String> - getting persisted preference [service-mode](ServiceMode)
flutter: 🐛 22:43:23.411237 DEBUG Pref<AppLocale, String> - getting persisted preference [locale](AppLocale)
flutter: 🐛 22:43:23.412157 DEBUG SystemTrayController - updating system tray
flutter: 👻 22:43:23.412265 INFO ConnectivityController - connection status: DISCONNECTED
flutter: ⚠ 22:43:24.408855 WARNING bootstrap - error initializing [System Tray Controller]
flutter:
flutter: 🐛 22:43:24.409222 DEBUG Pref<bool, dynamic> - getting persisted preference [intro_completed](bool)
flutter: 🐛 22:43:24.409486 DEBUG Pref<AppThemeMode, String> - getting persisted preference [theme_mode](AppThemeMode)
flutter: 🐛 22:43:24.409545 DEBUG ForegroundProfilesUpdateNotifier - initializing
flutter: 🐛 22:43:24.409963 DEBUG SystemTrayController - updating system tray
flutter: 🐛 22:43:24.417724 DEBUG RouterListenable - triggering listener
flutter: 🐛 22:43:24.417926 DEBUG ForegroundProfilesUpdateNotifier - cycle [0]
flutter: 🐛 22:43:24.417961 DEBUG ForegroundProfilesUpdateNotifier - too soon! previous run: [2023-11-30 22:43:16.126910]
flutter: upgrader: parseAppcastItemsFromUri exception: ClientException with SocketException: 拒绝连接 (OS Error: 拒绝连接, errno = 111), address = raw.githubusercontent.com, port = 43664, uri=https://raw.githubusercontent.com/hiddify/hiddify-next/main/appcast.xml
flutter: 🐛 22:43:26.394884 DEBUG Pref<bool, dynamic> - getting persisted preference [started_by_user](bool)
flutter: 🐛 22:43:26.394959 DEBUG WindowController - previously started by user, trying to connect
flutter: 🐛 22:43:26.395024 DEBUG Pref<bool, dynamic> - getting persisted preference [disable_memory_limit](bool)
flutter: 🐛 22:43:26.395658 DEBUG Pref<LogLevel, String> - getting persisted preference [log-level](LogLevel)
flutter: 🐛 22:43:26.395706 DEBUG Pref<bool, dynamic> - getting persisted preference [resolve-destination](bool)
flutter: 🐛 22:43:26.395742 DEBUG Pref<IPv6Mode, String> - getting persisted preference [ipv6-mode](IPv6Mode)
flutter: 🐛 22:43:26.395780 DEBUG Pref<String, dynamic> - getting persisted preference [remote-dns-address](String)
flutter: 🐛 22:43:26.395812 DEBUG Pref<DomainStrategy, String> - getting persisted preference [remote-domain-dns-strategy](DomainStrategy)
flutter: 🐛 22:43:26.395834 DEBUG Pref<String, dynamic> - getting persisted preference [direct-dns-address](String)
flutter: 🐛 22:43:26.395851 DEBUG Pref<DomainStrategy, String> - getting persisted preference [direct-domain-dns-strategy](DomainStrategy)
flutter: 🐛 22:43:26.395884 DEBUG Pref<int, dynamic> - getting persisted preference [mixed-port](int)
flutter: 🐛 22:43:26.395902 DEBUG Pref<int, dynamic> - getting persisted preference [localDns-port](int)
flutter: 🐛 22:43:26.395932 DEBUG Pref<TunImplementation, String> - getting persisted preference [tun-implementation](TunImplementation)
flutter: 🐛 22:43:26.395956 DEBUG Pref<int, dynamic> - getting persisted preference [mtu](int)
flutter: 🐛 22:43:26.395971 DEBUG Pref<bool, dynamic> - getting persisted preference [strict-route](bool)
flutter: 🐛 22:43:26.395985 DEBUG Pref<String, dynamic> - getting persisted preference [connection-test-url](String)
flutter: 🐛 22:43:26.396015 DEBUG Pref<Duration, int> - getting persisted preference [url-test-interval](Duration)
flutter: 🐛 22:43:26.396033 DEBUG Pref<bool, dynamic> - getting persisted preference [enable-clash-api](bool)
flutter: 🐛 22:43:26.396049 DEBUG Pref<int, dynamic> - getting persisted preference [clash-api-port](int)
flutter: 🐛 22:43:26.396063 DEBUG Pref<bool, dynamic> - getting persisted preference [bypass-lan](bool)
flutter: 🐛 22:43:26.396077 DEBUG Pref<bool, dynamic> - getting persisted preference [enable-fake-dns](bool)
flutter: 🐛 22:43:26.396115 DEBUG Pref<Region, String> - getting persisted preference [region](Region)
flutter: 👻 22:43:26.396395 INFO CoreFacadeImpl - config options: {
"execute-config-as-is": false,
"log-level": "warn",
"resolve-destination": false,
"ipv6-mode": "prefer_ipv6",
"remote-dns-address": "tcp://8.8.8.8",
"remote-dns-domain-strategy": "",
"direct-dns-address": "8.8.8.8",
"direct-dns-domain-strategy": "",
"mixed-port": 2334,
"local-dns-port": 6450,
"tun-implementation": "mixed",
"mtu": 9000,
"strict-route": true,
"connection-test-url": "http://cp.cloudflare.com/",
"url-test-interval": "10m",
"enable-clash-api": true,
"clash-api-port": 6756,
"enable-tun": false,
"set-system-proxy": false,
"bypass-lan": false,
"enable-fake-dns": false,
"independent-dns-cache": true,
"geoip-path": "geo-assets/sagernet-sing-geoip-geoip.db",
"geosite-path": "geo-assets/sagernet-sing-geosite-geosite.db",
"rules": [
{
"domains": "domain:.cn,geosite:cn",
"ip": "geoip:cn",
"port": null,
"protocol": null,
"network": "",
"outbound": "bypass"
}
]
}
Memory Limit: true
flutter: 🐛 22:43:26.396465 DEBUG CoreFacadeImpl - setting up singbox
flutter: 🐛 22:43:26.531821 DEBUG CoreFacadeImpl - setup complete
flutter: 🐛 22:43:26.536679 DEBUG FFISingboxService - starting, memory limit: [true]
flutter: 👻 22:43:26.536838 INFO ConnectivityController - connection status: CONNECTING
flutter: 🐛 22:43:26.536998 DEBUG SystemTrayController - updating system tray
config options: {ExecuteAsIs:false LogLevel:warn ResolveDestination:false IPv6Mode:2 RemoteDnsAddress:tcp://8.8.8.8 RemoteDnsDomainStrategy:0 DirectDnsAddress:8.8.8.8 DirectDnsDomainStrategy:0 MixedPort:2334 LocalDnsPort:6450 MTU:9000 StrictRoute:true TUNStack: ConnectionTestUrl:http://cp.cloudflare.com/ URLTestInterval:600000000000 EnableClashApi:true ClashApiPort:6756 EnableTun:false SetSystemProxy:false BypassLAN:false EnableFakeDNS:false IndependentDNSCache:true GeoIPPath:geo-assets/sagernet-sing-geoip-geoip.db GeoSitePath:geo-assets/sagernet-sing-geosite-geosite.db Rules:[{Domains:domain:.cn,geosite:cn IP:geoip:cn Port: Network: Protocol: Outbound:bypass}]}
TRACE[0000] [Command Server Handler]: Starting command server
flutter: 👻 22:43:26.627554 INFO ConnectivityController - connection status: CONNECTED
flutter: 🐛 22:43:26.627757 DEBUG SystemTrayController - updating system tray
flutter: 🐛 22:43:26.627885 DEBUG FFISingboxService - singbox native libs path: "libcore.so"
DEBUG[0000] [Status Command Client]: CONNECTED
DEBUG[0000] [Status Command Client]: Memory: 9.2 MB, Goroutines: 92
DEBUG[0001] [Status Command Client]: Memory: 5.4 MB, Goroutines: 56
DEBUG[0002] [Status Command Client]: Memory: 5.4 MB, Goroutines: 33
DEBUG[0003] [Status Command Client]: Memory: 5.8 MB, Goroutines: 37
DEBUG[0004] [Status Command Client]: Memory: 5.8 MB, Goroutines: 37
flutter: upgrader: parseAppcastItemsFromUri exception: ClientException with SocketException: 拒绝连接 (OS Error: 拒绝连接, errno = 111), address = raw.githubusercontent.com, port = 56614, uri=https://raw.githubusercontent.com/hiddify/hiddify-next/main/appcast.xml
DEBUG[0005] [Status Command Client]: Memory: 5.8 MB, Goroutines: 27
DEBUG[0006] [Status Command Client]: Memory: 5.8 MB, Goroutines: 27
DEBUG[0007] [Status Command Client]: Memory: 5.8 MB, Goroutines: 27
flutter: 🐛 22:43:34.266892 DEBUG ConnectivityController - aborting connection
flutter: 👻 22:43:34.267256 INFO ConnectivityController - connection status: DISCONNECTING
flutter: 🐛 22:43:34.267412 DEBUG FFISingboxService - stopping stats command client
DEBUG[0007] [Status Command Client]: DISCONNECTED: read unix @->/home/detiam/.local/share/app.hiddify.com/command.sock: use of closed network connection
flutter: 🐛 22:43:34.267550 DEBUG SystemTrayController - updating system tray
flutter: 👻 22:43:34.267751 INFO ConnectivityController - connection status: DISCONNECTED
flutter: 🐛 22:43:34.267872 DEBUG SystemTrayController - updating system tray
flutter: 🐛 22:43:34.270774 DEBUG WindowController - quitting
(hiddify:126285): Gtk-CRITICAL **: 22:43:34.280: gtk_window_get_position: assertion 'GTK_IS_WINDOW (window)' failed
(hiddify:126285): Gtk-CRITICAL **: 22:43:34.280: gtk_window_get_size: assertion 'GTK_IS_WINDOW (window)' failed
(hiddify:126285): Gtk-CRITICAL **: 22:43:34.280: gtk_widget_hide: assertion 'GTK_IS_WIDGET (widget)' failed
(hiddify:126285): Gtk-CRITICAL **: 22:43:34.280: gtk_window_move: assertion 'GTK_IS_WINDOW (window)' failed
(hiddify:126285): Gtk-CRITICAL **: 22:43:34.280: gtk_window_resize: assertion 'GTK_IS_WINDOW (window)' failed
$ hiddify
(hiddify:126375): Gdk-CRITICAL **: 22:43:36.976: gdk_window_get_state: assertion 'GDK_IS_WINDOW (window)' failed
** (hiddify:126375): CRITICAL **: 22:43:37.097: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126375): CRITICAL **: 22:43:37.098: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126375): CRITICAL **: 22:43:37.099: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126375): CRITICAL **: 22:43:37.099: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
** (hiddify:126375): CRITICAL **: 22:43:37.100: Failed to read XDG desktop portal settings: GDBus.Error:org.freedesktop.portal.Error.NotFound: 未找到请求的设置
flutter: [D] Pref<bool, dynamic>: getting persisted preference [enable_analytics](bool)
flutter: [D] Pref<bool, dynamic>: getting persisted preference [debug_mode](bool)
flutter: [D] PlatformServices: getting paths
flutter: [I] FilesEditorService: directories: (baseDir: Directory: '/home/detiam/.local/share/app.hiddify.com', tempDir: Directory: '/tmp', workingDir: Directory: '/home/detiam/.local/share/app.hiddify.com')
flutter: [D] GeoAssetRepositoryImpl: initializing
flutter: 👻 22:43:37.170878 INFO bootstrap - hiddify v0.11.1 (1101) [dev]
general release
linux [Linux 6.7.0-rc3-1-mainline #1 SMP PREEMPT_DYNAMIC Mon, 27 Nov 2023 12:39:50 +0000]
flutter: 🐛 22:43:37.170946 DEBUG Pref<bool, dynamic> - getting persisted preference [silent_start](bool)
flutter: 🐛 22:43:37.170960 DEBUG bootstrap - initializing [Auto Start Service] and [Window Controller]
flutter: 🐛 22:43:37.171005 DEBUG AutoStartService - initializing
flutter: 👻 22:43:37.171051 INFO AutoStartService - auto start is [Disabled]
flutter: 🐛 22:43:37.194965 DEBUG FFISingboxService - initializing
flutter: 🐛 22:43:37.195015 DEBUG bootstrap - initialized [Singbox Service]
flutter: 🐛 22:43:37.195074 DEBUG ActiveProfile - watching active profile
flutter: 🐛 22:43:37.209052 DEBUG SystemTrayController - initializing
flutter: 🐛 22:43:37.211567 DEBUG Pref<ServiceMode, String> - getting persisted preference [service-mode](ServiceMode)
flutter: 🐛 22:43:37.211634 DEBUG Pref<AppLocale, String> - getting persisted preference [locale](AppLocale)
flutter: 🐛 22:43:37.212316 DEBUG SystemTrayController - updating system tray
flutter: 👻 22:43:37.212397 INFO ConnectivityController - connection status: DISCONNECTED
flutter: ⚠ 22:43:38.209930 WARNING bootstrap - error initializing [System Tray Controller]
flutter:
flutter: 🐛 22:43:38.210220 DEBUG Pref<bool, dynamic> - getting persisted preference [intro_completed](bool)
flutter: 🐛 22:43:38.210420 DEBUG Pref<AppThemeMode, String> - getting persisted preference [theme_mode](AppThemeMode)
flutter: 🐛 22:43:38.210469 DEBUG ForegroundProfilesUpdateNotifier - initializing
flutter: 🐛 22:43:38.211335 DEBUG SystemTrayController - updating system tray
flutter: 🐛 22:43:38.219297 DEBUG RouterListenable - triggering listener
flutter: 🐛 22:43:38.219492 DEBUG ForegroundProfilesUpdateNotifier - cycle [0]
flutter: 🐛 22:43:38.220952 DEBUG ForegroundProfilesUpdateNotifier - too soon! previous run: [2023-11-30 22:43:24.417973]
flutter: upgrader: parseAppcastItemsFromUri exception: ClientException with SocketException: 拒绝连接 (OS Error: 拒绝连接, errno = 111), address = raw.githubusercontent.com, port = 56622, uri=https://raw.githubusercontent.com/hiddify/hiddify-next/main/appcast.xml
flutter: 🐛 22:43:40.194172 DEBUG Pref<bool, dynamic> - getting persisted preference [started_by_user](bool)
flutter: 🐛 22:43:40.194254 DEBUG WindowController - previously started by user, trying to connect
flutter: 🐛 22:43:40.194329 DEBUG Pref<bool, dynamic> - getting persisted preference [disable_memory_limit](bool)
flutter: 🐛 22:43:40.195148 DEBUG Pref<LogLevel, String> - getting persisted preference [log-level](LogLevel)
flutter: 🐛 22:43:40.195195 DEBUG Pref<bool, dynamic> - getting persisted preference [resolve-destination](bool)
flutter: 🐛 22:43:40.195222 DEBUG Pref<IPv6Mode, String> - getting persisted preference [ipv6-mode](IPv6Mode)
flutter: 🐛 22:43:40.195253 DEBUG Pref<String, dynamic> - getting persisted preference [remote-dns-address](String)
flutter: 🐛 22:43:40.195279 DEBUG Pref<DomainStrategy, String> - getting persisted preference [remote-domain-dns-strategy](DomainStrategy)
flutter: 🐛 22:43:40.195297 DEBUG Pref<String, dynamic> - getting persisted preference [direct-dns-address](String)
flutter: 🐛 22:43:40.195309 DEBUG Pref<DomainStrategy, String> - getting persisted preference [direct-domain-dns-strategy](DomainStrategy)
flutter: 🐛 22:43:40.195338 DEBUG Pref<int, dynamic> - getting persisted preference [mixed-port](int)
flutter: 🐛 22:43:40.195352 DEBUG Pref<int, dynamic> - getting persisted preference [localDns-port](int)
flutter: 🐛 22:43:40.195378 DEBUG Pref<TunImplementation, String> - getting persisted preference [tun-implementation](TunImplementation)
flutter: 🐛 22:43:40.195393 DEBUG Pref<int, dynamic> - getting persisted preference [mtu](int)
flutter: 🐛 22:43:40.195406 DEBUG Pref<bool, dynamic> - getting persisted preference [strict-route](bool)
flutter: 🐛 22:43:40.195419 DEBUG Pref<String, dynamic> - getting persisted preference [connection-test-url](String)
flutter: 🐛 22:43:40.195443 DEBUG Pref<Duration, int> - getting persisted preference [url-test-interval](Duration)
flutter: 🐛 22:43:40.195457 DEBUG Pref<bool, dynamic> - getting persisted preference [enable-clash-api](bool)
flutter: 🐛 22:43:40.195470 DEBUG Pref<int, dynamic> - getting persisted preference [clash-api-port](int)
flutter: 🐛 22:43:40.195481 DEBUG Pref<bool, dynamic> - getting persisted preference [bypass-lan](bool)
flutter: 🐛 22:43:40.195491 DEBUG Pref<bool, dynamic> - getting persisted preference [enable-fake-dns](bool)
flutter: 🐛 22:43:40.195524 DEBUG Pref<Region, String> - getting persisted preference [region](Region)
flutter: 👻 22:43:40.195917 INFO CoreFacadeImpl - config options: {
"execute-config-as-is": false,
"log-level": "warn",
"resolve-destination": false,
"ipv6-mode": "prefer_ipv6",
"remote-dns-address": "tcp://8.8.8.8",
"remote-dns-domain-strategy": "",
"direct-dns-address": "8.8.8.8",
"direct-dns-domain-strategy": "",
"mixed-port": 2334,
"local-dns-port": 6450,
"tun-implementation": "mixed",
"mtu": 9000,
"strict-route": true,
"connection-test-url": "http://cp.cloudflare.com/",
"url-test-interval": "10m",
"enable-clash-api": true,
"clash-api-port": 6756,
"enable-tun": false,
"set-system-proxy": false,
"bypass-lan": false,
"enable-fake-dns": false,
"independent-dns-cache": true,
"geoip-path": "geo-assets/sagernet-sing-geoip-geoip.db",
"geosite-path": "geo-assets/sagernet-sing-geosite-geosite.db",
"rules": [
{
"domains": "domain:.cn,geosite:cn",
"ip": "geoip:cn",
"port": null,
"protocol": null,
"network": "",
"outbound": "bypass"
}
]
}
Memory Limit: true
flutter: 🐛 22:43:40.196 DEBUG CoreFacadeImpl - setting up singbox
flutter: 🐛 22:43:40.334102 DEBUG CoreFacadeImpl - setup complete
flutter: 🐛 22:43:40.337529 DEBUG FFISingboxService - starting, memory limit: [true]
flutter: 👻 22:43:40.337719 INFO ConnectivityController - connection status: CONNECTING
flutter: 🐛 22:43:40.337897 DEBUG SystemTrayController - updating system tray
config options: {ExecuteAsIs:false LogLevel:warn ResolveDestination:false IPv6Mode:2 RemoteDnsAddress:tcp://8.8.8.8 RemoteDnsDomainStrategy:0 DirectDnsAddress:8.8.8.8 DirectDnsDomainStrategy:0 MixedPort:2334 LocalDnsPort:6450 MTU:9000 StrictRoute:true TUNStack: ConnectionTestUrl:http://cp.cloudflare.com/ URLTestInterval:600000000000 EnableClashApi:true ClashApiPort:6756 EnableTun:false SetSystemProxy:false BypassLAN:false EnableFakeDNS:false IndependentDNSCache:true GeoIPPath:geo-assets/sagernet-sing-geoip-geoip.db GeoSitePath:geo-assets/sagernet-sing-geosite-geosite.db Rules:[{Domains:domain:.cn,geosite:cn IP:geoip:cn Port: Network: Protocol: Outbound:bypass}]}
TRACE[0000] [Command Server Handler]: Starting command server
flutter: 👻 22:43:40.428008 INFO ConnectivityController - connection status: CONNECTED
flutter: 🐛 22:43:40.428283 DEBUG SystemTrayController - updating system tray
flutter: 🐛 22:43:40.428458 DEBUG FFISingboxService - singbox native libs path: "libcore.so"
DEBUG[0000] [Status Command Client]: CONNECTED
DEBUG[0000] [Status Command Client]: Memory: 7.0 MB, Goroutines: 92
^C⏎
Are you willing to submit a PR? If you know how to fix the bug.
- [ ] I'm willing to submit a PR (Thank you!)