this post was submitted on 09 Apr 2024
211 points (94.9% liked)

Linux

48072 readers
1 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 6 years ago
MODERATORS
 

For example, I'm using Debian, and I think we could learn a thing or two from Mint about how to make it "friendlier" for new users. I often see Mint recommended to new users, but rarely Debian, which has a goal to be "the universal operating system".
I also think we could learn website design from.. looks at notes ..everyone else.

you are viewing a single comment's thread
view the rest of the comments
[–] barbara@lemmy.ml 82 points 1 year ago* (last edited 1 year ago) (21 children)

All distros, or none: flatpak has to improve in regards to launching an app from terminal. Following is a joke:

flatpak run com.github.iwalton3.jellyfin-media-player
[–] thingsiplay@beehaw.org 12 points 1 year ago* (last edited 1 year ago) (7 children)

This is extremely simple to fix with scripts that can be automatically created on install time. Here is a quick script I just wrote. It will search for first matching app and run it. Just save the script as flatrun, give it executable bit and put it into $PATH. Run it as like this: flatrun freetube

#!/usr/bin/env bash

# flatrun e
# flatrun freetube

if [ "${#}" -eq 0 ]; then
	flatpak list --app --columns=name,application
else
	app="$(
		flatpak list --app --columns=name,application |
			grep -i -F "${@}" |
			awk -F'\t' '{print $2}'
	)"

	if [ -z "${app}" ]; then
		flatpak list --app --columns=name,application
	elif [[ "$(echo "${app}" | wc -l)" -gt 1 ]]; then
		echo "${app}"
	else
		flatpak run "${app}"
	fi
fi

Edit: Just updated the script to output the list of matching apps, if it matches more than one.

[–] rollingflower@lemmy.kde.social 7 points 1 year ago (5 children)

Yes and I did a similar script but "just create a script" is a really bad solution.

Apps should need to declare a shortname and flatpak should have a shortcut for those with a separated command like flatrun.

[–] JayDee@lemmy.ml 1 points 1 year ago (1 children)

I think a good solution would to just have that script autogenerated by the flatpak, honestly.

That would mean the app has access to the path, which was explained as insecure in another place

load more comments (3 replies)
load more comments (4 replies)
load more comments (17 replies)