Repository: espanso/espanso (language: rust)

Issue:
unused file `/snap/hooks/remove`
Can we remove this file?
https://github.com/espanso/espanso/blob/dev/snap/hooks/remove

I think if we don't package snap, we shouldn't have script in our repo about it 🤔. The contents:

```bash
#!/bin/sh

echo "Stopping Espanso..."
killall espanso

# Here I've also tried to unregister the Systemd service, but couldn't manage to. 
# The remove hook is run as Root, but the systemd service is registered as a user.
# I couldn't find any (working) way to unregister a user systemd service as root.
# I've also tried these solutions: https://unix.stackexchange.com/questions/552922/stop-systemd-user-services-as-root-user
# but none seemed to work in this case.
# If you manage to find a way to do so, feel free to open an issue so that
# we can improve the hook! Thanks
```


Discussion / hints:
Need help from @federico-terzi 😄 
From a discussion in [discord](<https://discord.com/channels/884163483409731584/1013902954350248008/1257475955681788057>) we realized that the stable version is not updated since a while ago, even if the development latest release is following the espanso repo `dev` branch.

We are removing support for the snap for now, maybe in the future we can opt in again, if there is a need

Fix patch:
diff --git a/snap/hooks/remove b/snap/hooks/remove
deleted file mode 100755
index 5f85fecc8..000000000
--- a/snap/hooks/remove
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/bin/sh
-
-echo "Stopping Espanso..."
-killall espanso
-
-# Here I've also tried to unregister the Systemd service, but couldn't manage to. 
-# The remove hook is run as Root, but the systemd service is registered as a user.
-# I couldn't find any (working) way to unregister a user systemd service as root.
-# I've also tried these solutions: https://unix.stackexchange.com/questions/552922/stop-systemd-user-services-as-root-user
-# but none seemed to work in this case.
-# If you manage to find a way to do so, feel free to open an issue so that
-# we can improve the hook! Thanks
\ No newline at end of file
diff --git a/snapcraft.yaml b/snapcraft.yaml
deleted file mode 100644
index 045198268..000000000
--- a/snapcraft.yaml
+++ /dev/null
@@ -1,87 +0,0 @@
-name: espanso
-version: 2.2.1
-summary: A Cross-platform Text Expander written in Rust
-description: |
-  espanso is a Cross-platform, Text Expander written in Rust.
-
-  ## What is a Text Expander?
-
-  A text expander is a program that detects when you type
-  a specific keyword and replaces it with something else.
-  This is useful in many ways:
-  * Save a lot of typing, expanding common sentences.
-  * Create system-wide code snippets.
-  * Execute custom scripts
-  * Use emojis like a pro.
-  ___
-
-  ## Key Features
-
-  * Works on Windows, macOS and Linux
-  * Works with almost any program
-  * Works with Emojis ¯\_(ツ)_/¯
-  * Works with Images
-  * Includes a powerful Search Bar
-  * Date expansion support
-  * Custom scripts support
-  * Shell commands support
-  * Support Forms
-  * App-specific configurations
-  * Expandable with packages
-  * Built-in package manager for espanso hub: https://hub.espanso.org/
-  * File based configuration
-  * Support Regex triggers
-  * Experimental Wayland support (currently not available through Snap, visit the website for more info).
-
-  ## Get Started
-
-  Visit the official documentation: https://espanso.org/docs/
-
-  ## Support
-
-  If you need some help to setup espanso, want to ask a question or simply get involved
-  in the community, Join the official Subreddit: https://www.reddit.com/r/espanso/
-
-confinement: classic
-base: core18
-
-parts:
-  espanso:
-    plugin: rust
-    source: .
-    build-packages:
-     - libssl-dev
-     - libdbus-1-dev
-     - libwxgtk3.0-gtk3-dev
-     - pkg-config
-     - libxkbcommon-dev
-     - libxtst-dev
-     - libx11-dev
-    stage-packages:
-     - libx11-6
-     - libxau6
-     - libxcb1
-     - libxdmcp6
-     - libxext6
-     - libxinerama1
-     - libxkbcommon0
-     - libxtst6
-     - libnotify-bin
-     - libdbus-1-3
-     - libssl1.1
-     - libwxbase3.0-0v5
-     - libwxgtk3.0-0v5
-     - libatk-bridge2.0-0
-     - libatspi2.0-0
-     - libcairo-gobject2
-     - libepoxy0
-     - libgtk-3-0
-     - libwayland-client0
-     - libwayland-cursor0
-     - libwayland-egl1
-     - libwxgtk3.0-gtk3-0v5
-     - xclip
-
-apps:
-  espanso:
-    command: bin/espanso


Test patch: