desktop_entry

Creator: coderz1093

Last updated:

0 purchases

desktop_entry Image
desktop_entry Images

Languages

Categories

Add to Cart

Description:

desktop entry

desktop_entry #

A Dart package for managing Desktop Entry files (.desktop) and DBus Service files in Linux
environments. Some tests depend on [path_provider] to access a temporary directory on the system,
which depends on the Flutter SDK. The example project is a Flutter project. This package should be
otherwise compatible with other Dart projects.
Getting started #
Define a Desktop Entry file for your application. If you intend to define a custom scheme, the MimeType field of your
Desktop Entry file should contain x-scheme-handler/yourScheme in addition to any other relevant values.
The contents of an example Desktop Entry file are below, as referenced in the
Desktop Entry specification:
[Desktop Entry]
Version=1.0
Type=Application
Name=Foo Viewer
Comment=The best viewer for Foo objects available!
TryExec=fooview
Exec=fooview %F
Icon=fooview
MimeType=image/x-foo;
Actions=Gallery;Create;

[Desktop Action Gallery]
Exec=fooview --gallery
Name=Browse Gallery

[Desktop Action Create]
Exec=fooview --create-new
Name=Create a new Foo!
Icon=fooview-new
copied to clipboard
Scope #
The API at this time handles creation of .desktop specification files and DBus service files, and
installing them to the local user directory. It has been written to the 2020 version of the Desktop
Entry specification. This library does not perform validation of the various keys to ensure
correctness at this time.
However, the choice to implement various types (language concept) that
correspond to the various 'types' (specification concept) of the specification is a deliberate one,
intended to make hint that these values are not quite simple strings.
Additional information #
desktop_entry has been tested on Ubuntu 22.04 LTS. Suggestions for improvements or contributions to improve
compatibility of the package with other Linux variants, or improve the conformity of the package to the
Desktop Entry specification
are welcome.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.