MimeLauncher, also known as nopen, is a minimalistic utility designed to launch files based on their MIME types. The program utilizes the magic library to identify the MIME type of a given file and then matches it with a predefined application in a user-customizable configuration file.
C compiler magic library
git clone https://github.com/Vulto/nopen.git
cd nopen
./c - build the executable
./c install - (requires adjustment from doas to sudo)
./nopen <filename>
Customize the config.h file to define file type mappings. Add entries for MIME types and their associated applications: // config.h
const FileTypeMapping fileTypes[] = {
{ "application/pdf", "evince" },
// Add more mappings as needed
};
Contribute to nopen by opening issues or submitting pull requests. Your feedback and enhancements are highly appreciated!
This project is licensed under the MIT License - see the LICENSE file for details.