@@ -121,7 +121,7 @@ fn launch_backend(app: &mut App) -> Result<(), DynError> {
121121
122122fn spawn_sidecar ( app : & App ) -> Result < ( CommandRx , CommandChild ) , DynError > {
123123 let port_arg = PREFERRED_PORT . to_string ( ) ;
124- let mut command = app. shell ( ) . sidecar ( "agentsview " ) ?;
124+ let mut command = app. shell ( ) . sidecar ( "periscope " ) ?;
125125 for ( key, value) in sidecar_env ( ) {
126126 command = command. env ( key, value) ;
127127 }
@@ -198,7 +198,7 @@ fn is_allowed_external_open_url(url: &Url) -> bool {
198198// sidecar_env returns the environment passed to the backend
199199// sidecar process. It merges the app environment with
200200// login-shell variables so desktop launches inherit zshrc/bash
201- // exports. An optional ~/.periscope /desktop.env file can
201+ // exports. An optional legacy ~/.agentsview /desktop.env file can
202202// override specific keys as an escape hatch.
203203fn sidecar_env ( ) -> Vec < ( OsString , OsString ) > {
204204 let skip_login_shell = std:: env:: var_os ( "AGENTSVIEW_DESKTOP_SKIP_LOGIN_SHELL_ENV" ) ;
@@ -241,9 +241,9 @@ fn default_login_shell() -> String {
241241 "/bin/sh" . to_string ( )
242242}
243243
244- // read_desktop_env_file parses ~/.periscope /desktop.env as
244+ // read_desktop_env_file parses the legacy ~/.agentsview /desktop.env as
245245// KEY=VALUE lines. This provides a manual override path before
246- // desktop settings UI exists.
246+ // desktop settings UI exists. Keep the path for upstream compatibility.
247247fn read_desktop_env_file ( ) -> Vec < ( OsString , OsString ) > {
248248 let Some ( home) = resolve_home_dir ( ) else {
249249 return Vec :: new ( ) ;
0 commit comments