Last active
December 19, 2015 17:19
-
-
Save opatry/5990803 to your computer and use it in GitHub Desktop.
X11 Desktop Entry Getting Started.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var desktop_entry = require('desktop-entry'); | |
desktopEntry.load({ | |
entry:'./myfile.desktop', | |
onSuccess:function(model){ | |
// model is a JSON representation of the Desktop Entry file | |
// where sections are roots of JSON object | |
// each root contains a list of {key:value} objects. | |
console.log(model["Desktop Entry"].Version); | |
}, | |
onError:function(errorMessage){ | |
// handle error here | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
X11 Desktop Entry Getting Started.