Skip to content

Commit 42d2a17

Browse files
committed
πŸ› fix: fix: category, Chrome session, GNOME app-folder integration
- Manager .desktop: Categories=GTK;Utility β†’ Categories=GTK;Webapps - big-webapps-exec: Default/Browser profile β†’ native Chrome --profile-directory=Default (keeps user logins/cookies); custom profiles β†’ isolated --user-data-dir - desktop.rs: ensure trailing semicolon in Categories= field - desktop.rs: reset GNOME app-picker-layout on desktop file change (GNOME Shell caches app positions, preventing category changes from moving apps to correct folder)
1 parent ac1879d commit 42d2a17

2 files changed

Lines changed: 747 additions & 0 deletions

File tree

β€Žcrates/webapps-core/src/desktop.rsβ€Ž

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,18 @@ fn refresh_desktop_database() {
197197
let _ = std::process::Command::new("update-desktop-database")
198198
.arg(&apps_dir)
199199
.spawn();
200+
201+
// GNOME Shell caches app positions in app-picker-layout.
202+
// Reset it so apps move to correct folder after category change.
203+
if std::env::var("XDG_CURRENT_DESKTOP")
204+
.unwrap_or_default()
205+
.to_lowercase()
206+
.contains("gnome")
207+
{
208+
let _ = std::process::Command::new("dconf")
209+
.args(["reset", "/org/gnome/shell/app-picker-layout"])
210+
.spawn();
211+
}
200212
}
201213

202214
/// Strip chars that could break desktop file Exec or shell parsing

0 commit comments

Comments
Β (0)