diff --git a/arch-graphical-install-auto b/arch-graphical-install-auto index 9d03123..bb9bac7 100755 --- a/arch-graphical-install-auto +++ b/arch-graphical-install-auto @@ -231,18 +231,6 @@ function links() { } function gnomeconfig() { - mkdir -p /home/"$username"/.config/gtk-3.0/ - echo "[Settings]" > /home/"$username"/.config/gtk-3.0/settings.ini - echo "gtk-theme-name = Adwaita" >> /home/"$username"/.config/gtk-3.0/settings.ini - echo "# next option is applicable only if selected theme supports it" >> /home/"$username"/.config/gtk-3.0/settings.ini - echo "gtk-application-prefer-dark-theme = true" >> /home/"$username"/.config/gtk-3.0/settings.ini - echo "# set font name and dimension" >> /home/"$username"/.config/gtk-3.0/settings.ini - echo "gtk-font-name = Sans 10" >> /home/"$username"/.config/gtk-3.0/settings.ini - - mkdir -p /home/"$username"/.local/share/applications/ - echo "[Default Applications]" > /home/"$username"/.local/share/applications/mimeapps.list - echo "inode/directory=org.gnome.Nautilus.desktop" >> /home/"$username"/.local/share/applications/mimeapps.list - mkdir -p /root/.config/gtk-3.0/ echo "[Settings]" > /root/.config/gtk-3.0/settings.ini echo "gtk-theme-name = Adwaita" >> /root/.config/gtk-3.0/settings.ini @@ -251,10 +239,6 @@ function gnomeconfig() { echo "# set font name and dimension" >> /root/.config/gtk-3.0/settings.ini echo "gtk-font-name = Sans 10" >> /root/.config/gtk-3.0/settings.ini - mkdir -p /root/.local/share/applications/ - echo "[Default Applications]" > /root/.local/share/applications/mimeapps.list - echo "inode/directory=org.gnome.Nautilus.desktop" >> /root/.local/share/applications/mimeapps.list - gsettings set org.gnome.desktop.media-handling automount 'false' gsettings set org.gnome.desktop.media-handling automount-open 'false' } @@ -663,6 +647,9 @@ if [ "${vollinstallation}" != "n" ]; then tar -vxJf /opt/${repo}/vibrancy-colors.tar.xz -C /usr/share/icons/ gtk-update-icon-cache /usr/share/icons/Vibrancy-Colors-Dark/ + # XDG standard + cp mimeapps.list /etc/xdg/mimeapps.list + fi diff --git a/mimeapps.list b/mimeapps.list new file mode 100644 index 0000000..027f365 --- /dev/null +++ b/mimeapps.list @@ -0,0 +1,44 @@ +[Added Associations] +application/octet-stream=org.gnome.FileRoller.desktop; +x-scheme-handler/http=exo-web-browser.desktop;firefox.desktop; +x-scheme-handler/https=exo-web-browser.desktop;firefox.desktop; +x-scheme-handler/mailto=exo-mail-reader.desktop;thunderbird.desktop; +text/markdown=org.gnome.gedit.desktop; +x-scheme-handler/ftp=firefox.desktop; +x-scheme-handler/chrome=firefox.desktop; +text/html=firefox.desktop;org.gnome.gedit.desktop; +application/x-extension-htm=firefox.desktop; +application/x-extension-html=firefox.desktop; +application/x-extension-shtml=firefox.desktop; +application/xhtml+xml=firefox.desktop; +application/x-extension-xhtml=firefox.desktop; +application/x-extension-xht=firefox.desktop; +message/rfc822=thunderbird.desktop; +application/x-shellscript=pluma.desktop; +application/x-cue=org.gnome.gedit.desktop; +application/x-7z-compressed=org.gnome.Nautilus.desktop;org.gnome.FileRoller.desktop; +model/x.stl-binary=org.gnome.FileRoller.desktop; +application/x-compressed-tar=org.gnome.Nautilus.desktop; +application/json=org.gnome.gedit.desktop; +text/vcard=kaddressbook-importer.desktop; +text/x-opml+xml=firefox.desktop; +text/csv=libreoffice-calc.desktop; +image/png=eog.desktop; +image/jpeg=eog.desktop; + +[Default Applications] +x-scheme-handler/http=firefox.desktop +x-scheme-handler/https=firefox.desktop +x-scheme-handler/ftp=firefox.desktop +x-scheme-handler/chrome=firefox.desktop +text/html=firefox.desktop +application/x-extension-htm=firefox.desktop +application/x-extension-html=firefox.desktop +application/x-extension-shtml=firefox.desktop +application/xhtml+xml=firefox.desktop +application/x-extension-xhtml=firefox.desktop +application/x-extension-xht=firefox.desktop +x-scheme-handler/mailto=thunderbird.desktop +message/rfc822=thunderbird.desktop +x-scheme-handler/discord-402572971681644545=discord-402572971681644545.desktop +image/png=eog.desktop