LinuxQuestions.org
Review your favorite Linux distribution.
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 11-30-2020, 01:15 AM   #391
walecha
Member
 
Registered: Jan 2010
Location: Malang, +62
Distribution: slackware
Posts: 174

Rep: Reputation: 42

Still about KDE clock,
Do we need to add timezone environment variable like the comment here? https://bugs.kde.org/show_bug.cgi?id=423210#c4

I will try it by setting localtime to UTC (again) and set TZ env

Result from testing using TZ environment variable
https://i.imgur.com/4ACVluf.png

Looks like KDE did not complain anymore and just using timezone from TZ env even if my hardware clock is set to UTC

I think it may be good idea for timeconfig to also setting timezone in (maybe) /etc/default/timezone and source it from /etc/profile.d/timezone.{sh,zsh}

Last edited by walecha; 11-30-2020 at 01:50 AM. Reason: Add test result
 
Old 11-30-2020, 03:03 PM   #392
pdags
LQ Newbie
 
Registered: Mar 2011
Distribution: Slackware
Posts: 15

Rep: Reputation: 4
The digital clock does not work properly if /etc/localtime is a file instead of a symlink: https://bugs.kde.org/show_bug.cgi?id=415703#c4 . Looks like maybe systemd requires that, so KDE developers made the assumption it would always be a symlink? https://manpages.debian.org/stretch/...time.5.en.html

I don't use 'R', but the 'R' documentation also talks about "modern" distributions and timezones https://www.rdocumentation.org/packa...pics/timezones , so it might have problems too although I'd have expected complaints before now if there is an issue there.
 
Old 11-30-2020, 03:59 PM   #393
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Anyone having problems switching keyboard layouts? I have two set up: "US" and "US intl AltGR" (for accents etc). I'm unable to switch to international for some reason, both with keyboard shortcut and by selecting the icon from the systray. It always just stays on US.

I tried removing all layouts, saving, and re-adding them both, but I'm unable to switch.

Last edited by drgibbon; 11-30-2020 at 04:02 PM.
 
Old 11-30-2020, 04:08 PM   #394
drgibbon
Senior Member
 
Registered: Nov 2014
Distribution: Slackware64 15.0
Posts: 1,220

Rep: Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942Reputation: 942
Quote:
Originally Posted by drgibbon View Post
I'm unable to switch to international for some reason, both with keyboard shortcut and by selecting the icon from the systray.
Actually it turns out I can only switch layouts when the keyboard layout preference pane is open. Otherwise not.

Last edited by drgibbon; 11-30-2020 at 04:11 PM.
 
Old 11-30-2020, 04:09 PM   #395
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by pdags View Post
The digital clock does not work properly if /etc/localtime is a file instead of a symlink: https://bugs.kde.org/show_bug.cgi?id=415703#c4 . Looks like maybe systemd requires that, so KDE developers made the assumption it would always be a symlink? https://manpages.debian.org/stretch/...time.5.en.html

I don't use 'R', but the 'R' documentation also talks about "modern" distributions and timezones https://www.rdocumentation.org/packa...pics/timezones , so it might have problems too although I'd have expected complaints before now if there is an issue there.
BUT, in all my boxes the /etc/localtime is a symlink, likely created by setup when I installed the slackware-current on those particular boxes.

Honestly, no one has a system installed clean more than 2 year ago, so could be some old remains of the historical Slackware 14.2 ?

Last edited by LuckyCyborg; 11-30-2020 at 04:11 PM.
 
2 members found this post helpful.
Old 11-30-2020, 05:23 PM   #396
pdags
LQ Newbie
 
Registered: Mar 2011
Distribution: Slackware
Posts: 15

Rep: Reputation: 4
Yeah I'm confused too. That was how I remembered it, but if I'm reading it correctly, /usr/sbin/timeconfig:66 copies the zoneinfo file for your timezone from /etc/localtime-copied-from which actually *is* a symlink. I saw something in an old thread that its done this way because /usr might not be available at boot. No idea why this would suddenly cause an issue now.

Found the thread: https://www.linuxquestions.org/quest...0/#post4698304

Last edited by pdags; 11-30-2020 at 05:25 PM.
 
Old 11-30-2020, 05:36 PM   #397
LuckyCyborg
Senior Member
 
Registered: Mar 2010
Posts: 3,500

Rep: Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308Reputation: 3308
Quote:
Originally Posted by pdags View Post
Yeah I'm confused too. That was how I remembered it, but if I'm reading it correctly, /usr/sbin/timeconfig:66 copies the zoneinfo file for your timezone from /etc/localtime-copied-from which actually *is* a symlink. I saw something in an old thread that its done this way because /usr might not be available at boot. No idea why this would suddenly cause an issue now.

Found the thread: https://www.linuxquestions.org/quest...0/#post4698304
Man, this is a post from A.D. 2012 referring to Slackware 13.37 !?! WTF?

No, the /usr split is not supported anymore according with our BDFL, and in my humble opinion, there is not reason the timezone to be copied into /etc ...
 
Old 11-30-2020, 08:44 PM   #398
pdags
LQ Newbie
 
Registered: Mar 2011
Distribution: Slackware
Posts: 15

Rep: Reputation: 4
Quote:
Originally Posted by LuckyCyborg View Post
Man, this is a post from A.D. 2012 referring to Slackware 13.37 !?! WTF?

No, the /usr split is not supported anymore according with our BDFL, and in my humble opinion, there is not reason the timezone to be copied into /etc ...
I told you it was old . AFAICT, copying the file instead of linking is perfectly fine.
Quote:
If the TZ variable does not appear in the environment, the system
timezone is used. The system timezone is configured by copying, or
linking, a file in the tzfile(5) format to /etc/localtime.
And its been working for literal decades according to the changelog, so I must have remembered how this works wrong.

systemd, or at least freedesktop.org, seem to disagree though.

Interestingly, for the TZ variable it seems that just naming the timezone works fine
Code:
TZ=:US/Eastern startx
but using a filespec with a slash does not
Code:
TZ=:/usr/share/zoneinfo/US/Eastern startx
TZ=:/etc/localtime startx
As an aside, I just noticed its not just the digital clock that's broken. The lock screen also does not show date and time without setting the TZ variable or making /etc/localtime a symlink.

I don't know what to tell you... this is all pretty far out of my wheelhouse, but I'm clearly reading the wrong man pages or something . I'll let the experts weigh in from here.
 
2 members found this post helpful.
Old 11-30-2020, 11:00 PM   #399
akimmet
Member
 
Registered: Jul 2018
Location: NW Ohio, USA
Distribution: Slackware64 -current
Posts: 62

Rep: Reputation: 62
I was wondering why my clock widget disappeared, Thanks! The last few posts explained everything.
I removed my existing /etc/localtime and symlinked it to the appropriate entry in /usr/share/zoneinfo.
 
Old 12-01-2020, 04:03 AM   #400
mario
Member
 
Registered: Dec 2009
Distribution: Slackware
Posts: 32

Rep: Reputation: 20
Just to chime in a bit... my XFCE also removed the clock when I installed vtown, but without thinking I re-added it and it didn't have any more problems ever since. My /etc/localtime is a file and not the symlink (It's a very old -current . The clock shows correct time and is not stuck on UTC.
 
1 members found this post helpful.
Old 12-07-2020, 06:11 PM   #401
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,185

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Plasma5 is now officially in the main tree - goodbye KDE4.
Code:
Mon Dec 7 21:49:58 UTC 2020
Goodbye vtown... we hardly knew you.
It is indeed the day of the Big Merge(tm) leaving nothing left in /testing (but
I'll try to work on that soon). In addition to merging packages from /testing,
Qt4 and related packages have gone away, along with some other libraries that
were only used by KDE4. Perhaps someone will want to take up maintenance of Qt4
(but I'm also pretty sure that SBo wouldn't touch that build script with a ten
foot pole). ConsoleKit2 is gone, replaced by elogind (which also takes over for
cgmanager and pm-utils).
Huge thanks to Eric Hameleers, Heinz Wiesinger, and Robby Workman for all the
help making this possible.
There's still more cleanup to do here, but that'll be easier with everything in
the main tree instead of maintaining side installs running the /testing
packages.
 
6 members found this post helpful.
Old 12-07-2020, 07:27 PM   #402
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
The clock issue ,is a bug under qt5 , i report on -current requests , but at the moment is ignored.


qr5 cant get zoneinfo when /etc/localtime is a regular file , thats knowed bug qt5.

For some reason i think im in ignored list from pat.

There is the request and the proposed patch from qt developers , for some reason is not under 5.15.2

https://www.linuxquestions.org/quest...ml#post6191974


People having /etc/localtime as a "spected" symlink is cause configure time under plasma ... configure clock , set time zone , and he removes the regular file and do a symlink , the more easy test is re-configure timezone from console , ...and see how configuration makes a regular file instead a symlink.

Last edited by USUARIONUEVO; 12-07-2020 at 07:32 PM.
 
Old 12-07-2020, 07:30 PM   #403
ziprun
Member
 
Registered: Apr 2018
Posts: 105

Rep: Reputation: Disabled
Quote:
Originally Posted by USUARIONUEVO View Post
The clock issue ,is a bug under qt5 , i report on -current requests , but at the moment is ignored.


qr5 can get zoneinfo when /etc/localtime is a regular file , thats knowed bug qt5.
I'm sure pat is aware of this bug, but wanted to tackle getting kde5 into the main trunk before tackling any bugs that need to be squashed.
 
1 members found this post helpful.
Old 12-07-2020, 08:19 PM   #404
Jeebizz
Senior Member
 
Registered: May 2004
Distribution: Slackware15.0 64-Bit Desktop, Debian 11 non-free Toshiba Satellite Notebook
Posts: 4,185

Rep: Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378Reputation: 1378
Quote:
Originally Posted by USUARIONUEVO View Post
The clock issue ,is a bug under qt5 , i report on -current requests , but at the moment is ignored.


qr5 cant get zoneinfo when /etc/localtime is a regular file , thats knowed bug qt5.

For some reason i think im in ignored list from pat.

There is the request and the proposed patch from qt developers , for some reason is not under 5.15.2

https://www.linuxquestions.org/quest...ml#post6191974


People having /etc/localtime as a "spected" symlink is cause configure time under plasma ... configure clock , set time zone , and he removes the regular file and do a symlink , the more easy test is re-configure timezone from console , ...and see how configuration makes a regular file instead a symlink.

Quote:
Originally Posted by ziprun View Post
I'm sure pat is aware of this bug, but wanted to tackle getting kde5 into the main trunk before tackling any bugs that need to be squashed.

Ok that answers the question I was about to post - at first I also thought maybe I did something wrong - since I excluded Akonadi - so I did a full install - and still no clock on the panel:

Click image for larger version

Name:	VirtualBox_Slackware_07_12_2020_20_16_27.jpg
Views:	26
Size:	212.1 KB
ID:	34797
 
Old 12-07-2020, 08:40 PM   #405
USUARIONUEVO
Senior Member
 
Registered: Apr 2015
Posts: 2,335

Rep: Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930Reputation: 930
Quote:
Originally Posted by Jeebizz View Post
Ok that answers the question I was about to post - at first I also thought maybe I did something wrong - since I excluded Akonadi - so I did a full install - and still no clock on the panel:

You can fix selecting zoneinfo on plasma clock , you cant see, but click , and see a menu ... select country ..or under ntp autoclock function , plasma then removes regular file /etc/localtime and make a symlink.


or if you want more easy way , remove /etc/localtime , and copy localtime-copied-from , as a "localtime" in same place /etc

some easy ways to fix , but desirable is no interaction of users needed.
 
  


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
LXer: Solus Readies KDE Plasma Edition Testing ISO with Latest KDE Plasma 5.14 Desktop LXer Syndicated Linux News 0 10-25-2018 03:03 PM
LXer: KDE Plasma 5.13 Desktop Reaches End of Life, KDE Plasma 5.14 Arrives October 9 LXer Syndicated Linux News 0 09-15-2018 10:30 PM
KDE plasma touch interface on Debian testing [plasma desctop 5.8] eswues Debian 0 12-11-2016 04:56 PM
LXer: Sebastian Kügler: KDE's Plasma Mobile is running on Plasma 5 and Kubuntu LXer Syndicated Linux News 0 07-26-2015 01:48 AM
[SOLVED] Please tell me how to tell KDE to run plasma-desktop instead of plasma-netbook Kenny_Strawn Linux - Software 7 07-19-2010 07:32 PM

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

All times are GMT -5. The time now is 11:14 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