LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-22-2018, 06:57 PM   #1
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Rep: Reputation: 185Reputation: 185
Falkon web browser now in the BLFS book


The Falkon web browser is now in the development version of the BLFS book. This browser was formerly known as QupZilla. It is now part of KDE but can be installed without KDE. It is considered to be a "light-weight" browser, but it requires the "heavy-weight" QtWebEngine backend. Anyway, I consider it to be a very nice browser with considerable features and configurability.

I mostly wanted to review some things about Falkon and QtWebEngine not yet mentioned, or obvious, or maybe even wrong in the BLFS book at this time...
1. PulseAudio: QtWebEngine does NOT require PulseAudio. PulseAudio and ALSA are both listed in the configuration help as "auto". I installed QtWebEngine and Falkon with only ALSA installed.

2. HTML5/MP4 Video: In order for Falkon to play HTML5/MP4 video embedded in web pages, QtWebEngine must be built with proprietary codecs enabled. The qmake option to do that is -webengine-proprietary-codecs (see the configuration help).

3. Use System Libraries: QtWebEngine can be configured to use various system libraries and packages instead of internal versions shipped with it (see the configuration help). Most of those are detected on the system automatically and used. But I found that I had to specify two of them (icu, ffmpeg) or the QtWebEngine configuration output would report "no" for finding those. And some others QtWebEngine would not detect even though I configured it to use them (libvpx, libxml2, libxslt). I was not able to make QtWebEngine use those system libraries. And finally, I found that specifying for QtWebEngine to use the system icu would stop the build, so I built QtWebEngine without specifying the system icu.

4. KDE Frameworks 5: The book correctly states that Falkon can be installed without KDE being present on the system, but it sort of implies that KDE Frameworks 5 has to be installed. Fact is, only ki18n from that large KF5 collection of packages has to be installed in order for Falkon to build and work. As the book says, KWallet is sacrificed doing this.

5. Spell Checking: Spell checking is available in Falkon. Dictionaries need to be in the format that Chromium uses (with file extension .bdic). QtWebEngine comes with a utility to convert Hunspell dictionaries (.dic) to that format. Make sure that the created .bdic dictionary file is in one of the directories shown in Falkon Preferences. This is how I set this up...
Code:
sudo mkdir -pv /opt/qt5/qtwebengine_dictionaries             &&
sudo /opt/qt5/bin/qwebengine_convert_dict                    \
     /usr/lib/libreoffice/share/extensions/dict-en/en_US.dic \
     /opt/qt5/qtwebengine_dictionaries/en-US.bdic            &&
sudo chmod 644 /opt/qt5/qtwebengine_dictionaries/en-US.bdic
6. Saving Bookmarks: Backup Falkon's bookmarks by saving them to an html file in the usual way using the Organize Bookmarks applet in the Falkon toolbar. But that does not backup the bookmarks menu icons. To save those too, manually backup browsedata.db in ~/.config/falkon/profiles/default. Restore the bookmarks and icons by importing the saved bookmarks.html file using the Organize Bookmarks applet. Then manually copy the saved browsedata.db file to ~/.config/falkon/profiles/default. The other conspicuous file there is bookmarks.json, but it will be recreated when the bookmarks are restored with the Organize Bookmarks applet and does not affect this icon matter.
I hope people here will try this new incarnation of QupZilla. The components mentioned above are easy to compile and install, but brace for a long building time (thanks to QtWebEngine). The browser is snappy, looks good, renders web pages well, has a little collection of extensions, and has the usual and expected widgets and utilities for managing caches, cookies, downloads, bookmarks, etc.

Last edited by stoat; 08-23-2018 at 07:03 AM.
 
Old 08-24-2018, 11:17 AM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
I found the libreoffice dictionary's were pretty much rubbish ( for en_GB ) but if you have the aspell dictionary's installed you can use that to create a much better dictionary like so
Code:
mkdir /tmp/tdict
cd /tmp/tdict
aspell -d en dump master | aspell -l en expand > en_GB.dic
touch en_GB.aff
qwebengine_convert_dict en_GB.dic  en-GB.bdic

sudo cp en-GB.bdic /usr/share/qt5/qtwebengine_dictionaries
Obviously change the locations of libreoffice and qtwebengine to suit your setup.

Last edited by Keith Hedger; 08-24-2018 at 11:30 AM. Reason: extra info
 
Old 08-24-2018, 11:28 AM   #3
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Extra dictionaries can be downloaded from here:
http://ftp.gnu.org/gnu/aspell/dict/
 
Old 08-24-2018, 05:06 PM   #4
jr_bob_dobbs
Member
 
Registered: Mar 2009
Distribution: Bedrock, Devuan, Slackware, Linux From Scratch, Void
Posts: 651
Blog Entries: 135

Rep: Reputation: 188Reputation: 188
This is good to hear. Been using it (a version that is still called qupzilla) in my BLFS 8.1 system as my javoids-off no-cookies browser and it works well. I look forward to seeing it in the 8.3 book.
 
Old 04-26-2019, 05:32 PM   #5
stoat
Member
 
Registered: May 2007
Distribution: LFS
Posts: 628

Original Poster
Rep: Reputation: 185Reputation: 185
UPDATE: I'm still using Falkon as my Internet browser (along with Vivaldi sometimes). I wanted to add a tidbit here that I learned using Falkon.

It's more about the favicons in the bookmarks menu which I have mentioned before regarding how to get them to show up. I have also mentioned before that the menu icons are stored in ~/.config/falkon/profiles/default/browsedata.db and how that file can be manually backed up whenever the bookmarks are saved via "Organize Bookmarks" in the "Tools" menu. Remember, merely backing up the bookmarks will not save all those icons (possibly hundreds of them). And restoring the bookmarks (say, to a re-install of Falkon) will not restore the menu icons unless that browsedata.db file is also copied back to the config folder.

Here's the thing though. That browsedata.db file gradually grows in size as it accumulates favicons from every site ever visited. It can get big eventually. The "Tools" menu does have an applet to "Optimize database" which seems to reduce its size a little, but it still grows bigger all the time to many MBs.

I discovered that I can manually look through browsedata.db and edit it with SQLite. It didn't take long to produce a tiny new browsedata.db file that has only the icons in my bookmarks menu, and I saved that file to be used to restore the icons when the bookmarks are restored or to replace a giant bloated browsedata.db file.

Maybe someday Falkon will provide an applet to manage the menu icons. Until then, manually editing and occasionally maintaining browsedata.db appears to be safely possible.

P.S.: That browsedata.db file also contains a table named "history" and also contributes to bloat. But that table gets completely cleared out by the "Clear recent history" applet in "Tools".

P.P.S.: A new version of Falkon was released a few days ago.

Last edited by stoat; 04-26-2019 at 05:35 PM.
 
Old 05-09-2019, 01:32 AM   #6
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
The devs need to fix the instructions for preparation.

Code:
rm -rf po/
Needs to be...

Code:
rm -rf po*
Or it will complain about the missing KDE libs and pyside. I really hope that crap isn't a sign of things to come or I'll dump Falkon. I would prefer it to stay a QT only application. Also, I still think saving passwords works without kwallet if you have libgnome-keyring installed.

Note for libgnome-keyring: It needs GCR + Gnome Keyring, and it's vala bindings are broken, so the configure looks like..

Code:
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --disable-static --disable-vala
Most of the tests pass, and it's used by a few other things.

Last edited by Luridis; 05-09-2019 at 01:36 AM.
 
Old 05-09-2019, 05:07 AM   #7
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Don't know where you are getting your build instructions as falkon uses cmake NOT configure.
FYI version 3.1.0 builds fine with just ki18n-5.49.0 as a dep ( and cmake and QT web engine obviously ).
Version 3.1.0 is available here:
https://download.kde.org/stable/falk.../-3.1.0.tar.xz
Build instructions:
Code:
cd  build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=64 -DUSE_QT5=TRUE -DCMAKE_PREFIX_PATH=/usr/lib64/qt5/cmake -DCMAKE_BUILD_TYPE=Release -Wno-dev ..
You may need to adjust CMAKE_PREFIX_PATH and/or CMAKE_INSTALL_PREFIX and/or LIB_SUFFIX.
 
Old 05-09-2019, 02:38 PM   #8
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by Keith Hedger View Post
Don't know where you are getting your build instructions as falkon uses cmake NOT configure.
FYI version 3.1.0 builds fine with just ki18n-5.49.0 as a dep ( and cmake and QT web engine obviously ).
Version 3.1.0 is available here: You may need to adjust CMAKE_PREFIX_PATH and/or CMAKE_INSTALL_PREFIX and/or LIB_SUFFIX.
Are you talking to me? That configure was for libgnome-keyring, which can be used in place of kwallet. That package isn't in the book, so I put it up there.
 
Old 05-09-2019, 03:05 PM   #9
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Sorry but the as the thread was about falkon I assumed you was talking about falkon, cross purposes!
 
Old 05-11-2019, 09:50 AM   #10
Luridis
Member
 
Registered: Mar 2014
Location: Texas
Distribution: LFS 9.0 Custom, Merged Usr, Linux 4.19.x
Posts: 616

Rep: Reputation: 167Reputation: 167
Quote:
Originally Posted by Keith Hedger View Post
Sorry but the as the thread was about falkon I assumed you was talking about falkon, cross purposes!
Yes, and my point was that Falkon can use libgnome-keyring in place of kwallet. Also the instructions need to change to remove all of the po files. (rm -rf po*) LOL, Were you reading half of my post or was I just unclear?
 
Old 05-11-2019, 11:00 AM   #11
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,151

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
50/50
 
  


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
[SOLVED] Falkon browser [ex Qupzilla] for Slackware? Lysander666 Slackware 29 02-28-2019 12:25 PM
Guess what? You can have even the DevTools (Web Inspector) like in the Chromium, in the Falkon web-browser from Eric's latest Plasma5 Darth Vader Slackware 10 04-25-2018 12:52 PM
Vivaldi web browser for BLFS stoat Linux From Scratch 5 03-19-2018 05:17 PM
links in LFS 8.1 book go out, in BLFS book they do not jr_bob_dobbs Linux From Scratch 0 01-06-2018 01:44 AM
New BLFS book LQ496873 Linux From Scratch 0 03-05-2006 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 04:30 PM.

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