evertiro / cdm Goto Github PK
View Code? Open in Web Editor NEWConsole Display Manager
Home Page: http://evertiro.com
License: GNU General Public License v2.0
Console Display Manager
Home Page: http://evertiro.com
License: GNU General Public License v2.0
CDM does not work if dialog is not installed and output is hard to catch as it just exits without error information. Please mention in the documentation that this is needed
Currently the X session is not registered in systemd's logind, e.g. it is not listed in "loginctl list-sessions" output. I'm looking for solution, but so far I don't have a clue.
This happens only when I run X session from cdm immediately after login, when I run cdm from console login, the session is properly registered.
Hello, I started to use CDM several months ago and was not satisfied with the code in some some aspects, so I forked golodhrim/cdm (a fork of your version), significantly changed the architecture, and sanitised the code. The main idea of the modifications have been summarised in the ChangeLog [1].
At that time I did email you and try to inform you of my fork, but dot no response, so I finally send my code back to golodhrim. Now that you have come back, would you please consider merging my modifications?
The reason I do not send a pull request is that the code has been very different from the version of yours (mainly better architecture, in my idea :), and you have merged some modifications in the old code (which would be incompatible with my modifications). Another reason is that I did some gentoo-specific modifications, however I can use some universal code if you want.
[1] https://github.com/CasperVector/cdm/blob/master/ChangeLog-0.6
Hi,
I'm pretty new to Arch Linux and cdm. I'm only with the root account (test purposes). When I try to launch the command "cdm", it just resets my console and I have to log in again, nothing more happen. Is there a way to fix it?
Thanks!
The XDG Base Directory Specification states:
$XDG_CONFIG_HOME
defines the base directory relative to which user specific configuration files should be stored. If$XDG_CONFIG_HOME
is either not set or empty, a default equal to$HOME/.config
should be used.
(https://specifications.freedesktop.org/basedir-spec/latest/ar01s03.html)
The default is not implemented in cdm: In /src/cdm Line 68 and Line 69 $XDG_CONFIG_HOME
is used without any fallback.
I guess ${XDG_CONFIG_HOME:-$HOME/.config}
should be used instead to respect the specification.
It only takes one line of code and makes the display manager look about five times better, you can simply add an ANSI escape code at the beginning like this:
# DISABLE THE CURSOR BLINKING
echo -e '\033[?25l'
name=$(basename "$0")
longname='Console Display Manager'
ver='0.7'
Making an option for this in the configuration file would be even better because the way I added it is a bit out of the blue.
The domain hosting both the homepage and the mainainer's email appears to have expired...
Hey, the newest version of /usr/share/cdm/themes/cdm
theme still hasn't got
border2_color
and menubox_borer2_color
defined… This means either to have odd white lines in the menu or customising it manually with each update. Would be great if those could be included upstream!
CDM proccess pid is added to utmp (logged in users file), but after CDM starts the X session and exits, the user does not appear to be logged in anymore. The conventional solution to this seems to be starting user session on the same pid using exec, but this tends to leave the initial tty vulnerable to tampering after using CTRL + C (even if the X session may be locked).
This makes "w", "who" and "users" commands not report the user and "last" shows the duration of cdm menu being displayed as session duration.
I was wondering why nmtui refuses to manage network under regular user, with error message like 'couldnot see user session', when i found, that launching it with 'ck-launch-session nmtui' will work fine.
Then i looked back to cdm, it is configured to use consolekit, but was arguing that it can't register X session within consolekit each time. I added 'ck-launch-session' before '/usr/bin/startkde' in cdmrc and that fixed it.
Session registers sucessfully, cdm is happy, nmtui is happy, also poweroff button became available under kde.
So i suggest to add 'ck-launch-session ...' in cdm-xlaunch script for all 'X' sessions.
For adding the system Functions i.e reboot shutdown and suspend .... add Zenity to your dependencies and then use the Consolekit Zenity bash Script for these Function. That makes CDM to ROCK !!!
everytime i enter my login it redirects me to the cdm but then it fails to launch a DE. Is there anyway to bypass cdm on login or close it completely? I have tried adding nomodeset on grub but i have the same issue
I think it would be better to support loading of default sessions from /usr/share/xsessions instead the current /etc/X11/Sessions, which is not standardized (I think) and presumes that the user creates the scripts. Many window managers install their .desktop file under /usr/share/xsessions, so it's definitely better.
how to install it?
how to make it?
Hi, awesome project, but I ran into two problem that block me from using cdm:
I use Archlinux x86_64 (systemd) with the cdm-git package (compiles latest version from here) and I have an .xinitrc file to start i3 and Enlightenment17 that works perfectly with slim.
When I try to use cdm, however, after logging into the X session I do not have sound (a closer look reveals that the ACL permissions for the sound card do not get set when logging in with a user. A workaround for that would be to add the user to the audio group, but that's against the workings of systemd).
The more pressing problem is that I cannot start a VPN connection with nm-applet when starting the X session with cdm (no problems with slim), the journal states that NetworkManger cannot find the secrets for the VPN connection (which indicates to me that there a problem with the dbus sessions).
My configuration file /etc/cdmrc varies from the default one like this:
binlist=(
'/.xinitrc i3'/.xinitrc e17'
'
'/bin/bash --login'
)
namelist=('i3' 'e17' 'Console')
flaglist=(X X C)
consolekit=no
Currently, the example cdm hook only runs cdm on tty1. I'd like to run it on multiple terminals in order to have multiple x sessions in parallel (this would of course need another config option for disabling the check for a running X process, but that's the easy part).
The obvious problem with that feature is that if we make the ttys configurable in the config file, we need to either include the check in cdm itself, which is bad in case of crashes, or read the config file in the cdm hook, which is bad because of code duplication.
My first idea was to make the cdm script sourceable and executable[1]. We could then source the script from the hook and use its functions to read the tty configuration, but the problem with crashes would persist.
Do you have another idea how to achieve selecting ttys via configuration? I am volunteering for implementing it.
Hi!
After my last system upgrade my Archlinux machine fails to open my X session with CDM. As I am not the only user facing this issue (https://bbs.archlinux.org/viewtopic.php?pid=1413023#p1413023) I guess that someone from the CDM maintainers should have a look. The linked forum post describes the observations as well as a change to /usr/bin/cdm-xlaunch which fixes the issue.
Best Regards,
Robin
First of all CDM is Great!
But it can't start a desktop competently. For Example the ICEWM has some components like startup file which should be executed at login but CDM doesn't handle it and ICEWM will start with no startup program.
So look in to it!!!
I am using cdm-git from AUR under archlinux.
When logging in with CDM to my window manager (notion, enlightenment or xfce4), after around 10 seconds I lose access to my home directory.
I suspect this is linked to my encryption setup with ecryptfs: My home directory will be decrypted upon login. When I log into tty2 and then log into tty1 to trigger a CDM login, everything works fine. If I know log out of tty2, after around 10 seconds I lose access to my home again.
Is there any quick fix for this? Locking the tty1 login would be possible?
Could you create a release please? Installing from git repo is not so convenient.
Whenever I log in, I get a CDM error about no programs being found in the config file. Thank god this is a VM or I would've cucked my entire PC lmao. Funnily enough I only installed this because I misremembered the name of ly
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.