assoc

command
v0.15.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: EPL-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command assoc writes the files that associate a document type with a program: a Windows .reg file, a Linux .desktop file, a D-Bus service file and a shared-mime-info XML. See docs/packaging.md.

assoc -kind reg     -exe C:\App\app.exe -ext .tnb,.tenniarb -progid Org.App.Doc -name "App document" -icon C:\App\doc.ico
assoc -kind desktop -id org.example.App -name "App" -exe /opt/app/app -ext tnb -mime application/x-app [-dbus]
assoc -kind service -id org.example.App -exe /opt/app/app
assoc -kind mime    -ext tnb,tenniarb -mime application/x-app -name "App document" [-icon application-x-app]
assoc -kind icons   -src doc.png -mime application/x-app -out ~/.local/share/icons   (hicolor/NxN/mimetypes/application-x-app.png)
assoc -kind icons   -src app.png -iconname app -context apps -out ~/.local/share/icons

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL