From 9d37106065a0a51145f0b3c7f15e8d2ea3a6e7b8 Mon Sep 17 00:00:00 2001 From: Vincent Emonet Date: Tue, 18 Apr 2023 19:50:30 +0200 Subject: [PATCH] add some changes to improve enabling autostart --- README.md | 8 ++++++++ flatpak/com.tomjwatson.Emote.desktop | 5 ++++- flatpak/com.tomjwatson.Emote.yml | 2 ++ 3 files changed, 14 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 80619d2..6977875 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,14 @@ sudo snap install emote An unofficial build of Emote is also available in the AUR : https://aur.archlinux.org/packages/emote. +Enable autostart: + +```bash +cp -L "/var/lib/flatpak/exports/share/applications/com.tomjwatson.Emote.desktop" ~/.config/autostart/ +# Or if it was installed locally: +cp -L "cp ~/.local/share/flatpak/exports/share/applications/com.tomjwatson.Emote.desktop" ~/.config/autostart/ +``` + ## 📖 Guide ### 🚀 Launching diff --git a/flatpak/com.tomjwatson.Emote.desktop b/flatpak/com.tomjwatson.Emote.desktop index 8f3106a..d2c3d73 100644 --- a/flatpak/com.tomjwatson.Emote.desktop +++ b/flatpak/com.tomjwatson.Emote.desktop @@ -3,8 +3,11 @@ Name=Emote Type=Application GenericName=Emoji picker Comment=Modern popup emoji picker -Exec=emote +Exec=flatpak run com.tomjwatson.Emote Categories=Utility;GTK; Keywords=emoji,smiley,emoticon,icon Icon=com.tomjwatson.Emote Terminal=false +StartupNotify=false +X-Flatpak=com.tomjwatson.Emote +X-GNOME-Autostart-enabled=true diff --git a/flatpak/com.tomjwatson.Emote.yml b/flatpak/com.tomjwatson.Emote.yml index 235841d..4071d75 100644 --- a/flatpak/com.tomjwatson.Emote.yml +++ b/flatpak/com.tomjwatson.Emote.yml @@ -7,6 +7,8 @@ finish-args: - --share=ipc - --socket=wayland - --socket=fallback-x11 + # Enabling autostart: https://github.com/flatpak/flatpak/issues/118 + # - --filesystem=xdg-config/autostart:create - --device=dri cleanup: - /include