On 06/03/2016 08:47, Bruce Dubbs wrote:
> Pierre Labastie wrote:
>> On 05/03/2016 23:46, Bruce Dubbs wrote:
> 
>>> I ran startx with
>>>
>>> ck="ck-launch-session dbus-launch --exit-with-session"
>>> exec $ck /opt/lxqt/bin/startlxqt
>>>
>>> and the system came up.  The only problem now is that there is no logout
>>> option that I can find :(
>>>
>>> Should that be in the main menu?
> 
>> It is not in the main menu for me. What I do [Fernando's recipe IIRC]:
>> - Type alt-F2 (brings up a small window to enter a command)
>> - that window has a button on the right side, which brings up the exit menu.
> 
> Excellent.  That works for me too.  Another excellent find by Fernando.
> 
>> Certainly, that could be put in the main menu, but I did not bother to see 
>> how.
> 
> That would be nice.  I do see a lxqt-logout.desktop file
> 
> Below are are in my file.  I don't think they should be.
> 
> Binary file
> /tmp/lxqt-session/lxqt-session-0.10.0/lxqt-leave/translations/lxqt-logout_el.desktop
> matches
> Binary file
> /tmp/lxqt-session/lxqt-session-0.10.0/lxqt-leave/translations/lxqt-logout_hu.desktop
> matches
> Name[it]=Chiudi sessione
> Comment[it]=Chiudere la sessione attuale
> Binary file
> /tmp/lxqt-session/lxqt-session-0.10.0/lxqt-leave/translations/lxqt-logout_ja.desktop
> matches
> Name[pt]=Sair
> Binary file
> /tmp/lxqt-session/lxqt-session-0.10.0/lxqt-leave/translations/lxqt-logout_pt.desktop
> matches
> Binary file
> /tmp/lxqt-session/lxqt-session-0.10.0/lxqt-leave/translations/lxqt-logout_ru.desktop
> matches
> 
Looks like  grep-2.23 stroke again... I guess there are UTF-8 chars in those
files. My locale is fr_FR.UTF-8, and I have the same issues with the .desktop
files.

> Searching some more, all the lxqt .desktop files seem to have these Binary
> lines.  I was able to go to
> 
> cd /opt/lxqt/share/applications/
> sed -i /^Binary/d *
> 
> And I now have a lot more menu entries.  In the main menu, there is a blank
> line with a > at the end.  This opens up to several logout options.  It's a
> little late here, so I will try to figure out why the .desktop files are being
> corrupted tomorrow and how to get that blank menu line to display properly.

From the logs, I see (for example in pcmanfm-qt):
[ 84%] Generating pcmanfm-qt.desktop
Then in the source tree, in the file cmake/LXQtTranslateDesktop.cmake:
----------------
[...]

set(_pattern "'\\[.*]\\s*='")
        if (_translations)
            add_custom_command(OUTPUT ${_outFile}
                COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile}
                COMMAND grep -h ${_pattern} ${_translations} >> ${_outFile}
                COMMENT "Generating ${_fileName}${_fileExt}"
            )
[...]
---------------
I tried "sed 's/grep/grep -a/' -i cmake/LXQtTranslateDesktop.cmake"
and rebuilt pcmanfm-qt, and bingo: pcmanfm-qt is now in the "accessories" 
submenu.

Guess I have to try again building LXQt with the above sed for all packages
generating .desktop files...

Regards
Pierre
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to