LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 09-16-2021, 10:37 AM   #1
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Rep: Reputation: 11
sddm default stuck to lang.sh ?


Hi,

I'm not sure since when (not long) but I realised SDDM was showing the date and time in the wrong format, and I was checking all my language and locale configuration, and it was fine, but still when I logged in to Plasma, every single time I had LANG=en_US

I finally found that the default options for SDDM were linked to lang.sh

Code:
root@liet:~# cat /etc/default/sddm
. /etc/profile.d/lang.sh
Why? Since when? I mean, I have my own settings system-wide that I have not changed in ages, so I guess this has to be something new, linking the configuration to an external and independent file?

Thanks
 
Old 09-16-2021, 11:07 AM   #2
marav
LQ Sage
 
Registered: Sep 2018
Location: Gironde
Distribution: Slackware
Posts: 5,356

Rep: Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068Reputation: 4068
Quote:
Originally Posted by elMoco View Post
Hi,

I'm not sure since when (not long) but I realised SDDM was showing the date and time in the wrong format, and I was checking all my language and locale configuration, and it was fine, but still when I logged in to Plasma, every single time I had LANG=en_US

I finally found that the default options for SDDM were linked to lang.sh

Code:
root@liet:~# cat /etc/default/sddm
. /etc/profile.d/lang.sh
Why? Since when? I mean, I have my own settings system-wide that I have not changed in ages, so I guess this has to be something new, linking the configuration to an external and independent file?

Thanks
Code:
$ locale | grep LC_TIME
you must change this (LC_TIME) according to your needs

Last edited by marav; 09-16-2021 at 11:10 AM.
 
Old 09-16-2021, 11:40 AM   #3
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by marav View Post
Code:
$ locale | grep LC_TIME
you must change this (LC_TIME) according to your needs

I have it according to my needs, but not configured in /etc/profile.d/lang.sh. The problem comes because at some point, /etc/dafault/sddm pointed to /etc/profile.d/lang.sh and hence overrides my own configuration.

Of course, now I have modified /etc/dafault/sddm to remove the lang.sh reference, and everything works fine.
 
Old 09-16-2021, 08:41 PM   #4
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 2,504

Rep: Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461Reputation: 8461
A bit more information, although I agree that linking lang.sh looks like it's not the best plan.

Do you use another shell other than bash?
You say you configured "settings system-wide", where did you configure that? Within Plasma?

Mostly just curious. My guess is that removing that setting as you did might be something we need to do here.
 
Old 09-17-2021, 02:48 AM   #5
elMoco
Member
 
Registered: Jul 2010
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 11
Quote:
Originally Posted by volkerdi View Post
A bit more information, although I agree that linking lang.sh looks like it's not the best plan.

Do you use another shell other than bash?
You say you configured "settings system-wide", where did you configure that? Within Plasma?

Mostly just curious. My guess is that removing that setting as you did might be something we need to do here.
Hi,

I have my own file where I configured all my environment variables and alias sitting in /etc/profile.d, and making sure (with many 'z') it's the last one to be executed.

I used to adapt the different, standard, files in /etc/profile.d to my global needs (user-wide needs, in each user profile), but since I moved to the -current release, and because those files are updated every then and now, I decided to use one personal specific file, for which I have better control.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sddm not starting / Auth: sddm-helper exited with 6 (or 11) wael_h Slackware 2 07-11-2021 12:02 PM
[SOLVED] $LANG per user doesn't obey the global $LANG set in /etc/profile.d/lang.sh me_h Slackware 23 11-20-2016 07:28 AM
Exception in thread "main" java.lang.NoClassDefFoundError: org/aspectj/lang/Signature canonas Linux - Software 3 06-16-2008 04:00 AM
What is the use of lang in <head lang=''> tooparam Programming 2 02-01-2006 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:12 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration