Skip to content

Commit 0d8e3eb

Browse files
committed
upload missing yafti files
1 parent 3b04c9e commit 0d8e3eb

File tree

5 files changed

+171
-0
lines changed

5 files changed

+171
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[Desktop Entry]
2+
Name=uBlue First Boot Setup
3+
Comment=Sets up the uBlue desktop on first boot.
4+
GenericName=Launcher
5+
Categories=Utility;System;
6+
Exec=/usr/share/ublue-os/firstboot/launcher/autostart.sh
7+
Icon=application-x-executable
8+
Terminal=false
9+
Type=Application
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env bash
2+
3+
# Simply launches the "yafti" GUI with the uBlue image's configuration.
4+
/usr/bin/yafti /usr/share/ublue-os/firstboot/yafti.yml
35 KB
Loading
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Only process users with home directories, but skip the "root" user.
2+
if [ "$(id -u)" != "0" ] && [ ! -z "$HOME" ] && [ -d "$HOME" ]; then
3+
# Ensure target file exists and is a symlink (not a regular file or dir).
4+
if [ ! -L "$HOME"/.config/autostart/ublue-firstboot.desktop ]; then
5+
# Remove any leftovers or incorrect (non-link) files with the same name.
6+
rm -rf "$HOME"/.config/autostart/ublue-firstboot.desktop
7+
8+
# Create symlink to uBlue's autostart runner.
9+
# Note that "broken autostart symlinks" are harmless if they remain
10+
# after distro switching, and just cause a minor syslog warning. The
11+
# user can manually delete this file if they migrate away from uBlue.
12+
mkdir -p "$HOME"/.config/autostart
13+
ln -s "/usr/share/ublue-os/firstboot/launcher/autostart.desktop" "$HOME"/.config/autostart/ublue-firstboot.desktop
14+
fi
15+
fi

modules/yafti/yafti.yml

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
title: Welcome to uBlue
2+
properties:
3+
mode: "run-on-change"
4+
screens:
5+
first-screen:
6+
source: yafti.screen.title
7+
values:
8+
title: "Welcome to uBlue (Alpha)"
9+
icon: "/path/to/icon"
10+
description: |
11+
This guided installer will help you get started with your new system.
12+
can-we-modify-your-flatpaks:
13+
source: yafti.screen.consent
14+
values:
15+
title: Welcome, Traveler!
16+
condition:
17+
run: flatpak remotes --columns=name | grep fedora
18+
description: |
19+
We have detected the limited, Fedora-provided Flatpak remote on your system, whose applications are usually missing important codecs and other features. This step will therefore remove all basic Fedora Flatpaks from your system! We will instead switch all core Flatpak applications over to the vastly superior, unfiltered Flathub. If you don't want to do this, simply exit this installer.
20+
actions:
21+
- run: flatpak remote-delete --system --force fedora
22+
- run: flatpak remote-delete --user --force fedora
23+
- run: flatpak remove --system --noninteractive --all
24+
- run: flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
25+
- run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
26+
check-system-flathub:
27+
source: yafti.screen.consent
28+
values:
29+
title: Missing Flathub Repository (System)
30+
condition:
31+
run: flatpak remotes --system --columns=name | grep flathub | wc -l | grep '^0$'
32+
description: |
33+
We have detected that you don't have Flathub's repository on your system. We will now add that repository to your system-wide list.
34+
actions:
35+
- run: flatpak remote-add --if-not-exists --system flathub https://flathub.org/repo/flathub.flatpakrepo
36+
check-user-flathub:
37+
source: yafti.screen.consent
38+
values:
39+
title: Missing Flathub Repository (User)
40+
condition:
41+
run: flatpak remotes --user --columns=name | grep flathub | wc -l | grep '^0$'
42+
description: |
43+
We have detected that you don't have Flathub's repository on your current user account. We will now add that repository to your account.
44+
actions:
45+
- run: flatpak remote-add --if-not-exists --user flathub https://flathub.org/repo/flathub.flatpakrepo
46+
applications:
47+
source: yafti.screen.package
48+
values:
49+
title: Application Installer
50+
show_terminal: true
51+
package_manager: yafti.plugin.flatpak
52+
package_manager_defaults:
53+
user: false
54+
system: true
55+
groups:
56+
Core GNOME Apps:
57+
description: Core system applications for the GNOME desktop environment.
58+
default: true
59+
packages:
60+
- Calculator: org.gnome.Calculator
61+
- Calendar: org.gnome.Calendar
62+
- Camera: org.gnome.Snapshot
63+
- Characters: org.gnome.Characters
64+
- Clocks: org.gnome.clocks
65+
- Connections: org.gnome.Connections
66+
- Contacts: org.gnome.Contacts
67+
- Disk Usage Analyzer: org.gnome.baobab
68+
- Document Scanner: org.gnome.SimpleScan
69+
- Document Viewer: org.gnome.Evince
70+
- Extension Manager: com.mattjakeman.ExtensionManager
71+
- Font Viewer: org.gnome.font-viewer
72+
- Image Viewer: org.gnome.Loupe
73+
- Logs: org.gnome.Logs
74+
- Maps: org.gnome.Maps
75+
- Photos (Organizer): org.gnome.Photos
76+
- Sushi (Nautilus Previewer): org.gnome.NautilusPreviewer
77+
- Text Editor: org.gnome.TextEditor
78+
- Videos (Player): org.gnome.Totem
79+
- Weather: org.gnome.Weather
80+
System Apps:
81+
description: System applications for all desktop environments.
82+
default: true
83+
packages:
84+
- Deja Dup Backups: org.gnome.DejaDup
85+
- Fedora Media Writer: org.fedoraproject.MediaWriter
86+
- Flatseal (Permission Manager): com.github.tchx84.Flatseal
87+
- Font Downloader: org.gustavoperedo.FontDownloader
88+
- Mozilla Firefox: org.mozilla.firefox
89+
Web Browsers:
90+
description: Additional browsers to complement or replace Firefox.
91+
default: false
92+
packages:
93+
- Brave: com.brave.Browser
94+
- GNOME Web: org.gnome.Epiphany
95+
- Google Chrome: com.google.Chrome
96+
- Microsoft Edge: com.microsoft.Edge
97+
- Opera: com.opera.Opera
98+
Gaming:
99+
description: "Rock and Stone!"
100+
default: false
101+
packages:
102+
- Bottles: com.usebottles.bottles
103+
- Discord: com.discordapp.Discord
104+
- Heroic Games Launcher: com.heroicgameslauncher.hgl
105+
- Steam: com.valvesoftware.Steam
106+
- Gamescope (Utility): org.freedesktop.Platform.VulkanLayer.gamescope
107+
- MangoHUD (Utility): org.freedesktop.Platform.VulkanLayer.MangoHud//22.08
108+
- SteamTinkerLaunch (Utility): com.valvesoftware.Steam.Utility.steamtinkerlaunch
109+
- Proton Updater for Steam: net.davidotek.pupgui2
110+
Office:
111+
description: Boost your productivity.
112+
default: false
113+
packages:
114+
- LibreOffice: org.libreoffice.LibreOffice
115+
- OnlyOffice: org.onlyoffice.desktopeditors
116+
- Obsidian: md.obsidian.Obsidian
117+
- Slack: com.slack.Slack
118+
- Standard Notes: org.standardnotes.standardnotes
119+
- Thunderbird Email: org.mozilla.Thunderbird
120+
Streaming:
121+
description: Stream to the Internet.
122+
default: false
123+
packages:
124+
- OBS Studio: com.obsproject.Studio
125+
- VkCapture for OBS: com.obsproject.Studio.OBSVkCapture
126+
- Gstreamer for OBS: com.obsproject.Studio.Plugin.Gstreamer
127+
- Gstreamer VAAPI for OBS: com.obsproject.Studio.Plugin.GStreamerVaapi
128+
- Boatswain for Streamdeck: com.feaneron.Boatswain
129+
130+
final-screen:
131+
source: yafti.screen.title
132+
values:
133+
title: "All done!"
134+
icon: "/path/to/icon"
135+
links:
136+
- "Install More Applications":
137+
run: /usr/bin/gnome-software
138+
- "Website":
139+
run: /usr/bin/xdg-open https://ublue.it
140+
- "Join the Discord Community":
141+
run: /usr/bin/xdg-open https://discord.gg/XjG48C7VHx
142+
description: |
143+
Thanks for trying uBlue, we hope you enjoy it!

0 commit comments

Comments
 (0)