
* Abstract default browser to omarchy-browser (a wrapper) * Fix the omarchy-browser command as it used to loop. Extract info from the browser .desktop files. * Clean up and fix bugs * Cleanup unused change * Fix indentation * Separate out omarchy-browser from omarchy-webapp so that we don't break webapps for browsers other than Chromium or Google Chrome. * Fix incorrect function call * Add a migration script * Migration script fixes * Simplify the browser and webapp commands. Rename commands to align with launch terminology. * Add support for Microsoft Edge, Opera and Vivaldi * Fix errors * Remove --name and --class -- They're not respected when --app is defined * We don't ship with Chrome * Simplify launchers * Use launch commands everywhere --------- Co-authored-by: Ryan Hughes <ryan@heyoodle.com>
11 lines
339 B
Bash
Executable File
11 lines
339 B
Bash
Executable File
#!/bin/bash
|
|
|
|
browser=$(xdg-settings get default-web-browser)
|
|
|
|
case $browser in
|
|
google-chrome* | brave-browser* | microsoft-edge* | opera* | vivaldi*) ;;
|
|
*) browser="chromium.desktop" ;;
|
|
esac
|
|
|
|
exec setsid uwsm app -- $(sed -n 's/^Exec=\([^ ]*\).*/\1/p' {~/.local,/usr}/share/applications/$browser 2>/dev/null | head -1) --app="$1" "${@:2}"
|