MCPcopy Index your code

hub / github.com/zzzgydi/auto-launch / functions

Functions78 in github.com/zzzgydi/auto-launch

↓ 12 callersMethodenable
Enable the AutoLaunch setting ## Errors - failed to create directory - failed to create file - failed to write bytes to the file - failed to enable
src/linux.rs:37
↓ 11 callersMethoddisable
Disable the AutoLaunch setting ## Errors - failed to remove file - failed to disable systemd service (if using systemd mode)
src/linux.rs:127
↓ 5 callersFunctionget_test_bin
(name: &str)
tests/test.rs:9
↓ 3 callersMethodbuild
Construct a AutoLaunch instance ## Errors - `app_name` is none - `app_path` is none - Unsupported target OS
src/lib.rs:445
↓ 3 callersFunctionexec_apple_script
Execute the specific AppleScript
src/macos.rs:254
↓ 3 callersMethodget_file
get the plist file path
src/macos.rs:240
↓ 3 callersMethodget_xdg_desktop_file
Get the XDG desktop entry file path
src/linux.rs:207
↓ 3 callersMethodset_app_name
Set the `app_name`
src/lib.rs:369
↓ 3 callersMethodset_app_path
Set the `app_path`
src/lib.rs:375
↓ 3 callersMethodset_args
Set the args
src/lib.rs:433
↓ 2 callersFunctionbuild_launch_agent_plist
( app_name: &str, app_path: &str, args: &[String], bundle_identifiers: &[String], agent_ex
src/macos.rs:262
↓ 2 callersFunctionbuild_systemd_service_data
(app_name: &str, app_path: &str, args: &[String])
src/linux.rs:234
↓ 2 callersFunctionbuild_xdg_autostart_data
(app_name: &str, app_path: &str, args: &[String])
src/linux.rs:217
↓ 2 callersFunctiondelete_task_manager_override_value
(root_key: &RegKey, name: &str)
tests/test.rs:103
↓ 2 callersMethoddisable_with_root_key
(&self, root_key: &Key)
src/windows.rs:133
↓ 2 callersMethodenable_as_admin
(&self)
src/windows.rs:66
↓ 2 callersMethodenable_as_current_user
(&self)
src/windows.rs:70
↓ 2 callersMethodenable_with_root_key
(&self, root_key: &Key)
src/windows.rs:74
↓ 2 callersFunctionget_dir
Get the Launch Agent Dir
src/macos.rs:246
↓ 2 callersMethodget_systemd_service_file
Get the systemd service file path
src/linux.rs:212
↓ 2 callersFunctionget_systemd_user_dir
Get the systemd user service directory
src/linux.rs:267
↓ 2 callersFunctionget_xdg_autostart_dir
Get the XDG autostart directory
src/linux.rs:259
↓ 2 callersMethodis_registered
(&self, root_key: &Key)
src/windows.rs:158
↓ 2 callersMethodis_task_manager_enabled
(&self, root_key: &Key)
src/windows.rs:172
↓ 2 callersFunctionset_task_manager_override_value
(root_key: &RegKey, name: &str, value: [u8; 12])
tests/test.rs:96
↓ 2 callersFunctiontest_with_admin
( app_name: &str, app_path: &str, args: &[&str], enable_mode: WindowsEnableMod
tests/test.rs:131
↓ 1 callersMethoddisable_applescript
Disable AppleScript login item
src/macos.rs:194
↓ 1 callersMethoddisable_as_admin
(&self)
src/windows.rs:125
↓ 1 callersMethoddisable_as_current_user
(&self)
src/windows.rs:129
↓ 1 callersMethoddisable_launch_agent
Disable Launch Agent
src/macos.rs:185
↓ 1 callersMethoddisable_smappservice
Disable SMAppService
src/macos.rs:176
↓ 1 callersMethoddisable_systemd
Disable systemd user service
src/linux.rs:144
↓ 1 callersMethoddisable_xdg_autostart
Disable XDG Autostart
src/linux.rs:135
↓ 1 callersMethodenable_applescript
Enable using AppleScript
src/macos.rs:133
↓ 1 callersMethodenable_launch_agent
Enable using Launch Agent
src/macos.rs:115
↓ 1 callersMethodenable_systemd
Enable using systemd user service
src/linux.rs:69
↓ 1 callersMethodenable_xdg_autostart
Enable using XDG Autostart (.desktop file)
src/linux.rs:45
↓ 1 callersMethodis_applescript_enabled
Check if AppleScript login item is enabled
src/macos.rs:224
↓ 1 callersMethodis_smappservice_enabled
Check if SMAppService is enabled
src/macos.rs:218
↓ 1 callersMethodis_systemd_enabled
Check if systemd service is enabled
src/linux.rs:193
↓ 1 callersFunctionlast_eight_bytes_all_zeros
(bytes: &[u8])
src/windows.rs:187
↓ 1 callersMethodset_agent_extra_config
Set the `agent_extra_config` This setting only works on macOS
src/lib.rs:413
↓ 1 callersMethodset_bundle_identifiers
Set the `bundle_identifiers` This setting only works on macOS
src/lib.rs:401
↓ 1 callersMethodset_macos_launch_mode
Set the [`MacOSLaunchMode`]. This setting only works on macOS
src/lib.rs:382
↓ 1 callersMethodsystemctl_disable
Run systemctl --user disable command
src/linux.rs:163
↓ 1 callersMethodsystemctl_enable
Run systemctl --user enable command
src/linux.rs:101
Methoddefault
()
src/lib.rs:323
Methoddisable
Disable the AutoLaunch setting ## Errors - failed to open the registry key - failed to delete value
src/windows.rs:106
Methoddisable
Disable the AutoLaunch setting ## Errors #### Launch Agent - failed to remove file `~/Library/LaunchAgents/{app_name}.plist` #### AppleScript - f
src/macos.rs:167
Methodenable
Enable the AutoLaunch setting ## Errors - failed to open the registry key - failed to set value
src/windows.rs:46
Methodenable
Enable the AutoLaunch setting ## Errors - `app_path` does not exist - `app_path` is not absolute #### Launch Agent - failed to create dir `~/Libra
src/macos.rs:88
Methodget_app_name
get the application name
src/lib.rs:251
Methodget_app_path
get the application path
src/lib.rs:256
Methodget_args
get the args
src/lib.rs:261
Methodis_enabled
Check whether the AutoLaunch setting is enabled
src/linux.rs:185
Methodis_enabled
Check whether the AutoLaunch setting is enabled
src/windows.rs:147
Methodis_enabled
Check whether the AutoLaunch setting is enabled #### SMAppService - Check if the app is registered with SMAppService
src/macos.rs:209
Methodis_support
check whether it is support the platform ## Usage ```rust use auto_launch::AutoLaunch; dbg!(AutoLaunch::is_support()); ```
src/lib.rs:242
Functionmain
()
test-exe/src/main.rs:1
Methodnew
()
src/lib.rs:364
Methodnew
Create a new AutoLaunch instance - `app_name`: application name - `app_path`: application path - `launch_mode`: launch mode (XDG Autostart or systemd)
src/linux.rs:15
Methodnew
Create a new AutoLaunch instance - `app_name`: application name - `app_path`: application path - `enable_mode`: behavior of the enable feature - `args
src/windows.rs:26
Methodnew
Create a new AutoLaunch instance - `app_name`: application name - `app_path`: application path - `launch_mode`: launch mode (Launch Agent, AppleScript
src/macos.rs:35
Methodset_linux_launch_mode
Set the [`LinuxLaunchMode`]. This setting only works on Linux
src/lib.rs:427
Methodset_use_launch_agent
(&mut self, use_launch_agent: bool)
src/lib.rs:390
Methodset_windows_enable_mode
Set the [`WindowsEnableMode`]. This setting only works on Windows
src/lib.rs:420
Functiontest_build_launch_agent_plist
()
src/macos.rs:317
Functiontest_build_systemd_service_data
()
src/linux.rs:295
Functiontest_build_xdg_autostart_data
()
src/linux.rs:279
Functiontest_builder
()
tests/test.rs:33
Functiontest_last_eight_bytes_all_zeros_false
()
src/windows.rs:206
Functiontest_last_eight_bytes_all_zeros_too_short
()
src/windows.rs:212
Functiontest_last_eight_bytes_all_zeros_true
()
src/windows.rs:200
Functiontest_linux
()
tests/test.rs:372
Functiontest_macos_main
()
tests/test.rs:248
Functiontest_macos_new
()
tests/test.rs:193
Functiontest_support
()
tests/test.rs:27
Functiontest_windows
()
tests/test.rs:113