install to ~/.local/icons, not ~/icons
Apparently the Icon Theme Specification no longer matches reality, as implemented by XFCE and xdg-icon-resource.
This commit is contained in:
parent
19b8bcbe30
commit
80b390560e
2 changed files with 10 additions and 13 deletions
|
@ -93,16 +93,13 @@ autoStartPath :: String -> FilePath -> FilePath
|
|||
autoStartPath basename configdir =
|
||||
configdir </> "autostart" </> desktopfile basename
|
||||
|
||||
{- Path to use for an icon file.
|
||||
{- Path to use for an icon file, in either the systemDataDir
|
||||
- or the userDatadir.
|
||||
-
|
||||
- The resolution is something like "48x48" or "scalable". -}
|
||||
iconFilePath :: FilePath -> String -> Bool -> IO FilePath
|
||||
iconFilePath file resolution systemwide
|
||||
| systemwide = return $ systemDataDir </> "icons" </> subpath
|
||||
| otherwise = do
|
||||
home <- myHomeDir
|
||||
return $ home </> ".icons" </> subpath
|
||||
where
|
||||
subpath = "hicolor" </> resolution </> "apps" </> file
|
||||
iconFilePath :: FilePath -> String -> FilePath -> FilePath
|
||||
iconFilePath file resolution datadir = datadir </> "icons" </>
|
||||
"hicolor" </> resolution </> "apps" </> file
|
||||
|
||||
desktopfile :: FilePath -> FilePath
|
||||
desktopfile f = f ++ ".desktop"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue