Tunglies 764e8f7719 feat(autostart): add app name configuration for auto start entry (#2707)
* feat(autostart): add prefered name configuration for auto start entry

- Add PreferedName enum to support different naming strategies
- Implement Default trait for PreferedName with PackageInfoName as default
- Add prefered_name builder method with documentation and examples
- Integrate prefered name into auto start configuration

This change allows users to customize the name of their application in the
auto start entry using various naming strategies like package info name,
crate name, config identifier, or custom name.

* refactor(autostart): rename prefered_name to app_name and update related logic

- Change prefered_name to app_name in the Builder struct and methods
- Update PreferedName enum to include new variants and set AppName as default
- Modify documentation to reflect the new app_name usage for auto start entry

This refactor improves clarity in naming conventions and enhances the configuration options for auto start entries.

* refactor(autostart): update app_name handling in README and lib.rs

- Change app_name usage in README to a custom string
- Simplify app_name handling in lib.rs by removing PreferedName enum
- Update Builder struct to accept app_name as an optional string

This refactor enhances the clarity and usability of the auto start configuration.

* feat(autostart): add app_name builder method for custom application naming

- Introduced a new builder method app_name() to customize the application name in the autostart entry.
- Updated app_name handling in the Builder struct to accept a generic string type.

This enhancement allows for greater flexibility in defining application names for autostart configurations.

* Update .changes/autostart-feature.md

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>

* [skip ci] format

---------

Co-authored-by: Tony <68118705+Legend-Master@users.noreply.github.com>
2025-05-20 23:51:36 +08:00
2025-05-20 10:27:36 +02:00
2025-03-10 13:57:17 +01:00
2025-05-20 10:27:36 +02:00
2022-12-14 18:54:05 +01:00
2022-12-14 18:54:05 +01:00
2022-12-14 18:54:05 +01:00
2025-05-20 10:27:36 +02:00
2024-12-23 20:08:05 +01:00

Official Tauri Plugins

This repo and all plugins require a Rust version of at least 1.77.2

Plugins Found Here

Win Mac Lin iOS And
autostart Automatically launch your app at system startup.
barcode-scanner Allows your mobile application to use the camera to scan QR codes, EAN-13 and other kinds of barcodes. ? ? ?
biometric Prompt the user for biometric authentication on Android and iOS. ? ? ?
cli Parse arguments from your Command Line Interface
clipboard-manager Read and write to the system clipboard.
deep-link Set your Tauri application as the default handler for an URL.
dialog Native system dialogs for opening and saving files along with message dialogs.
fs Access the file system. ? ?
geolocation Get and track current device position. ? ? ?
global-shortcut Register global shortcuts. ? ?
haptics Haptic feedback and vibrations. ? ? ?
http Access the HTTP client written in Rust.
localhost Use a localhost server in production apps. ? ?
log Configurable logging.
nfc Read and write NFC tags on Android and iOS. ? ? ?
notification Send message notifications (brief auto-expiring OS window element) to your user. Can also be used with the Notification Web API.
opener Open files and URLs using their default application. ? ?
os Read information about the operating system.
persisted-scope Persist runtime scope changes on the filesystem. ? ?
positioner Move windows to common locations.
process This plugin provides APIs to access the current process. To spawn child processes, see the shell plugin. ? ?
shell Access the system shell. Allows you to spawn child processes and manage files and URLs using their default application. ? ?
single-instance Ensure a single instance of your tauri app is running.
sql Interface with SQL databases.
store Persistent key value storage.
stronghold Encrypted, secure database. ? ?
updater In-app updates for Tauri applications.
upload Tauri plugin for file uploads through HTTP. ? ?
websocket Open a WebSocket connection using a Rust client in JS. ? ?
window-state Persist window sizes and positions.
  • : (Partially) Supported
  • : Not supported
  • ? : Unknown/Untested or Planned

Contributing

PRs accepted. Please make sure to read the Contributing Guide before making a pull request.

Partners

CrabNebula

For the complete list of sponsors please visit our website and Open Collective.

Description
⚠️ ARCHIVED: Original GitHub repository no longer exists. Preserved as backup on 2026-01-31T05:32:34.623Z
Readme 29 MiB
Languages
Rust 60.6%
TypeScript 15.2%
Kotlin 13.5%
Swift 8.5%
JavaScript 1.5%
Other 0.6%