Bug 442251 - Elisa setting for initial view on startup does not work when using a language other than English
Summary: Elisa setting for initial view on startup does not work when using a language...
Status: RESOLVED FIXED
Alias: None
Product: Elisa
Classification: Applications
Component: general (show other bugs)
Version: 21.08.1
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Matthieu Gallien
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-10 08:32 UTC by LDW
Modified: 2022-06-01 16:29 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
attachment-27067-0.html (1.80 KB, text/html)
2021-09-10 16:41 UTC, LDW
Details
attachment-7682-0.html (1.15 KB, text/html)
2021-09-18 17:24 UTC, LDW
Details
attachment-1632-0.html (1.29 KB, text/html)
2021-09-19 08:52 UTC, LDW
Details
Elisa in a potato-grade VM (290.15 KB, video/webm)
2021-09-21 14:06 UTC, Nagy Tibor
Details
AmericanE.txt (2.52 KB, text/plain)
2021-09-21 16:18 UTC, LDW
Details
BritishE.txt (4.86 KB, text/plain)
2021-09-21 16:18 UTC, LDW
Details
attachment-32490-0.html (1.88 KB, text/html)
2021-09-21 16:30 UTC, LDW
Details
attachment-23943-0.html (2.26 KB, text/html)
2021-10-11 22:59 UTC, LDW
Details

Note You need to log in before you can comment on or make changes to this bug.
Description LDW 2021-09-10 08:32:15 UTC
SUMMARY
A change to the setting in Elisa of the initial view on startup from 'Now Playing' to 'Albums' is not activated after closing and restarting Elisa (or after re-booting the system). 

STEPS TO REPRODUCE
1. Select 'Configure Elisa' (from menu)
2. Change 'Initial view on startup' to Albums
3. Apply, close and restart Elisa

OBSERVED RESULT
Initial view remains unchanged ('Now Playing')

EXPECTED RESULT
Initial view set to 'Albums'

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: KDE Neon 5.22
(available in About System)
KDE Plasma Version: 5.22.5
KDE Frameworks Version: 5.85.0
Qt Version: 5.15.3

ADDITIONAL INFORMATION
Elisa is a great music application. Thanks.
Comment 1 Nate Graham 2021-09-10 14:14:56 UTC
Works for me. Can you sent the output of running `grep InitialView  ~/.config/elisarc` in a terminal window?
Comment 2 LDW 2021-09-10 16:41:34 UTC
Created attachment 141448 [details]
attachment-27067-0.html

The entry in elisarc reads "InitialView=AllAlbums".

However, whichever setting option is selected (and confirmed it features in elisarc), Elisa (21.08.1) still loads with the "Now Playing" view.

I have deleted the elisarc file and removed and reinstalled elisa using Discover, but there is no change. I am using m4a music files - I converted a few to ogg using FFaudioConverter, but the initial view loaded is still "Now Playing".

Thanks




10 Sept 2021, 15:14 by bugzilla_noreply@kde.org:

> https://bugs.kde.org/show_bug.cgi?id=442251
>
> Nate Graham <nate@kde.org> changed:
>
>  What    |Removed                     |Added
> ----------------------------------------------------------------------------
>  Status|REPORTED                    |NEEDSINFO
>  CC|                            |nate@kde.org
>  Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Nate Graham <nate@kde.org> ---
> Works for me. Can you sent the output of running `grep InitialView 
> ~/.config/elisarc` in a terminal window?
>
> -- 
> You are receiving this mail because:
> You reported the bug.
>
Comment 3 Nate Graham 2021-09-14 16:02:52 UTC
Huh, I guess it's not that.

Are you using Elisa in a language that is not English, by any chance? If so, does it start working if you temporarily switch to English?
Comment 4 LDW 2021-09-18 17:24:39 UTC
Created attachment 141682 [details]
attachment-7682-0.html

Well I am using British English, but I changed to American English, logged in again, and it works (the initial view is Albums). 

Looks like you are on the right track.






14 Sept 2021, 17:02 by bugzilla_noreply@kde.org:

> https://bugs.kde.org/show_bug.cgi?id=442251
>
> --- Comment #3 from Nate Graham <nate@kde.org> ---
> Huh, I guess it's not that.
>
> Are you using Elisa in a language that is not English, by any chance? If so,
> does it start working if you temporarily switch to English?
>
> -- 
> You are receiving this mail because:
> You reported the bug.
>
Comment 5 Nate Graham 2021-09-18 18:34:40 UTC
OK, I probably know what the issue is then: we're comparing translated strings with literal strings. This has been a problem in the past with other things too. It's a common error. I'll try to block out some time to investigate more deeply.
Comment 6 LDW 2021-09-19 08:52:00 UTC
Created attachment 141696 [details]
attachment-1632-0.html

Thanks!




18 Sept 2021, 19:34 by bugzilla_noreply@kde.org:

> https://bugs.kde.org/show_bug.cgi?id=442251
>
> Nate Graham <nate@kde.org> changed:
>
>  What    |Removed                     |Added
> ----------------------------------------------------------------------------
>  Resolution|WAITINGFORINFO              |---
>  Status|NEEDSINFO                   |REPORTED
>
> --- Comment #5 from Nate Graham <nate@kde.org> ---
> OK, I probably know what the issue is then: we're comparing translated strings
> with literal strings. This has been a problem in the past with other things
> too. It's a common error. I'll try to block out some time to investigate more
> deeply.
>
> -- 
> You are receiving this mail because:
> You reported the bug.
>
Comment 7 Nate Graham 2021-09-20 22:07:53 UTC
Hmm, no luck finding the bug yet. It isn't something obvious (at least not to me).
Comment 8 Nate Graham 2021-09-20 22:10:00 UTC
FWIW I can't reproduce the issue when I switch to British English and restart my session.
Comment 9 Nagy Tibor 2021-09-21 14:06:51 UTC
Created attachment 141767 [details]
Elisa in a potato-grade VM

I can reproduce it on neon with German as the system language. The problem is not that it cannot set the initial view to the correct page. The problem is after setting the view to the right page on startup, it immediately resets the view to the Now Playing page after a fraction of a moment. You can see this in action if you run Elisa in a potato-grade VM.
Comment 10 LDW 2021-09-21 16:18:59 UTC
Created attachment 141771 [details]
AmericanE.txt

I attach two text files which might help - transcripts of running Elisa from a terminal, one with American English as the default language, the other with British English as default. In both instances Elisa was started with Now Playing as the initial view, and once loaded the initial view setting was changed to Albums, and then Elisa was exited. I don't know enough to understand much of it (apart from noticing that the BritishE file is much longer than the AmericanE), but these may be of use.


10 Sept 2021, 15:14 by bugzilla_noreply@kde.org:

> https://bugs.kde.org/show_bug.cgi?id=442251
>
> Nate Graham <nate@kde.org> changed:
>
>  What    |Removed                     |Added
> ----------------------------------------------------------------------------
>  Status|REPORTED                    |NEEDSINFO
>  CC|                            |nate@kde.org
>  Resolution|---                         |WAITINGFORINFO
>
> --- Comment #1 from Nate Graham <nate@kde.org> ---
> Works for me. Can you sent the output of running `grep InitialView 
> ~/.config/elisarc` in a terminal window?
>
> -- 
> You are receiving this mail because:
> You reported the bug.
>
Comment 11 LDW 2021-09-21 16:18:59 UTC
Created attachment 141772 [details]
BritishE.txt
Comment 12 LDW 2021-09-21 16:30:06 UTC
Created attachment 141773 [details]
attachment-32490-0.html

Actually now you have pointed out this behaviour, I can see that when Elisa is started, Albums is highlighted for a split second and then the highlight changes to Now Playing. It's so quick that you don't see it unless you are looking for it (on my 6 year old maybe approaching potato-grade thinkpad anyway).




21 Sept 2021, 15:06 by bugzilla_noreply@kde.org:

> https://bugs.kde.org/show_bug.cgi?id=442251
>
> Nagy Tibor <xnagytibor@gmail.com> changed:
>
>  What    |Removed                     |Added
> ----------------------------------------------------------------------------
>  CC|                            |xnagytibor@gmail.com
>
> --- Comment #9 from Nagy Tibor <xnagytibor@gmail.com> ---
> Created attachment 141767 [details]
>  --> https://bugs.kde.org/attachment.cgi?id=141767&action=edit
> Elisa in a potato-grade VM
>
> I can reproduce it on neon with German as the system language. The problem is
> not that it cannot set the initial view to the correct page. The problem is
> after setting the view to the right page on startup, it immediately resets the
> view to the Now Playing page after a fraction of a moment. You can see this in
> action if you run Elisa in a potato-grade VM.
>
> -- 
> You are receiving this mail because:
> You reported the bug.
>
Comment 13 Nagy Tibor 2021-09-22 10:54:59 UTC
A quicker repro I found that doesn't require changing the system language and doing a session restart:

(export LANG=en_GB.UTF-8; elisa)
(export LANG=en_US.UTF-8; elisa)
Comment 14 Nate Graham 2021-10-04 14:15:41 UTC
(In reply to Nagy Tibor from comment #13)
> A quicker repro I found that doesn't require changing the system language
> and doing a session restart:
> 
> (export LANG=en_GB.UTF-8; elisa)
> (export LANG=en_US.UTF-8; elisa)
Hmm, that still works for me. :/
Comment 15 LDW 2021-10-11 22:59:33 UTC
Created attachment 142347 [details]
attachment-23943-0.html

For information, this bug is also present in the flatpak version of Elisa (21.08.2) when installed on Ubuntu 20.04 LTS.



21 Sept 2021, 17:29 by ldwatson@tutanota.com:

> Actually now you have pointed out this behaviour, I can see that when Elisa is started, Albums is highlighted for a split second and then the highlight changes to Now Playing. It's so quick that you don't see it unless you are looking for it (on my 6 year old maybe approaching potato-grade thinkpad anyway).
>
>
>
>
> 21 Sept 2021, 15:06 by bugzilla_noreply@kde.org:
>
>> https://bugs.kde.org/show_bug.cgi?id=442251
>>
>> Nagy Tibor <xnagytibor@gmail.com> changed:
>>
>> What    |Removed                     |Added
>> ----------------------------------------------------------------------------
>> CC|                            |xnagytibor@gmail.com
>>
>> --- Comment #9 from Nagy Tibor <xnagytibor@gmail.com> ---
>> Created attachment 141767 [details]
>> --> https://bugs.kde.org/attachment.cgi?id=141767&action=edit
>> Elisa in a potato-grade VM
>>
>> I can reproduce it on neon with German as the system language. The problem is
>> not that it cannot set the initial view to the correct page. The problem is
>> after setting the view to the right page on startup, it immediately resets the
>> view to the Now Playing page after a fraction of a moment. You can see this in
>> action if you run Elisa in a potato-grade VM.
>>
>> -- 
>> You are receiving this mail because:
>> You reported the bug.
>>
>
>
Comment 16 Nate Graham 2022-04-21 16:15:23 UTC
I think we have an off-by-one issue here somewhere with how the initial view index is saved and restored.
Comment 17 Firlaev-Hans 2022-05-29 15:49:34 UTC
I cannot reproduce this with the latest Elisa version (either 22.04 or master) on a german system.

What I am seeing instead is that while the correct page is displayed on startup, nothing can be played / added to the playlist from that page.
For example, if I set the start page to album view, then I cannot hit play on any album (nothing happens, no terminal output). Elisa also gets somewhat sluggish at that point. Even switching to a different view and back doesn't fix this, however, if I click a play button in a different view (e. g. artists), THEN go back to album view, the album play buttons work again.
Comment 18 Nate Graham 2022-06-01 16:29:31 UTC
That's in Bug 454032. Seems like the manifestation has changed. Let's close this and continue there.