Commit Graph

6 Commits

Author SHA1 Message Date
Arcitec
c4b6b47606 fix: switch profile.d script to more robust technique
- Now uses `sh`-style single-bracket `[]` POSIX syntax instead of the truly old-school `test` syntax. Both are equivalent and equally portable. In fact, `man test` explains everything that `[]` can do.

- We now symlink the user's autostart file to the uBlue image's own file, and we do it in a backwards-compatible way which replaces the user's current legacy script file (if any). The previous system dumped a permanent file in the user's home-directory which never updated again after that, which meant that OS updates could never fix or improve the autostart scripts in the future. That's now possible, thanks to being a symlink.

- If the user uninstalls uBlue, or switches to a flavor without `yafti`, then the leftover "autostart" symlink will simply be a minor nuisance that only causes some soft, invisible syslog warnings about the "broken symlink", which is an improvement over the previous system which kept a full `.desktop` file that attempted to run a binary and failed to find it.
2023-05-14 18:18:18 +03:00
Arcitec
ec4d01caa8 fix!: enhanced autostart.desktop to use new script, and always find icon
Notable changes:

- The icon is no longer dependent on "GNOME Terminal" being installed. Will now work on any desktop environment, not just GNOME. We only see this icon in "GNOME Tweaks: Startup Applications" or similar autostart-managers, which is even better reason to use a generic, always-existing icon for the shortcut.

- Now runs the new "autostart.sh" yafti GUI launcher.

- Tells the OS to not spawn a terminal window when running this shell script.
2023-05-14 18:18:18 +03:00
Arcitec
8a5fd31f88 feat: new "autostart" binary, for easy startup customization
Instead of having to use a restrictive command-line in a ".desktop" file, we are now able to use scripting to create more advanced launchers, or if someone wants to easily switch yafti to something else.
2023-05-14 18:18:18 +03:00
Arcitec
34f6189d26 fix!: move all autostart-related files to standardized location 2023-05-14 18:18:18 +03:00
Arcitec
8ee996722f fix!: move yafti.yml to standardized location 2023-05-10 21:44:01 +03:00
Arcitec
07642c2f43 fix!: move justfile to standardized location 2023-05-10 21:44:01 +03:00