taffybar-3.0.0: 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])) #

Fetch menus and desktop entries and assemble the XDG menu.

matchesCondition :: DesktopEntry -> DesktopEntryCondition -> Bool #

Determine whether a desktop entry fulfils a condition.

getXDGDesktop :: IO String #

Determine current Desktop

getDirectoryDirs :: IO [FilePath] #

Return desktop directories

getApplicationEntries #

Arguments

:: [String]

Preferred languages

-> XDGMenu 
-> IO [DesktopEntry] 

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

getPreferredLanguages :: IO [String] #

Determine locale language settings