aboutsummaryrefslogtreecommitdiff
path: root/content/blog/2023-01-21-running-flatpak-apps-easily.md
diff options
context:
space:
mode:
authorChristian Cleberg <hello@cleberg.net>2024-01-08 20:11:17 -0600
committerChristian Cleberg <hello@cleberg.net>2024-01-08 20:11:17 -0600
commit25945b8fead989cca09a23983623b63ce36dcc0c (patch)
tree0dfc869ce8b028e04ce9da196af08779780915ce /content/blog/2023-01-21-running-flatpak-apps-easily.md
parent22b526be60bf4257c2a1d58a5fad59cf6b044375 (diff)
downloadcleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.tar.gz
cleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.tar.bz2
cleberg.net-25945b8fead989cca09a23983623b63ce36dcc0c.zip
feat: total re-write from Emacs org-mode to Zola markdown
Diffstat (limited to 'content/blog/2023-01-21-running-flatpak-apps-easily.md')
-rw-r--r--content/blog/2023-01-21-running-flatpak-apps-easily.md50
1 files changed, 50 insertions, 0 deletions
diff --git a/content/blog/2023-01-21-running-flatpak-apps-easily.md b/content/blog/2023-01-21-running-flatpak-apps-easily.md
new file mode 100644
index 0000000..86dd11d
--- /dev/null
+++ b/content/blog/2023-01-21-running-flatpak-apps-easily.md
@@ -0,0 +1,50 @@
++++
+date = 2023-01-21
+title = "Running Flatpak Apps with Symlinks"
+description = "Learn how to run Flatpak apps through menu launchers with symlinks."
++++
+
+## Running Flatpak Apps Should Be Faster
+
+If you're like me and use Flatpak for those pesky apps that cannot run
+on your system for one reason or another, you likely get annoyed with
+opening a terminal and manually running the Flatpak app with the lengthy
+`flatpak run ...` command.
+
+In the past, I manually created aliases in my `.zshrc` file
+for certain apps. For example, an alias would look like the example
+below.
+
+This would allow me to run the command fast within the terminal, but it
+wouldn't allow me to run it in an application launcher.
+
+```sh
+# ~/.zshrc
+alias librewolf = "flatpak run io.gitlab.librewolf-community"
+```
+
+However, I now use a much faster and better method that integrates with
+the tiling WMs I use and their application launchers -
+`dmenu` and `bemenu`.
+
+## Creating Symlinks for Flatpak Apps
+
+Let's use the example of Librewolf below. I can install the application
+like so:
+
+```sh
+flatpak install flathub io.gitlab.librewolf-community
+```
+
+Once installed, I can create a symlink to link the flatpak app to my new
+symlink in a location commonly included in your PATH. In this case, I
+chose `/usr/bin`. You may need to choose a different location
+if `/usr/bin` isn't in your PATH.
+
+```sh
+ln -s /var/lib/flatpak/exports/bin/io.gitlab.librewolf-community /usr/bin/librewolf
+```
+
+Once complete, you should be able to launch the app using the command
+name you chose above in the symlink (`librewolf`) from a
+terminal or from your application launcher!