Git Product home page Git Product logo

node-x11-desktop-entry's Introduction

X11 Desktop Entry

NodeJS X11 Desktop Entry is a NodeJS Library used to load and handle X11 Desktop Entries as defined by the FreeDesktop Desktop Entry Spec. 1.0.

Getting Started

Install the module using npm:

$ npm install node-x11-desktop-entry

Write a NodeJS script using the library and load a Desktop Entry file:

[Desktop Entry]
Version=1.0
Encoding=UTF-8
Type=MimeType
Comment=This is a comment

getting-started.js

var desktopEntry = require('node-x11-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
	}
});

Finally invoke node on it:

$ node getting-started.js

License

Copyright (c) 2013 opatry
Licensed under the MIT license.

node-x11-desktop-entry's People

Contributors

opatry avatar pwhelan avatar sonnyp avatar

Stargazers

Radu Dumitru avatar Mehmet Ali ILGAR avatar jayveesea avatar Karl Svartholm avatar Andrey Sidorov avatar

Watchers

Karl Svartholm avatar  avatar  avatar

Forkers

gorbiz huyunzhen

node-x11-desktop-entry's Issues

feature request: bsd compatible

It would be great if this would be compatible with the *bsd's. I know that lumina is underway (but it does not look aesthetically great)... and sure you can run gnome/kde/xfce/etc (but these are built for linux and need linux stuff)... but a project like this plus node-X11-desktop-environment would open up the audience of contributors and hackers and allow for faster development that would look great and have a lot of potential. Either way I think this is great idea, and looking forward to seeing how it develops!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.