Compare commits

...

3 commits

Author SHA1 Message Date
b47a94f3e5
fish: Set environment for non systemd user services/applications
Environment variables in environment.d directory only affects the users
systemd unit. For example, while these environment variables are set in
tmux which we start via systemd, these are not set when we open terminal
outside of tmux.

See related,
https://github.com/systemd/systemd/issues/7641
2024-11-14 23:29:41 +05:30
717d096d5b
environment: xdg: Add system directories 2024-11-14 15:41:24 +05:30
992e6d8ca1
mimeapps: Set mirage as default application for images
For SVG, keep using firefox.
2024-11-14 15:41:24 +05:30
3 changed files with 14 additions and 7 deletions

View file

@ -3,6 +3,9 @@ XDG_CACHE_HOME=$HOME/.cache
XDG_DATA_HOME=$HOME/.local/share
XDG_STATE_HOME=$HOME/.local/state
XDG_CONFIG_DIRS=/etc/xdg
XDG_DATA_DIRS=/usr/local/share:/usr/share
XDG_SESSION_TYPE=tty
XDG_SESSION_DESKTOP=sway
XDG_CURRENT_DESKTOP=sway

View file

@ -57,6 +57,8 @@ function __fish_setup_on_tty_login --description "Set up environment on tty logi
# Required for all environment variables to be set correctly, especially
# in tmux session service.
dbus-update-activation-environment --systemd --all
export $(/usr/lib/systemd/user-environment-generators/30-systemd-environment-d-generator)
end
# Instead of tty check, we would have liked to do this using status is-login

View file

@ -7,13 +7,15 @@ x-scheme-handler/about=firefox.desktop
x-scheme-handler/unknown=firefox.desktop
x-scheme-handler/mailto=firefox.desktop
application/vnd.openxmlformats-officedocument.wordprocessingml.document=libreoffice-writer.desktop;
image/jp2=vimiv.desktop
image/png=vimiv.desktop
image/gif=vimiv.desktop
image/tiff=vimiv.desktop
image/jpx=vimiv.desktop
image/jpeg=vimiv.desktop
image/bmp=vimiv.desktop
image/jp2=mirage.desktop
image/png=mirage.desktop
image/gif=mirage.desktop
image/tiff=mirage.desktop
image/jpx=mirage.desktop
image/jpeg=mirage.desktop
image/bmp=mirage.desktop
image/webp=mirage.desktop
image/svg+xml=firefox.desktop
application/vnd.rn-realmedia=mpv.desktop
application/x-shorten=mpv.desktop
application/smil+xml=mpv.desktop