ufo 0.9.0
Tool for opening files from command line
To use this package, run the following command in your project's root directory:
Manual usage
Put the following dependency into your project's dependences section:
ufo is free software.
This program is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose.
ufo
ufo is a universal file opener, an alternative instrument for opening files from a command line.
Official repositories:
Features
Standard tools for opening files in Linux (such as xdg-open, mimeopen,
gio open, kde-open) don't always work perfectly. On top of that,
the MIME type system is terribly buggy — formats of many ordinary files
are determined incorrectly. The ufo utility allows you to define
your own mappings of formats and programs in ~/.config/ufo/formatapps.toml.
Instead of the standard MIME type system,
it uses the formats and format groups
from the Amalthea library.
Example configuration:
[[Group:Video]]
app = "mpv"
[[Group:Text]]
app = "nvim"
tty = true
[[Group:Text]]
app = "kwrite"
[[Directory]]
app = "vifm"
tty = true
[[Directory]]
app = "nemo"
[[PDF]]
app = "zathura"
[[DJVU]]
app = "atril"
[[ODT]]
app = "libreoffice"
pre = ["--writer"]
[[MP3]]
app = "qmmp"
[[MP3]]
app = "mplayer"
tty = true
[[Shell]]
app = "nvim"
tty = true
[[HTML]]
app = "chromium"
Formats are defined in either /etc/amalthea-gdc/fileformats.json
of /etc/amalthea-ldc2/fileformats.json. This depends on which D compiler
was used to compile the Amalthea library that ufo utilizes.
Formats can be assigned to both and desktop applications
and console programs (ufo -t).
If the configuration at ~/.config/ufo/formatapps.toml is not set,
the default MIME system will be used.
For more details:
$ man 1 ufo
Ready-made packages
The page contains information about installing several packages, including ufo.
Build from source
Preparing
Before building, you need to install a compiler for D (this project supports compilers dmd, gdc and ldc2).
This project can be built with either dynamic or static linking against the Amalthea library. Therefore, if you want to build this project from source, you must first build and install Amalthea, then return to these instructions.
Compilation and installation
To create the executable file:
$ make
You can also specify a compiler:
$ make DC=dmd
To install (by default, main directory is /usr/local/):
# make install
After installation, the program is ready to use.
The Makefile defines the following variables:
DESTDIR— specifies the root directory for installing (empty by default);PREFIX— specifies the base directory, such asusr/localorusr.
The installation directory is defined as $(DESTDIR)/$(PREFIX) in the Makefile.
You can install the program files in any directory.
For example, to install into $HOME/.local:
$ make install DESTDIR=$HOME PREFIX=.local
To uninstall:
# make uninstall
If installed to a non-default location, use the same paths when uninstalling:
$ make uninstall DESTDIR=$HOME PREFIX=.local
Feedback
Questions, suggestions, comments, bugs:
Also use the repository service tools.
- 0.9.0 released 2 days ago
- os-18/ufo
- BSL-1.0 or GPL-3.0+
- Authors:
- Dependencies:
- amalthea
- Versions:
-
Show all 18 versions0.9.0 2026-Jul-25 0.8.7 2026-Jul-15 0.8.6 2026-May-28 0.8.5 2026-May-26 0.8.4 2026-Apr-18 - Download Stats:
-
-
0 downloads today
-
0 downloads this week
-
0 downloads this month
-
42 downloads total
-
- Score:
- 0.0
- Short URL:
- ufo.dub.pm