taffybar-4.0.1: A desktop bar similar to xmobar, but with more GUI
Copyright2017 Ulf Jasper
LicenseBSD3-style (see LICENSE)
MaintainerUlf Jasper <ulf.jasper@web.de>
Stabilityunstable
Portabilityunportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Taffybar.Information.XDG.Protocol

Description

Implementation of version 1.1 of the XDG "Desktop Menu Specification", see https://specifications.freedesktop.org/menu-spec/menu-spec-1.1.html

Synopsis

Documentation

getApplicationEntries Source #

Arguments

:: [String]

Preferred languages

-> XDGMenu 
-> IO [DesktopEntry] 

Return a list of all available desktop entries for a given xdg menu.

getDirectoryDirs :: IO [FilePath] Source #

Return desktop directories

getPreferredLanguages :: IO [String] Source #

Determine locale language settings

getXDGDesktop :: IO String Source #

Determine current Desktop

getXDGMenuFilenames Source #

Arguments

:: Maybe String

Overrides the value of the environment variable XDG_MENU_PREFIX. Specifies the prefix for the menu (e.g. 'Just "mate-"').

-> IO [FilePath] 

Find filename(s) of the application menu(s).

matchesCondition :: DesktopEntry -> DesktopEntryCondition -> Bool Source #

Determine whether a desktop entry fulfils a condition.

readXDGMenu :: Maybe String -> IO (Maybe (XDGMenu, [DesktopEntry])) Source #

Fetch menus and desktop entries and assemble the XDG menu.