Skip to content
This repository has been archived by the owner on Dec 18, 2024. It is now read-only.

Fix for Flatpak apps and add Tym terminal lookup #226

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions widget/app_launcher/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ local terminal_commands_lookup =
alacritty = "alacritty -e",
termite = "termite -e",
rxvt = "rxvt -e",
terminator = "terminator -e"
terminator = "terminator -e",
tym = "tym --"
}

local function string_levenshtein(str1, str2)
Expand Down Expand Up @@ -592,7 +593,8 @@ local function generate_apps(self)
if app.should_show(app) then
local name = app_info.get_name(app)
local commandline = app_info.get_commandline(app)
local executable = app_info.get_executable(app)
local executable = app:get_string("Exec")
executable = executable:match("^(.-)%%") or executable
local icon = icon_theme:get_gicon_path(app_info.get_icon(app))

-- Check if this app should be skipped, depanding on the skip_names / skip_commands table
Expand Down