tmichett / Fedora_Remix

Fedora Linux Remix
3 stars 1 forks source link

Autostart/AutoRun and Firstboot #3

Closed tmichett closed 1 year ago

tmichett commented 1 year ago

https://wiki.sugarlabs.org/go/Build_Your_Own_Remix_with_Fedora

tmichett commented 1 year ago

https://help.gnome.org/users/gnome-help/stable/shell-apps-auto-start.html.en

tmichett commented 1 year ago

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/customizing_the_gnome_desktop_environment/proc_launching-an-application-automatically-on-login_customizing-the-gnome-desktop-environment

tmichett commented 1 year ago

~/.config/autostart/.

[Desktop Entry] Type=Application Exec="/Your/location/to/theScript/yourScript.sh" Hidden=false NoDisplay=false X-GNOME-Autostart-enabled=true Name[en_IN]=AnyNameYouWish Name=AnyNameYouWish Comment[en_IN]=AnyComment Comment=AnyComment

https://askubuntu.com/questions/598195/how-to-add-a-script-to-startup-applications-from-the-command-line

tmichett commented 1 year ago

cd /usr/share/gnome/autostart

tmichett commented 1 year ago

[travis@fedora autostart]$ ls -alF total 8 drwxr-xr-x. 1 root root 112 Jul 28 16:53 ./ drwxr-xr-x. 1 root root 60 Apr 13 17:47 ../ -rwxr-xr-x. 1 root root 286 Jul 28 16:53 Fedora_Remix_Apps.desktop* -rw-r--r--. 1 root root 328 Jan 18 2023 libcanberra-login-sound.desktop [travis@fedora autostart]$ ./Fedora_Remix_Apps.desktop [travis@fedora autostart]$ cat libcanberra-login-sound.desktop [Desktop Entry] Type=Application Name=GNOME Login Sound Comment=Plays a sound whenever you log in Exec=/usr/bin/canberra-gtk-play --id="desktop-login" --description="GNOME Login" OnlyShowIn=GNOME; AutostartCondition=GSettings org.gnome.desktop.sound event-sounds X-GNOME-Autostart-Phase=Application X-GNOME-Provides=login-sound

tmichett commented 1 year ago

Need to update scripts to place in correct directory. Also need to update #6 and YAD for removal after first boot.

tmichett commented 1 year ago

Appears to be working. Testing install version now. Verified works on LiveCD

tmichett commented 1 year ago

Confirmed working