fix(tutanota): add desktop file

This commit is contained in:
matt1432 2023-07-06 15:37:26 -04:00
parent 7631eee402
commit 3bc3966e44
2 changed files with 11 additions and 5 deletions

View file

@ -17,7 +17,7 @@ exec-once = $HOME/.config/lisgd/config &
# See https://wiki.hyprland.org/Configuring/Keywords/ for more
# Execute your favorite apps at launch
exec-once = bash -c "sleep 3; nm-applet"
exec-once = bash -c "sleep 3; XDG_DATA_DIRS=/home/matt/.nix/configs/share nm-applet"
exec-once = bash -c "sleep 4; blueberry-tray"
exec-once = bash -c "sleep 5; nextcloud --background"
exec-once = bash -c "sleep 6; tutanota-desktop -a"
@ -27,6 +27,9 @@ exec-once = eww daemon
exec-once = eww open tablet-toggle
exec-once = eww open notif-panel
# sometimes waybar starts after and stops me from pressing eww buttons
exec-once = bash -c "sleep 0.5; eww reload"
exec-once = gnome-keyring-daemon --start --components=secrets
exec-once = squeekboard
@ -34,7 +37,7 @@ exec-once = $menu
exec-once = hyprpaper
# after boot, there are 2 bars for some reason, so I kill them and rerun the command
exec-once = bash -c "killall -r -0 waybar && killall -r waybar; waybar"
exec-once = bash -c "killall -r -0 waybar && killall -r waybar; XDG_DATA_DIRS=/home/matt/.nix/configs/share waybar"
exec-once = swaync
exec-once = wl-paste --watch cliphist store

View file

@ -27,7 +27,9 @@ let
inherit pname version src;
};
in appimageTools.wrapType2 {
in
appimageTools.wrapType2 {
inherit name src;
profile = ''
@ -37,13 +39,14 @@ in appimageTools.wrapType2 {
targetPkgs = pkgs: [ libGL libsecret ffmpeg curl alsa-lib udev ];
extraInstallCommands = ''
mkdir -p $out/bin
mkdir -p $out/bin $out/share/applications
cp -r ${extracted}/* $out/
ln -s $out/tutanota-desktop $out/bin/tutanota-desktop
substituteInPlace $out/tutanota-desktop.desktop \
mv $out/tutanota-desktop.desktop $out/share/applications/
substituteInPlace $out/share/applications/tutanota-desktop.desktop \
--replace AppRun ${pname}
source "${makeWrapper}/nix-support/setup-hook"