Other CDE Users Unite!

This is wrong.

Do you have any font issues?
No issues here. Everything looks fine.
To fix this I have modified my dtsession_res, adding the following after rCustom=... (Sorry I don't have a real patch. I updated the file in /usr/local. It will make it into the tree.)

Add the following after rCustom=

Code:
if [ ! -f "$rFactory" ]; then
        rFactory=/usr/local/dt/config/C/sys.resources
fi
if [ ! -f "$rCustom" ]; then
        rCustom=/usr/local/dt/etc/config/C/sys.resources
fi

This assumes you installed your hand-built CDE into /usr/local/dt. Adjust the pathnames accordingly if you put it in /usr/dt.
I followed these steps: https://sourceforge.net/p/cdesktopenv/wiki/FreeBSDBuild/

Sorry for the late reply and thank you for your work!
 
The real solution is to add *international: true to one's resources or add -xrm '*international: true' to the arguments of any misbehaving apps.

I'm pondering making x11/cde-25 default next week. Does anyone have any objections?

Adding one's own Xresources to CDE is a bit of a hack. I'm kind-of thinking of adding an option for those who use ports that would append #include ".Xresources", or simply make it default so anyone can use it should they choose to create a .Xresources file.

My .Xresources now contains the following which mitigates the regression:

# Fix for gb2312.1980 overriding iso8859
XPostit.*international: false
*international: true

Anyhow, if people are willing, I will make cde-25 the default cde.
 
CDE on EeePC 901 (bought in 2008). Compiled and installed ;)
eee_pc_901.jpg
 
Trying to revive the thread.

How can you configure the .Xresources to define custom icons?

Shall this work? -it does not-

Dtwm*Dtterm*iconImage: /usr/local/dt/appconfig/icons/C/Dtmail.l.pm

I have added to ~/.Xdefaults and then did xrdb -merge ~/.Xdefaults and restarted the window manager and refreshed it.
 
I recall that you have to separate the path from the image file. Similar to:

Code:
Dtwm*bitmapDirectory: /usr/local/dt/appconfig/icons/C
Dtwm*Dtterm*iconImage: Dtmail.l.pm

Thanks for your answer.

I was trying to change the icons for `xterm` and `firefox`. It seems that CDE applications are different.

For `xterm` you add a resource to `.Xdefaults`:

Code:
xterm*iconHint:             /usr/local/dt/appconfig/icons/C/Dtterm.l.pm

For `firefox` you need to change the icon directly, I have found no other solution. Also the icon needs to be 128x128 but it only displays 48x48, so you need to provide an artificial padding on it.

I replaced this file:

Code:
/usr/local/lib/firefox/browser/chrome/icons/default/default128.png

I used a Netscape icon since it matches with CDE aesthetics and time.

In the image: xterm standard and new icon for firefox.
I also attach the netscape icon to replace default128.png.
 

Attachments

  • iconscde2.png
    iconscde2.png
    12.1 KB · Views: 43
  • default128.png
    default128.png
    2.6 KB · Views: 42
I use CDE in everyday work.
I have 2 window managers: CDE and Gnome.

We (our very small company) develop operating systems on micro-controllers (smart cards), which are used as a hardware crypto-modules in applications.
A client side application sends its plain data to our smart card (in APDU - throughout card reader, using PCSC).
Card does crypt/sign the data, and returns the result to application. On a server side, card is used to decrypt/verify sign the data received.
My work is to develop (in C/C++) libraries which are using by applications to communicate with our smart cards. Also I develop bunch of tests.
I rarely use Gnone. I do all my work in CDE, especially testing (tests in CDE run twice as fast as in Gnome).

Edit: I use this CDE.
View attachment 14455
I was wondering if you could kindly share the color palette used.
 
More on fonts.

I have changed all fonts to fixed condensed monospace (https://forums.freebsd.org/threads/...-environment-for-modern-use.69475/post-673827).

However, I am struggling with UTF-8.

I found this website which references how the fixed fonts were extended to cover UTF-8 (https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html).

I added this to my `.Xdefaults` which is applied via `xrdb -merge`:

Code:
xterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
Dtterm.*userFont: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

So now xterm and uxterm can show UTF-8 (see image).
However, I can not apply this to dtterm (or dtpad).
I tried to modify all CDE fonts to that font but then all text is displayed with weird characters.

1. Could someone help me to understand why is this happening?
2. Is it possible to actually have UTF-8 in CDE?
3. The .Xdefaults is applied via .dtprofile `xrdb -merge .Xdefaults`. So when restoring a session the already opened uxterm windows are opened with the standard font and not the one specified in .Xdefaults, how that can be solved?

Image reference:

1. Left uxterm window:
xterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1

2. Mid uxterm window:
xterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

3. Right dtterm window:
xterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1


Thanks
 

Attachments

  • cdefonts3.png
    cdefonts3.png
    33.3 KB · Views: 60
More on fonts.

I have changed all fonts to fixed condensed monospace (https://forums.freebsd.org/threads/...-environment-for-modern-use.69475/post-673827).

However, I am struggling with UTF-8.

I found this website which references how the fixed fonts were extended to cover UTF-8 (https://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html).

I added this to my `.Xdefaults` which is applied via `xrdb -merge`:

Code:
xterm*font: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1
Dtterm.*userFont: -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1

So now xterm and uxterm can show UTF-8 (see image).
However, I can not apply this to dtterm (or dtpad).
I tried to modify all CDE fonts to that font but then all text is displayed with weird characters.
Thanks for sharing.

2. Is it possible to actually have UTF-8 in CDE?
I also had a problem with utf-8 in CDE (posts #68, #46), and I haven't solved it yet. Instead I use my file /usr/local/dt/etc/cde/fontaliases/fonts.alias (see CDE_25_fonts.alias.zip attached to post #68). To create fonts.alias I used my own script, after which I edited the resulting file manually. This, of course, is not a solution to the problem, but for now it suits me...
 
So now xterm and uxterm can show UTF-8 (see image).
However, I can not apply this to dtterm (or dtpad).
I have the same thing: xterm can show utf-8 (see attachment), but dtterm can't

my xterm settings :
Code:
[lanin@freebsd3 ~]$ cat ~/.Xresources 
xterm*faceName: Monospace
xterm*faceSize: 9
XTerm*selectToClipboard: true
XTerm*saveLines: 1000000
XTerm*scrollBar: true
XTerm*geometry: 45x31
XTerm*Background: midnightblue
XTerm*Foreground: lightgray
 

Attachments

  • utf8_pic1.png
    utf8_pic1.png
    72.9 KB · Views: 59
  • utf8_pic2.png
    utf8_pic2.png
    112.8 KB · Views: 63
Thanks for sharing.


I also had a problem with utf-8 in CDE (posts #68, #46), and I haven't solved it yet. Instead I use my file /usr/local/dt/etc/cde/fontaliases/fonts.alias (see CDE_25_fonts.alias.zip attached to post #68). To create fonts.alias I used my own script, after which I edited the resulting file manually. This, of course, is not a solution to the problem, but for now it suits me...

I have read thoroughly the posts again, specially #68.

I have the same situation. I can not use iso10646-1 for CDE.
At least the iso10646-1 font works fine for uxterm/xterm so it is not the end of the world.

On that post you mention that you are using ru_RU.UTF-8:

Code:
[lanin@freebsd ~]$ locale
LANG=ru_RU.UTF-8
LC_CTYPE="ru_RU.UTF-8"
LC_COLLATE="ru_RU.UTF-8"
LC_TIME="ru_RU.UTF-8"
LC_NUMERIC="ru_RU.UTF-8"
LC_MONETARY="ru_RU.UTF-8"
LC_MESSAGES="ru_RU.UTF-8"
LC_ALL=

In my FreeBSD CDE workstation I have:

Code:
$ locale
LANG=C
LC_CTYPE="C"
LC_COLLATE="C"
LC_TIME="C"
LC_NUMERIC="C"
LC_MONETARY="C"
LC_MESSAGES="C"
LC_ALL=

However, in another FreeBSD server -no X11- I have:

Code:
$ locale
LANG=C.UTF-8
LC_CTYPE="C.UTF-8"
LC_COLLATE="C.UTF-8"
LC_TIME="C.UTF-8"
LC_NUMERIC="C.UTF-8"
LC_MONETARY="C.UTF-8"
LC_MESSAGES="C.UTF-8"
LC_ALL=

I am struggling to understand the differences between:

Code:
en_US.UTF-8
C.UTF-8

And what shall I really have in my system. I work in English but I have to open files in latin-1 languages.

You mention that you setup `ru_RU.UTF-8` in `.dtprofile`.
Can you share the location of `.dtprofile`?
Which locale shall I have and how would you set up in FreeBSD 14.1?

Thanks
 
I work in English but I have to open files in latin-1 languages. You mention that you setup `ru_RU.UTF-8` in `.dtprofile`.
Can you share the location of `.dtprofile`?
Which locale shall I have and how would you set up in FreeBSD 14.1?

Thanks
.dtprofile is located in the home directory. If you are working only in English, I think the locale should be en_US.UTF-8.
 
The best bit is that CDE can never become bloated because it is a single monolothic project that individuals can easily build themselves. If upstream do something stupid, you can just keep with the previous release (impossible with Gnome, KDE, Xfce, etc).

The only thing that can really damage this is if the Wayland kids ever manage to change the ecosystem in any serious way.
 
Boy CDE brings back memories. The first "desktop environment" I ran across. Old Sun, Dec machines. Toolbar, multiple workspaces, animated icons. Really is it a big leap from CDE to say MacOS? Not for me. Motif window manager/decorations: not the prettiest but certainly functional.
If one looks at something like classic CDE and compares against newer DE's like KDE, Gnome, etc, you realize "modern DE's are basically the systemd of the graphics world".

Motif ... CDE ... Memories, pressed between the pages of my mind. LOL.

Here's one of my published articles from back in the day: Red Hat CDE

Linux was dropped by me soon afterward when a relatively expensive Motif API library quit working due to Linux release sloppiness.

gnome* was used by me on FreeBSD up until it became too problematic. gnome's nasty habit of dragging in hundreds of other packages forced me to patch one or more packages on the fly once too often.

I now use lean and mean twm. Better yet, FreeBSD boots into "raw dog" CLI and then startx invokes X. My ritual's retro vibe's similar to the days when MSDOS booted as the OS while Windows was invoked as win from the command line. LOL.

Truth be known, back in the day, it raised my ire when text menus first appeared as predecessors to PARC's PC GUI. Because people who couldn't use a CLI had no business being behind a computer, in my not so humble opinion.
 
I now use lean and mean twm. Better yet, FreeBSD boots into "raw dog" CLI and then startx invokes X. My ritual's retro vibe's similar to the days when MSDOS booted as the OS while Windows was invoked as win from the command line. LOL.
I've been booting into cli and running startx forever. Preferred WM has been WindowMaker for a long time (even built from source to run on Suns at work :) )
All the folk that grew up with smartphones consider things like CDE primitive but those of us that started with vt100s it was heaven sent.
 
Because people who couldn't use a CLI had no business being behind a computer, in my not so humble opinion.
Agreed. These days we have successfully removed them from computers and they are now happily eating crisps on the sofa whilst prodding a tablet to buy random trinkets (or more crisps) whilst watching random crap on a TV. Problem averted. Nothing has been lost trying to integrate them!
 
  • Like
Reactions: mer
There is a new enhanced motif window manager.
The package is `emwm` and it is included in the ports.

The advantage over CDE is that it is more lightweight -just the mwm window manager-. It "fixes" the following issues present in the legacy mwm:
1. it handles the hints to allow clients maximize to the size of the physical screen when you are using two or more screens with xrandr.
2. It supports Xft and UTF-8 fonts -old core fonts are also supported and can be configured-

I share this as it might resonate with the readers of this thread as an alternative to CDE.

I also share as someone here might be able to help to configure the X server so it listens in TCP port 6000.

Any help on below thread is welcomed:

 
Back
Top