On 10/25/19 1:59 AM, Wolfgang Bauer wrote:
Am Fri, 25 Oct 2019 10:32:02 +0200, schrieb Wolfgang Bauer <wbauer@tmo.at>:
Am Freitag, 25. Oktober 2019, 01:18:29 CEST schrieb Lew Wolfgang:
Alas, I've heard nothing but crickets. Any suggestions? Maybe I could put some zenity-fu in /usr/share/sddm/scripts/Xsetup? I just tried displaying a dialog with kdialog (I don't have zenity installed) by adding the line "kdialog --textbox /etc/os-release" to etc/X11/xdm/Xsetup, and it worked the same as in kdm. According to the link you posted, it seems you want to display the dialog when a user actually logs in though. Xsetup is already run *before* the login screen is shown.
That should be doable in /etc/X11/xdm/Xsession (again, the exact location is configurable) then, which is called when starting the user session (Xsetup is already run *before* the login screen is shown).
Or maybe somewhere in /etc/X11/xinit/.
Hi Wolfgang, (Nice name :-)) I finally found a chance to look at this again, and I can't find a way to configure sddm to display a click-through login message. My customer requires: 1. User enters username, then password on the console. 2. A warning message is displayed. 3. The user must click a button to acknowledge the message. 4. Login proceeds. If the user clicks "no", the login returns to the start and prompts for the username. My call to zenity is placed in /etc/X11/xdm/Xstartup which kdm reads. But sddm doesn't seem to care anything about Xstartup. /usr/lib/sddm/sddm.conf.d/00-general.conf specifies Xsession and Xsetup, but not Xstartup. Is there a way? Here's the fragment that I insert into Xstartup: # # ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/bin/zenity --question --title="WARNING" --text="`cat /etc/issue`" --ok-label="Accept" --cancel-label "Decline" - -no-wrap # case $? in 0) ;; 1) exit ;; esac The warning message is in /etc/issue. Note that I configure sshd to use /etc/issue for the "banner". This presents the warning message to ssh logins before the user enters their password. Hitting the "enter" key suffices for the click-through process. Any help would be appreciated! Regards, Lew -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org