EDE, a light desktop environment

  • Posted on: 6 September 2012
  • By: sanelz
Day: 
Sunday
Author: 
Sanel Zukan
Room: 
Track 1 (left)
English
Paper: 

Introduction

Today, desktop environments on Linux are in a bad shape. Popular
environments like KDE or GNOME became extremely bloated, resources
hungry without clear vision what desktop environment should be.

To run the latest versions of KDE or GNOME, you will need powerful
hardware with good graphic card and latest drivers, a demands set by
modern 3D games. But, do you really need that just to surf the web or
edit the text?

Because of this, in a recent years, there is increased interest for
alternatives: Xfce, LXDE or Razor-Qt. But, these alternatives are
built on bloated base: Gtk+ and Qt toolkits. Both are quite heavy
libraries, depending on large number of external packages. They will
produce large binaries and increase compile time.

Just for comparison, you will compile Linux kernel much faster than
compile Qt from the source code.

1. Fixing current situation

In my talk, I will introduce EDE[1], a light desktop built on FLTK[2]
library. FLTK or Fast Light Toolkit is portable C++ GUI library with
good history in movie and graphics business.

EDE goals are to make desktop environment easy to use, easy to install
and to be light in resource usage, no matter which OS or device is
used. Also, it should be compatible with current desktops and be able
to use installed resources like icon themes, menus or sounds.

By using known desktop design paradigms, EDE does not try to
reinvent desktop metaphor. Desktop environment should be invisible
where user feels comfortable and can be focused on daily tasks,
instead of spending time tweaking or optimizing common desktop
elements.

The talk will mostly focus on EDE features, comparisons to
alternatives and demonstrate the short snippets of how fast and
easily user can extend it, using C++ or Scheme languages.

2. EDE and technology behind

For EDE is developed additionally library called edelib that comes with
a lot of goodies needed by modern desktop environment. Some of them
are:

* implementation of various freedesktop.org[3] standards
* custom FLTK widgets
* cross OS functionality
* full DBus[4] C++ binding

and some not common features, like builtin Scheme[5] interpreter.

With FLTK and edelib as the main dependencies, DBus is the only
requirement user must provide additionally. DBus is used for component
communication and there is a plan to provide it as optional
requirement, making EDE easy to port on different platforms.

Thanks to this approach from the start, EDE now happily works on
uncommon OS-es and devices like Minix, Zaurus or XBox.

Here are a couple of other facts:

2.1 C++ usage

EDE is written in C++ and this language is known for creating bloated
binaries with increased compilation time. For this reason, we are
trying to skip:

* exceptions
* STL and STL based code
* template abuse

By using these rules, compilation time is dramatically reduced and we
are assured the code will be compile-able even on old C++
compilers, making it easy to port on old or alien platforms.

2.2 Scriptable themes and meta-themes

While other desktops are relaying on XML or JSON to describe themes,
EDE uses full scripting language, Scheme[5]. With Scheme, user in
themes not only can describe how something looks like, but also
when. This theme snippet perfectly explains it:

;; Check if user have installed Tango icon theme and use it.
;; If not, fallback to default 'edeneu'.

;; theme common metadata
(theme.name "demo theme")
(theme.sample "preview.jpg")

;; this is actually a function
(defun guess-icon-theme ()
"Check if user has Tango icon theme."
(if (find-icon-theme "tango")
"tango"
"edeneu"
))

(theme.style "ede" [
foreground_color "dark slate gray"
background_color "mint cream"
font "sans 10"
icon_theme (guess-icon-theme) ;; this is a function call
])

EDE themes are at the same time meta-themes: you can bundle inside
single, global theme, a various application specific themes and the
best of all: they can interact with each other.

By using this design, EDE blends the difference between theming and
scripting, giving artists greater freedom to design look and behavior.

3. Future plans

While EDE in current state fulfills a large part of the mentioned
goals, it is not completed yet. Some of features I would like to see
are:

* platform independent easy to use package installer
* light and fast file and web browser
* more exposure of internals via DBus objects in Smalltalk style

There is already work on EDE internals exposure and recently was added
'DBus Explorer' tool, from where the user can debug, inspect and call
various object by simply clicking on them or writing Scheme code.

4. Where you can get it?

Currently EDE is not provided as standard package in popular
distributions, but you can easily find binaries for Ubuntu, Fedora or
FreeBSD on alternative repositories.

However, the user can download EDE from the project site[1] and build
it either manually or by running netinstall[6] script.

References

[1] http://edeproject.org
[2] http://www.fltk.org
[3] http://freedesktop.org
[4] http://dbus.freedesktop.org
[5] http://en.wikipedia.org/wiki/Scheme_%28programming_language%29
[6] http://edeproject.org/wiki/NetInstall

Time: 
16:00 - 17:00 hrs
field_vote: 
4
Your rating: None Average: 4 (1 vote)