Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/zzzgydi/auto-launch
/ functions
Functions
78 in github.com/zzzgydi/auto-launch
⨍
Functions
78
◇
Types & classes
6
↓ 12 callers
Method
enable
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 callers
Method
disable
Disable the AutoLaunch setting ## Errors - failed to remove file - failed to disable systemd service (if using systemd mode)
src/linux.rs:127
↓ 5 callers
Function
get_test_bin
(name: &str)
tests/test.rs:9
↓ 3 callers
Method
build
Construct a AutoLaunch instance ## Errors - `app_name` is none - `app_path` is none - Unsupported target OS
src/lib.rs:445
↓ 3 callers
Function
exec_apple_script
Execute the specific AppleScript
src/macos.rs:254
↓ 3 callers
Method
get_file
get the plist file path
src/macos.rs:240
↓ 3 callers
Method
get_xdg_desktop_file
Get the XDG desktop entry file path
src/linux.rs:207
↓ 3 callers
Method
set_app_name
Set the `app_name`
src/lib.rs:369
↓ 3 callers
Method
set_app_path
Set the `app_path`
src/lib.rs:375
↓ 3 callers
Method
set_args
Set the args
src/lib.rs:433
↓ 2 callers
Function
build_launch_agent_plist
( app_name: &str, app_path: &str, args: &[String], bundle_identifiers: &[String], agent_ex
src/macos.rs:262
↓ 2 callers
Function
build_systemd_service_data
(app_name: &str, app_path: &str, args: &[String])
src/linux.rs:234
↓ 2 callers
Function
build_xdg_autostart_data
(app_name: &str, app_path: &str, args: &[String])
src/linux.rs:217
↓ 2 callers
Function
delete_task_manager_override_value
(root_key: &RegKey, name: &str)
tests/test.rs:103
↓ 2 callers
Method
disable_with_root_key
(&self, root_key: &Key)
src/windows.rs:133
↓ 2 callers
Method
enable_as_admin
(&self)
src/windows.rs:66
↓ 2 callers
Method
enable_as_current_user
(&self)
src/windows.rs:70
↓ 2 callers
Method
enable_with_root_key
(&self, root_key: &Key)
src/windows.rs:74
↓ 2 callers
Function
get_dir
Get the Launch Agent Dir
src/macos.rs:246
↓ 2 callers
Method
get_systemd_service_file
Get the systemd service file path
src/linux.rs:212
↓ 2 callers
Function
get_systemd_user_dir
Get the systemd user service directory
src/linux.rs:267
↓ 2 callers
Function
get_xdg_autostart_dir
Get the XDG autostart directory
src/linux.rs:259
↓ 2 callers
Method
is_registered
(&self, root_key: &Key)
src/windows.rs:158
↓ 2 callers
Method
is_task_manager_enabled
(&self, root_key: &Key)
src/windows.rs:172
↓ 2 callers
Function
set_task_manager_override_value
(root_key: &RegKey, name: &str, value: [u8; 12])
tests/test.rs:96
↓ 2 callers
Function
test_with_admin
( app_name: &str, app_path: &str, args: &[&str], enable_mode: WindowsEnableMod
tests/test.rs:131
↓ 1 callers
Method
disable_applescript
Disable AppleScript login item
src/macos.rs:194
↓ 1 callers
Method
disable_as_admin
(&self)
src/windows.rs:125
↓ 1 callers
Method
disable_as_current_user
(&self)
src/windows.rs:129
↓ 1 callers
Method
disable_launch_agent
Disable Launch Agent
src/macos.rs:185
↓ 1 callers
Method
disable_smappservice
Disable SMAppService
src/macos.rs:176
↓ 1 callers
Method
disable_systemd
Disable systemd user service
src/linux.rs:144
↓ 1 callers
Method
disable_xdg_autostart
Disable XDG Autostart
src/linux.rs:135
↓ 1 callers
Method
enable_applescript
Enable using AppleScript
src/macos.rs:133
↓ 1 callers
Method
enable_launch_agent
Enable using Launch Agent
src/macos.rs:115
↓ 1 callers
Method
enable_systemd
Enable using systemd user service
src/linux.rs:69
↓ 1 callers
Method
enable_xdg_autostart
Enable using XDG Autostart (.desktop file)
src/linux.rs:45
↓ 1 callers
Method
is_applescript_enabled
Check if AppleScript login item is enabled
src/macos.rs:224
↓ 1 callers
Method
is_smappservice_enabled
Check if SMAppService is enabled
src/macos.rs:218
↓ 1 callers
Method
is_systemd_enabled
Check if systemd service is enabled
src/linux.rs:193
↓ 1 callers
Function
last_eight_bytes_all_zeros
(bytes: &[u8])
src/windows.rs:187
↓ 1 callers
Method
set_agent_extra_config
Set the `agent_extra_config` This setting only works on macOS
src/lib.rs:413
↓ 1 callers
Method
set_bundle_identifiers
Set the `bundle_identifiers` This setting only works on macOS
src/lib.rs:401
↓ 1 callers
Method
set_macos_launch_mode
Set the [`MacOSLaunchMode`]. This setting only works on macOS
src/lib.rs:382
↓ 1 callers
Method
systemctl_disable
Run systemctl --user disable command
src/linux.rs:163
↓ 1 callers
Method
systemctl_enable
Run systemctl --user enable command
src/linux.rs:101
Method
default
()
src/lib.rs:323
Method
disable
Disable the AutoLaunch setting ## Errors - failed to open the registry key - failed to delete value
src/windows.rs:106
Method
disable
Disable the AutoLaunch setting ## Errors #### Launch Agent - failed to remove file `~/Library/LaunchAgents/{app_name}.plist` #### AppleScript - f
src/macos.rs:167
Method
enable
Enable the AutoLaunch setting ## Errors - failed to open the registry key - failed to set value
src/windows.rs:46
Method
enable
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
Method
get_app_name
get the application name
src/lib.rs:251
Method
get_app_path
get the application path
src/lib.rs:256
Method
get_args
get the args
src/lib.rs:261
Method
is_enabled
Check whether the AutoLaunch setting is enabled
src/linux.rs:185
Method
is_enabled
Check whether the AutoLaunch setting is enabled
src/windows.rs:147
Method
is_enabled
Check whether the AutoLaunch setting is enabled #### SMAppService - Check if the app is registered with SMAppService
src/macos.rs:209
Method
is_support
check whether it is support the platform ## Usage ```rust use auto_launch::AutoLaunch; dbg!(AutoLaunch::is_support()); ```
src/lib.rs:242
Function
main
()
test-exe/src/main.rs:1
Method
new
()
src/lib.rs:364
Method
new
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
Method
new
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
Method
new
Create a new AutoLaunch instance - `app_name`: application name - `app_path`: application path - `launch_mode`: launch mode (Launch Agent, AppleScript
src/macos.rs:35
Method
set_linux_launch_mode
Set the [`LinuxLaunchMode`]. This setting only works on Linux
src/lib.rs:427
Method
set_use_launch_agent
(&mut self, use_launch_agent: bool)
src/lib.rs:390
Method
set_windows_enable_mode
Set the [`WindowsEnableMode`]. This setting only works on Windows
src/lib.rs:420
Function
test_build_launch_agent_plist
()
src/macos.rs:317
Function
test_build_systemd_service_data
()
src/linux.rs:295
Function
test_build_xdg_autostart_data
()
src/linux.rs:279
Function
test_builder
()
tests/test.rs:33
Function
test_last_eight_bytes_all_zeros_false
()
src/windows.rs:206
Function
test_last_eight_bytes_all_zeros_too_short
()
src/windows.rs:212
Function
test_last_eight_bytes_all_zeros_true
()
src/windows.rs:200
Function
test_linux
()
tests/test.rs:372
Function
test_macos_main
()
tests/test.rs:248
Function
test_macos_new
()
tests/test.rs:193
Function
test_support
()
tests/test.rs:27
Function
test_windows
()
tests/test.rs:113