Custom lumina-startup quotes


#1

In this, now closed, thread Lumina Startup Quotes

in attempting to change the start-up quotes, this thread is to try and either getting a text file to be read, or link to a script.

I have tried the following;

1: linking directly to fortune;
sudo ln -s /usr/bin/fortune /usr/local/bin/lumina-motd

this does nothing, other than use the original quotes

2: creating a script (which works in a zsh teminal"
ls -laFR /usr/local/bin/lumina-motd
-rwxr–r-- 1 root wheel 42 Oct 14 17:04 /usr/local/bin/lumina-motd*

#!/bin/sh

echo “startup quote”
fortune
this echoes the whole script

Not sure

edit:
3:
#!/bin/sh

echo “startup quote\n”
fortune

this uses original startup quotes

4:
#!/bin/sh

echo “$fortune”
fortune

this uses original startup quotes


#2
Currently, the quotes are embedded in one of:

./lumina-desktop-unified/BootSplash.cpp
./lumina-desktop/BootSplash.cpp

not sure which one is currently used.

However, they are different in their display logic as follows:

$ diff BootSplash.cpp ../lumina-desktop-unified/BootSplash.cpp
10,11d9
<   this->setMinimumHeight( this->fontMetrics().height() * 12);
<   this->setMinimumWidth( this->minimumHeight() * 1.5);
13a12
>   this->show();
38,41c37
<     QSettings sessionsettings("lumina-desktop","sessionsettings");
<     bool disablequotes = sessionsettings.value("DisableQuotes").toBool();
<     if (disablequotes == false){
<      int index = qrand()%46; //Make sure this number matches the length of the case below (max value +1)
---
>     int index = qrand()%46; //Make sure this number matches the length of the case below (max value +1)
136c132
<   } // end else statement for disabling quotes
---
> 

And since the code seems to always follow through to the case statement below this diff, it is either logic in the if / else if /else or the name of the actual file involved.

I don’t have a build/stage system set up so I can’t test, but it’s in one of these two files somewhere around the logic of the case statement.