LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   how do we create a desktop environment from scratch? (https://www.linuxquestions.org/questions/programming-9/how-do-we-create-a-desktop-environment-from-scratch-297862/)

FireFox8173 03-05-2005 03:16 AM

how do we create a desktop environment from scratch?
 
Hi there,

me and my team wants to create a new distro from scratch using the linux from scratch books now in a recent meeting we were discussin' about the desktop environment and have decided to build up our own desktop environment from scratch but now we don't know where to start about desktop environment creation what should be the structure and if there should be something like motif or something like that to begin
any suggestions?
and which tools should be used to build a desktop environment from scratch ?
which is the main structure of a complete desktop environment ?
we tried to use google for infos but unsuccessfully :(

i'll thank you anticipatively for your help


FireFox

acid_kewpie 03-05-2005 04:26 AM

this is not related to the Linux From Scratch distribution in any way. please try to choose your forums more carefully next time.

and as for your question... i guess you need to understand xlib inside and out and go from there. you won't get any tools to do it for you at the base level. you might want to look at existing minimal desktops like ion and ratpoison to get an idea of what goes on.

XavierP 03-05-2005 04:45 AM

As per above, moved to Programming

FireFox8173 03-05-2005 05:29 AM

i'm sorry i'm very new to this forum next time i pay more attention in choosin' the right forum section
but shall i use some kinda of programming language such as C++ or similar to build at least the base?
i mean the desktop and the window manager or shall i use something which is already existing and tryin' to modify it or to adapt it to have a complete different look in the final work?


FireFox

acid_kewpie 03-05-2005 05:34 AM

the core libraries, e.g xlib, are in c, so you'd need to start there. after that you're free to head wherever you want.

FireFox8173 03-05-2005 05:52 AM

thank you :)
if i have any other question i will post :)

thx chris :)
so the xlib is where i shall to start and then go step by step through my development project till i have at least created the window manager right? and then the rest should be easy to do just the core side is the hardest thing to build :)

do u know if there are some tutorials or how-to or guides which explains something about it?
i googled but i didn't found anything really interesting just some general stuff which doesn't explain me more about how to program from scratch things like window manager etc
it is just to have some example to have such an idea of what i am going to do :)
for now i will start to have a look at the xlib libraries that u 've mentioned it's a good point to start :)
thx Chris :)
FireFox

clausi 03-05-2005 06:23 AM

I disagree with the previous posters althought I never made a desktop enviroment myself.

However, what constitutes a desktop, at least visually? You need a window manager, a file manager, a panel, utility programs like a calculator etc., and some dialogs for configuration and stuff.

Then, why start with xlibs and reinvent another toolkit? In fact, GNOME, XFCE, and ROX share the same underlying toolkit (GTK+) and all are complete but different desktops.

For a successful desktop enviroment, you'll need additional applications. By reinventing the toolkit, you'll basically need to reinvent the applications, too. See GNUStep as an example: It is developed for years already but still need additional apps for appearing 'visually integrated'. And it's still ugly. If you'd use an existing toolkit, you can also use existing applications.

In fact, with an existing toolkit some of the software needed for a desktop does already exist. Using the GTK+ example, there are panels, file managers, calculators, and stuff, already that are not used as standard in another desktop. The fonts look good, and additional themes exists. Use them, add a few config dialogs, and rewrite if neccessary, I'd say.

This will also show if your team can agree on a common idea for your desktop.

acid_kewpie 03-05-2005 06:28 AM

gnome only uses gtk to a certain extent, the underlying manager, metacity, the functionality which is what i assume we're supposed to be looking to replicate, only have very minimal gtk+ usage, instead it is concerned with the lower level window and event handling.

you won't find a howto on writing a window manager, as it's not the sort of thing that people generally do, and those that do do it are generally working far beyond the realms of a howto. it's c programming, not clicking a few buttons. people will referece xlib api's directly and look at other source code.

FireFox8173 03-05-2005 08:01 AM

so your suggestions are to use something that already exists by using existing toolkit like gtk+ and have an already written source code as base right? and then try to modify the aspect which should interest us right?
yes of course there should be C programming behind such a thing like this
and not a somple clickin' and picking up dialogs and buttons
but the problem is that i don't know where to start in programming those components

P.S: sorry for replyin' so late but i've been away for a while from my comp

FireFox

keefaz 03-05-2005 11:11 AM

Maybe take a look at :
http://docs.linux.cz/programming/gui...de/node30.html
http://users.actcom.co.il/~choo/lupg...ogramming.html
http://www.ac3.edu.au/SGI_Developer/...b_PG/sgi_html/

FireFox8173 03-05-2005 12:52 PM

thanks for those links i just had a look on them and are a good point where to start :)
at least to build the core side of the desktop environment such as the window manager and the desktop :)

what about the gtk tookit?
i mean what do u think about it?
should i use it too or do u have any other suggestions about other toolkits to use?


FireFox

acid_kewpie 03-05-2005 01:31 PM

forget GTK+ already... you can use it sure... but that would be WAY off in the distance. you just need to get to grips with handling windows etc... how many times do we have to mention xlib? ;)

FireFox8173 03-05-2005 02:00 PM

sorry i just made a bit of confusion because many things were mentioned lol
i forget gtk now :)


FireFox

exvor 03-06-2005 03:07 PM

LOL


Write a Window manager from scratch with a how to

How long you think a how to like that would take to finish

4 maybe 5 years :)


All times are GMT -5. The time now is 06:50 AM.