From 1e78faa196087cedfb785126bc7f01e79644469f Mon Sep 17 00:00:00 2001 From: Patrick Fischer Date: Sun, 9 Aug 2026 04:39:07 +0800 Subject: [PATCH] feat!: migrate Onset application ID BREAKING CHANGE: application ID, desktop file, and icon change from com.github.xPathin.onset to com.github.kulmin.onset. Desktop environments may require users to repin Onset. --- .github/workflows/release.yml | 4 ++-- Cargo.lock | 2 +- Cargo.toml | 4 ++-- README.md | 16 ++++++++-------- aur/onset-git/PKGBUILD | 10 +++++----- aur/onset/PKGBUILD | 8 ++++---- ...t.desktop => com.github.kulmin.onset.desktop} | 2 +- ...hin.onset.svg => com.github.kulmin.onset.svg} | 0 src/app.rs | 2 +- src/ui/window.rs | 7 ++++--- 10 files changed, 28 insertions(+), 27 deletions(-) rename data/{com.github.xPathin.onset.desktop => com.github.kulmin.onset.desktop} (88%) rename data/icons/hicolor/scalable/apps/{com.github.xPathin.onset.svg => com.github.kulmin.onset.svg} (100%) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3d8f6a7..3c7a212 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -39,8 +39,8 @@ jobs: DIR="onset-${VERSION}-linux-${{ matrix.arch }}" mkdir "$DIR" cp target/release/onset "$DIR/" - cp data/com.github.xPathin.onset.desktop "$DIR/" - cp data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg "$DIR/" + cp data/com.github.kulmin.onset.desktop "$DIR/" + cp data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg "$DIR/" cp LICENSE "$DIR/" tar czf "${DIR}.tar.gz" "$DIR" - uses: actions/upload-artifact@v4 diff --git a/Cargo.lock b/Cargo.lock index 67cafc6..e8c4d2a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -506,7 +506,7 @@ checksum = "42f5e15c9953c5e4ccceeb2e7382a716482c34515315f7b03532b8b4e8393d2d" [[package]] name = "onset" -version = "1.0.3" +version = "2.0.0" dependencies = [ "anyhow", "gtk4", diff --git a/Cargo.toml b/Cargo.toml index 359a350..64bb88a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,11 +1,11 @@ [package] name = "onset" -version = "1.0.3" +version = "2.0.0" edition = "2024" authors = ["Patrick Fischer"] description = "Lightweight XDG autostart manager" license = "MIT" -repository = "https://github.com/xPathin/onset" +repository = "https://github.com/kulmin/onset" keywords = ["autostart", "xdg", "gtk", "linux", "desktop"] categories = ["gui", "config"] diff --git a/README.md b/README.md index 3907a17..39c97ad 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@

- Onset + Onset

Onset

- CI - Release - GitHub Release + CI + Release + GitHub Release AUR AUR git - License: MIT + License: MIT

A lightweight GTK4/libadwaita application for managing XDG autostart entries on Linux.

@@ -39,7 +39,7 @@ paru -S onset-git # latest main branch ### Pre-built Binaries -Download from the [latest release](https://github.com/xPathin/onset/releases/latest). +Download from the [latest release](https://github.com/kulmin/onset/releases/latest). ### From Source @@ -52,8 +52,8 @@ cargo build --release # Install sudo install -Dm755 target/release/onset /usr/bin/onset -sudo install -Dm644 data/com.github.xPathin.onset.desktop /usr/share/applications/com.github.xPathin.onset.desktop -sudo install -Dm644 data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg /usr/share/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg +sudo install -Dm644 data/com.github.kulmin.onset.desktop /usr/share/applications/com.github.kulmin.onset.desktop +sudo install -Dm644 data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg /usr/share/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg ``` ## Usage diff --git a/aur/onset-git/PKGBUILD b/aur/onset-git/PKGBUILD index 76a6881..bd5497e 100644 --- a/aur/onset-git/PKGBUILD +++ b/aur/onset-git/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Patrick Fischer pkgname=onset-git pkgver=r0.0000000 -pkgrel=2 +pkgrel=1 pkgdesc="Lightweight GTK4 autostart manager for Linux" arch=('x86_64' 'aarch64') url="https://github.com/kulmin/onset" @@ -35,9 +35,9 @@ check() { package() { cd onset install -Dm755 "target/release/onset" "$pkgdir/usr/bin/onset" - install -Dm644 "data/com.github.xPathin.onset.desktop" \ - "$pkgdir/usr/share/applications/com.github.xPathin.onset.desktop" - install -Dm644 "data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg" \ - "$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg" + install -Dm644 "data/com.github.kulmin.onset.desktop" \ + "$pkgdir/usr/share/applications/com.github.kulmin.onset.desktop" + install -Dm644 "data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg" \ + "$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/aur/onset/PKGBUILD b/aur/onset/PKGBUILD index 3cd3d7c..bb583de 100644 --- a/aur/onset/PKGBUILD +++ b/aur/onset/PKGBUILD @@ -1,7 +1,7 @@ # Maintainer: Patrick Fischer pkgname=onset -pkgver=0.1.1 -pkgrel=2 +pkgver=2.0.0 +pkgrel=1 pkgdesc="Lightweight GTK4 autostart manager for Linux" arch=('x86_64' 'aarch64') url="https://github.com/kulmin/onset" @@ -26,7 +26,7 @@ check() { package() { cd "$pkgname-$pkgver" install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" - install -Dm644 "data/com.github.xPathin.onset.desktop" "$pkgdir/usr/share/applications/com.github.xPathin.onset.desktop" - install -Dm644 "data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg" + install -Dm644 "data/com.github.kulmin.onset.desktop" "$pkgdir/usr/share/applications/com.github.kulmin.onset.desktop" + install -Dm644 "data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg" "$pkgdir/usr/share/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg" install -Dm644 "LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } diff --git a/data/com.github.xPathin.onset.desktop b/data/com.github.kulmin.onset.desktop similarity index 88% rename from data/com.github.xPathin.onset.desktop rename to data/com.github.kulmin.onset.desktop index a6c7fe9..a05b217 100644 --- a/data/com.github.xPathin.onset.desktop +++ b/data/com.github.kulmin.onset.desktop @@ -4,7 +4,7 @@ Name=Onset GenericName=Autostart Manager Comment=Manage XDG autostart entries Exec=onset -Icon=com.github.xPathin.onset +Icon=com.github.kulmin.onset Categories=Settings;System;GTK; Keywords=autostart;startup;boot;login;session; StartupNotify=true diff --git a/data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg b/data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg similarity index 100% rename from data/icons/hicolor/scalable/apps/com.github.xPathin.onset.svg rename to data/icons/hicolor/scalable/apps/com.github.kulmin.onset.svg diff --git a/src/app.rs b/src/app.rs index fbdf464..d9f6317 100644 --- a/src/app.rs +++ b/src/app.rs @@ -4,7 +4,7 @@ use libadwaita as adw; use crate::ui::MainWindow; -const APP_ID: &str = "com.github.xPathin.onset"; +pub const APP_ID: &str = "com.github.kulmin.onset"; pub fn run() -> i32 { let app = adw::Application::builder() diff --git a/src/ui/window.rs b/src/ui/window.rs index 0b9a697..6b9b6d6 100644 --- a/src/ui/window.rs +++ b/src/ui/window.rs @@ -6,6 +6,7 @@ use gtk4::prelude::*; use libadwaita as adw; use libadwaita::prelude::*; +use crate::app::APP_ID; use crate::desktop_entry::CreateOptions; use crate::discovery::{discover_applications, discover_autostart_entries}; use crate::model::{Application, AutostartEntry}; @@ -166,11 +167,11 @@ impl MainWindow { let dialog = adw::AboutWindow::builder() .application_name("Onset") .version(env!("ONSET_VERSION")) - .application_icon("com.github.xPathin.onset") + .application_icon(APP_ID) .developer_name("Patrick Fischer") .license_type(gtk4::License::MitX11) - .website("https://github.com/xPathin/onset") - .issue_url("https://github.com/xPathin/onset/issues") + .website("https://github.com/kulmin/onset") + .issue_url("https://github.com/kulmin/onset/issues") .transient_for(&window_clone) .modal(true) .build();