| -rwxr-xr-x | config.sh | 128 |
1 files changed, 45 insertions, 83 deletions
@@ -342,104 +342,66 @@ EOF fi if [[ "$kiwi_profiles" == *"Design_suite"* ]]; then - # Add a launcher for Design Suite tutorials. - cat > /usr/share/applications/list-design-tutorials.desktop << 'EOF' +# Add link to lists of tutorials +cat >> /usr/share/applications/list-design-tutorials.desktop << FOE [Desktop Entry] -Type=Application -Name=Design Suite Tutorials -Comment=Explore tutorials for creative applications +Name=List of design tutorials +GenericName=List of Tutorials for Designers +Comment=Reference of Design Related Tutorials Exec=xdg-open https://fedoraproject.org/wiki/Design_Suite/Tutorials -TryExec=xdg-open -Icon=help-browser-symbolic -Terminal=false -Categories=Graphics;Documentation; -Keywords=Design;Tutorials;Learning;Fedora; -EOF - - # Add a launcher for information about Fedora Design Suite. - cat > /usr/share/applications/fedora-design-suite.desktop << 'EOF' -[Desktop Entry] Type=Application -Name=Fedora Design Suite -Comment=Learn about the creative tools included in Fedora Design Suite -Exec=xdg-open https://fedoraproject.org/wiki/Design_Suite -TryExec=xdg-open -Icon=applications-graphics-symbolic -Terminal=false +Icon=applications-graphics Categories=Graphics;Documentation; -Keywords=Design;Creative;Fedora; -EOF +FOE +chmod a+x /usr/share/applications/list-design-tutorials.desktop - # Add a launcher for Fedora Design Team documentation. - cat > /usr/share/applications/fedora-design-team.desktop << 'EOF' +# Add information about Fedora Design Suite +cat >> /usr/share/applications/fedora-design-suite.desktop << FOE [Desktop Entry] +Name=Design Suite Info +GenericName=About Design Suite +Comment=Wiki page of Design Suite +Exec=xdg-open https://fedoraproject.org/wiki/Design_Suite Type=Application -Name=Fedora Design Team -Comment=Explore Fedora design documentation and contribution opportunities -Exec=xdg-open https://docs.fedoraproject.org/en-US/design/ -TryExec=xdg-open -Icon=system-users-symbolic -Terminal=false -Categories=Graphics;Documentation; -Keywords=Design;Contribute;Community;Fedora; -EOF +Icon=applications-internet +Categories=Documentation; +FOE +chmod a+x /usr/share/applications/fedora-design-suite.desktop - # Add a launcher for Penpot's web application. - cat > /usr/share/applications/penpot.desktop << 'EOF' +# Add information about Fedora Design Team +cat >> /usr/share/applications/fedora-design-team.desktop << FOE [Desktop Entry] +Name=Design Team Info +GenericName=About Design Team +Comment=Documentation about Design Team +Exec=xdg-open https://docs.fedoraproject.org/en-US/design/ Type=Application -Name=Penpot -GenericName=Interface Design -Comment=Collaborate on interface designs, wireframes, and prototypes -Exec=xdg-open https://penpot.app/ -TryExec=xdg-open -Icon=applications-graphics-symbolic -Terminal=false -Categories=Graphics;Development;WebDevelopment; -Keywords=Design;Interface;Wireframe;Prototype;Collaboration; -EOF - - chmod 0644 \ - /usr/share/applications/list-design-tutorials.desktop \ - /usr/share/applications/fedora-design-suite.desktop \ - /usr/share/applications/fedora-design-team.desktop \ - /usr/share/applications/penpot.desktop +Icon=applications-internet +Categories=Documentation; +FOE +chmod a+x /usr/share/applications/fedora-design-team.desktop - # Enable Powerline only for interactive Bash sessions. - # Keep runtime checks literal while generating the profile script. - cat > /etc/profile.d/powerline-shell.sh << 'EOF' -# Configure Powerline for interactive Bash sessions. -if [ -n "${BASH_VERSION:-}" ]; then - case $- in - *i*) - if command -v powerline-daemon >/dev/null 2>&1 && - [ -r /usr/share/powerline/bash/powerline.sh ]; then - powerline-daemon -q - POWERLINE_BASH_CONTINUATION=1 - POWERLINE_BASH_SELECT=1 - . /usr/share/powerline/bash/powerline.sh - fi - ;; - esac +# Use Powerline in bash +cat >> /etc/profile.d/powerline-shell.sh << FOE +# Enable powerline daemon +if [ -f `which powerline-daemon` ]; then + powerline-daemon -q + POWERLINE_BASH_CONTINUATION=1 + POWERLINE_BASH_SELECT=1 + . /usr/share/powerline/bash/powerline.sh fi -EOF - - chmod 0644 /etc/profile.d/powerline-shell.sh +FOE +chmod 644 /etc/profile.d/powerline-shell.sh +# End powerline override - # Configure default GNOME Shell favorites. - cat > /usr/share/glib-2.0/schemas/90-design-suite.gschema.override << 'EOF' +# Override the favorite desktop application in Dash +cat >> /usr/share/glib-2.0/schemas/org.gnome.shell.gschema.override << FOE [org.gnome.shell] -favorite-apps=['org.mozilla.firefox.desktop', 'shotwell.desktop', 'gimp.desktop', 'darktable.desktop', 'krita.desktop', 'inkscape.desktop', 'penpot.desktop', 'blender.desktop', 'libreoffice-writer.desktop', 'scribus.desktop', 'kdenlive.desktop', 'nautilus.desktop', 'anaconda.desktop', 'list-design-tutorials.desktop'] -EOF - - chmod 0644 \ - /usr/share/glib-2.0/schemas/90-design-suite.gschema.override +favorite-apps=['org.mozilla.firefox.desktop', 'shotwell.desktop', 'gimp.desktop', 'darktable.desktop', 'krita.desktop', 'inkscape.desktop', 'blender.desktop', 'libreoffice-writer.desktop', 'scribus.desktop', 'kdenlive.desktop', 'nautilus.desktop', 'anaconda.desktop', 'list-design-tutorials.desktop'] +FOE - # Validate schema definitions and overrides, then rebuild the cache. - glib-compile-schemas --strict --dry-run \ - /usr/share/glib-2.0/schemas - glib-compile-schemas \ - /usr/share/glib-2.0/schemas +# Rebuild schema cache with any overrides we installed +glib-compile-schemas /usr/share/glib-2.0/schemas fi if [[ "$kiwi_profiles" == *"SoaS"* ]]; then |