65
submitted 4 months ago* (last edited 4 months ago) by [email protected] to c/[email protected]

I recently switched from Windows 10 to ZorrinOS (after a quick detour to NixOS... OOF) and in the course of setting things up how I like, I ran across some interesting stuff relating to flatpaks and shortcuts. I wanted to get this written to provide a resource for other people who might be switching.

This is a guide to making a shortcut to launch a particular Firefox profile, on a Ubuntu based distro, while running Firefox as a flatpak. This is just how I did it, put the files where you want.

  1. Make a directory to hold the launch script and a shortcut icon. My script:
#!/bin/sh
flatpak run org.mozilla.firefox -p youtube

Obviously, make it executable.

Because Firefox is running as a flatpak we can't just launch it using firefox. They're actually stored in /var/lib/flatpak/app and can be launched like this.

https://opensource.com/article/21/5/launch-flatpaks-linux-terminal

  1. Create a text file in the Desktop directory with a .desktop extension like this:
[Desktop Entry]
Name=YouTube
Comment= Launches Firefox Youtube profile
Exec=/home/user/Documents/firefox-youtube/firefox-youtube.sh
Icon=/home/user/Documents/firefox-youtube/youtube-app-icon.png
Terminal=false
Type=Application

https://www.baeldung.com/linux/desktop-entry-files

  1. Once saved, make it executable. Right click > "Allow Launching". Done.

Just for fun, this is the image I like for it.

top 4 comments
sorted by: hot top controversial new old
[-] [email protected] 3 points 4 months ago

I was looking for something like this the other day. Thank you!

[-] [email protected] 3 points 4 months ago

Out if curiosity, what did you not like with Nix?

[-] [email protected] 3 points 4 months ago* (last edited 3 months ago)

I had this issue where every time it locked due to inactivity, it killed my session. Every time I logged back in I had to relaunch everything.

I tried a few power settings in the config file but nothing helped.

It just worked out of the box on Zorin.

[-] [email protected] 6 points 4 months ago

Good you found something that works for you 👌

this post was submitted on 05 Mar 2024
65 points (97.1% liked)

Linux

45773 readers
979 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 5 years ago
MODERATORS