Commit Graph

7 Commits

Author SHA1 Message Date
plata
3355dc59b3 chore: autostart.desktop add line break at EOF 2023-08-02 15:46:52 +03:00
Arcitec
4318180a7c fix: further improve portability of login-profile.sh
The `-d ""` check is false on bash and zsh, but there might be some rare shell out there which treats it as "." or similar, so let's guard against that risk by also verifying that `$HOME` is a non-empty string before we check if it's a directory.
2023-05-14 18:18:18 +03:00
Arcitec
2f85593176 feat: include flowchart graphic which explains new launcher hierarchy 2023-05-14 18:18:18 +03:00
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