taffybar-2.1.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 HaskellNone
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

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

Fetch menus and desktop entries and assemble the XDG menu.

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

Determine whether a desktop entry fulfils a condition.

getXDGDesktop :: IO String Source #

Determine current Desktop

getDirectoryDirs :: IO [FilePath] Source #

Return desktop directories

getApplicationEntries Source #

Arguments

:: [String]

Preferred languages

-> XDGMenu 
-> IO [DesktopEntry] 

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

getPreferredLanguages :: IO [String] Source #

Determine locale language settings