this post was submitted on 15 Sep 2023
17 points (100.0% liked)

Linux

45530 readers
2099 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
 

I'd like to make multiple terminal apps to launch in foot terminal, but I can't figure out how to se it properly.

~/.config/mimeapps.list contains a line "terminal=foot.desktop" (tried also without .desktop).

Dir /usr/share/applications/mimeinfo.cache has everything set properly (swayimg.desktop as a imageviewer) but still every picture opens in a browser which I don't want to see.

As a file managers I use lf and nnn, they both contain .desktop-files but I can't launch them with keybinds or menu launcher. Same applies to vim.desktop, nothing happens.

The distro I use is Artix, but I assume this problem is unrelated to this problem. I tried to google wiki but none of the xdg- related articles contains this.

Edit. I managed to find a workaround for lf and nnn by editing the Exec= line in /usr/share/applications/*.desktop file. (Exec=/usr/bin/foot -e nnn) but I still can't figure the swayimg imageviewer.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 5 points 9 months ago

~/.config/mimeapps.list contains a line “terminal=foot.desktop” (tried also without .desktop).

I don't think that is a real option.

There is no standard way to set the default terminal emulator, you need to tell your launcher application(sometimes through your DE settings) to use that terminal. For example, j4-dmenu-desktop has the option --term.

As a file managers I use lf and nnn, they both contain .desktop-files but I can’t launch them with keybinds or menu launcher. Same applies to vim.desktop, nothing happens.

How are you launching these programs? For keyboard shortcuts you generally need to specifically run the terminal emulator together with the program: bindsym Mod4+Return exec alacritty -e hollywood

Edit. I managed to find a workaround for lf and nnn by editing the Exec= line in /usr/share/applications/*.desktop file. (Exec=/usr/bin/foot -e nnn) but I still can’t figure the swayimg imageviewer.

I would advise you to copy those files to ~/.local/share/applications so they do not get overwritten during updates.