Skip to main content

This module provides the "XDGSetup" class for installing your python script as

Project description

xdg_soso

Installs a python script as an application on xdg compliant shells.

Installation

$ pip install xdg_soso

Usage

In your python application:

import xdg_soso

Create an instance of XDGSetup:

xdg = XDGSetup(__package__, "MyModule")
xdg.comment = __doc__

Install your application:

xdg.install()

Attributes

You need at a bare minumum the module name. A "friendly name" is nice to have, but if you don't provide it, the module name will be used.

It's probably a good idea to include an application icon, as well.

The attributes which you can set include:

  • comment

Displays in applications like Dash and your file explorer.

  • keywords

Makes it possible for the user to search for your application using Dash or other tools.

Some common keywords include:

ALSA, AccessX, Accessibility, Accounting, Appearance, Audio, Avatar, Background, Balance, Battery, Bluetooth, Brightness, Broadcast, Button, Capture, Chart, Color, Configuration, Configure, Contrast, DAW, DVD, Desktop, Dim, Display, Document, Drivers, E-mail, Editor, Email, Equation, Fax, Feed, Fingerprint, Headset, Image, Keyboard, Language, Launcher, Layout, Lock, Login, MIDI, MP2, MP3, MathML, Menus, Microphone, Monitor, Mouse, Mousepad, Network, Newsgroup, Partition, Password, Picture, Player, Plugin, Power, Preferences, Printer, Process, Profile, Projector, RSS, Repositories, Resolution, Screen, Security, Sequencer, Server, Settings, Slideshow, Stylus, Synthesizer, System, Tablet, Task, Text, Theme, Trackball, Trackpad, Transform, Unity, User, Video, View, Viewer, Volume, WAV, Wacom, Wallpaper, Wireless, Zoom

  • categories

Used by some tools to create a hierarchical menu.

Some common categories include:

2DGraphics, Application, Archiving, Audio, AudioVideo, AudioVideoEditing, Calculator, Compression, Core, Database, DesktopSettings, Development, Documentation, Email, FileTools, FileTransfer, Filesystem, GNOME, GTK, Graphics, HardwareSettings, IDE, Math, Midi, Monitor, Music, Network, Office, Photography, Player, Printing, Qt, RasterGraphics, Recorder, Screensaver, Security, Sequencer, Settings, Spreadsheet, System, TV, TerminalEmulator, TextEditor, Utilities, Utility, VectorGraphics, Video, Viewer, WordProcessor, XFCE

  • application_icon

The icon which will be displayed in the task bar / switcher.

  • mime_type

Creates a mime_type for files associated with your application.

Some examples:

font/ttf
audio/flac
application/zip
application/x-rzip
  • glob_pattern

Provide this along with "mime_type" in order to have files which match the pattern associated with your application.

  • file_icon

The icon which will be used by the file manager to decorate files which should be associated with your application using the given "mime_type".

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xdg_soso-0.1.0.tar.gz (15.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xdg_soso-0.1.0-py2.py3-none-any.whl (15.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file xdg_soso-0.1.0.tar.gz.

File metadata

  • Download URL: xdg_soso-0.1.0.tar.gz
  • Upload date:
  • Size: 15.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xdg_soso-0.1.0.tar.gz
Algorithm Hash digest
SHA256 852386b25a0d01cc9a0ac6354025c89e03a7ee26e0a1bbe3f5d68b83250b8d0b
MD5 086ae6ff87a89ea2d2fcadb5418e174b
BLAKE2b-256 24d1685efe23f16a5b3a3f926f6f8a0e0c14f8bf78d126c920c0616e9d4c66a9

See more details on using hashes here.

File details

Details for the file xdg_soso-0.1.0-py2.py3-none-any.whl.

File metadata

  • Download URL: xdg_soso-0.1.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.9 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for xdg_soso-0.1.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 b0a272fc9bd6e04977ff2bb1a36fa050315902a60ede14aca741fb285fd77d08
MD5 6237d61004d74106a7b8b19ba0ce235c
BLAKE2b-256 3d2760ad9c3159db15c7ba16e45f593ebf37f1ef525309910109bcd88ff14dc8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page