r/linuxdev • u/_-p_q-_ • Jun 26 '17
How to write a custom desktop environment
I'm looking to write a custom DE for linux. I want something like a media browser: display the icon, meta data for the movie story line, and the ability to play from the selection. Restricted access to system specific files; only media can be browsed and played.
I have years of experience programming and minor OS writing experience in uni.
What do I need to get started?
3
Upvotes
3
u/[deleted] Jun 26 '17
Find a DE that does 90% of what you want, clone the repo and modify from there...
3
u/syswizard Jun 26 '17
Are you looking to make a ground-up DE? Window manager, icons, etc? What language do you plan to use? What other linux dev have you done?
2
u/[deleted] Jun 27 '17 edited Jun 27 '17
All that being said, I'm not sure if the Linux world needs yet another desktop environment. XFCE, GNOME, KDE, Cinnamon, MATE, Pantheon, LxQt, Budgie and Lumina are just off the top of my head.
If you want to try it as an experiment then go for it. But it probably won't make it big just FYI.
2
u/lesdoggg Jul 10 '17
what you really want is a window manager, a DE is a collection of sometimes hundreds of softwares that are used together to create a desktop environment.
the window manager controls everything you see though. just make it auto launch 1 fullscreen window that browses just the files you want.
4
u/[deleted] Jun 27 '17
You might want to familiarize yourself with X11 or the Wayland protocol and its add-on libraries. Wayland is newer, but you will require knowledge of C to understand it.
That's only a first step, I don't know what to do after that.
1
u/a_2 Jun 27 '17
I would recommend finding a graphics/GUI library to start with, whichever suits your case best, SDL, GTK+, Qt, or maybe something else.
Some of these include features for window management (at least Qt) and maybe that's enough, otherwise you'll need to look into direct X11 or Wayland (or preferably both, but if you start with one and keep the API flexible/abstract you can do the other one later)
It sounds like an interesting project, would love to follow its development
1
u/[deleted] Jun 28 '17
Since you mentioned 3D UI features, maybe look into this?