There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

thingsiplay , (edited )

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


<span style="color:#323232;">#!/usr/bin/env bash
</span><span style="color:#323232;">
</span><span style="color:#323232;"># flatrun e
</span><span style="color:#323232;"># flatrun freetube
</span><span style="color:#323232;">
</span><span style="color:#323232;">if [ "${#}" -eq 0 ]; then
</span><span style="color:#323232;">	flatpak list --app --columns=name,application
</span><span style="color:#323232;">else
</span><span style="color:#323232;">	app="$(
</span><span style="color:#323232;">		flatpak list --app --columns=name,application |
</span><span style="color:#323232;">			grep -i -F "${@}" |
</span><span style="color:#323232;">			awk -F't' '{print $2}'
</span><span style="color:#323232;">	)"
</span><span style="color:#323232;">
</span><span style="color:#323232;">	if [ -z "${app}" ]; then
</span><span style="color:#323232;">		flatpak list --app --columns=name,application
</span><span style="color:#323232;">	elif [[ "$(echo "${app}" | wc -l)" -gt 1 ]]; then
</span><span style="color:#323232;">		echo "${app}"
</span><span style="color:#323232;">	else
</span><span style="color:#323232;">		flatpak run "${app}"
</span><span style="color:#323232;">	fi
</span><span style="color:#323232;">fi
</span>

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

  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines