Guess what? You can have even the DevTools (Web Inspector) like in the Chromium, in the Falkon web-browser from Eric's latest Plasma5
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Guess what? You can have even the DevTools (Web Inspector) like in the Chromium, in the Falkon web-browser from Eric's latest Plasma5
Well, for activating the DevTools you will need a small patch
Code:
diff -urN falkon-3.0.0.orig/src/main/main.cpp falkon-3.0.0/src/main/main.cpp
--- falkon-3.0.0.orig/src/main/main.cpp 2018-02-27 15:56:58.000000000 +0200
+++ falkon-3.0.0/src/main/main.cpp 2018-03-19 01:28:48.131857137 +0200
@@ -133,6 +133,17 @@
signal(SIGSEGV, falkon_signal_handler);
#endif
+ // For the Chromium DevTools
+ QTcpSocket* socket = new QTcpSocket();
+
+ if (socket->bind()) {
+ quint16 port = socket->localPort();
+
+ qputenv("QTWEBENGINE_REMOTE_DEBUGGING", QByteArray::number(port));
+
+ socket->close();
+ }
+
// Hack to fix QT_STYLE_OVERRIDE with QProxyStyle
const QByteArray style = qgetenv("QT_STYLE_OVERRIDE");
if (!style.isEmpty()) {
This patch of main() function finds a free port in localhost and set it in the environment variable QTWEBENGINE_REMOTE_DEBUGGING, then the magic will appear.
Tested by me and works very nice; and the Falkon will became a nice full featured modern web-browser, usable even for web-development.
Before to patch and rebuild the Falkon, you can test the things exporting that variable, i.e. executing in a console
Code:
QTWEBENGINE_REMOTE_DEBUGGING=32768 falkon
Then in whatever page you can use the well known: CTRL + SHIFT + I
----------------------------------------
After all, the Falkon is something similar (now) with Chromium 56, but with Qt5 interface.
PS. Please do not send me to KDE upstream, I have no enough patience to deal with those arrogant people.
PS2. Same patch works also in the Falkon's original, aka QupZilla 2.2.6, see the attached screenshot.
Last edited by Darth Vader; 03-19-2018 at 08:17 PM.
PS. Please do not send me to KDE upstream, I have no enough patience to deal with those arrogant people.
Please do forward this patch to the Falkon developer. I will not apply a patch for a single user, just because you don't want to send it upstream. I am not Fedora or Debian who patch the hell out of their packages with all kinds of random user-contributed shit.
Typical. Just after posting that, I found it in applications-extra. Great!
It's always a good idea to scan my 'ktown' repository's ChangeLog.txt for added packages, falkon is not the only one.
Alternatively, if you have slackpkg+ installed and connfigured, run "slackpkg update ; slackpkg install ktown" to get all the new packages you did not have installed yet.
Please do forward this patch to the Falkon developer. I will not apply a patch for a single user, just because you don't want to send it upstream. I am not Fedora or Debian who patch the hell out of their packages with all kinds of random user-contributed shit.
Master Eric-wan Kenobi, please take a step back and breathe. Nope, I do not ask(ed) you personally to include this patch.
Did it looks like one of my "campaigns" as you known, this particular thread where I posted some information and a few lines patch, then I leaved it without a reply for over a month?
Or maybe it was just informal about a "hidden" useful feature of Falkon (and QupZilla), and in a moment of enthusiasm, it can be considered even just some "random user-contributed shit" to the community knowledge base?
In other hand, I love how you know to motivate the people to contribute back something, even if is about a little patch like is the subject of this thread.
Last edited by Darth Vader; 04-25-2018 at 06:37 AM.
Unfortunatelly, the new trend of the javascript coin-miners used by random sites instead of ads, forced me to improve my abilities to read the web pages source code, then to customize the adblock lists.
That's why I think having a working web inspector is very useful even for non web developers.
Last edited by ZhaoLin1457; 04-25-2018 at 06:51 AM.
Master Eric-wan Kenobi, please take a step back and breathe. Nope, I do not ask(ed) you personally to include this patch.
Did it looks like one of my "campaigns" as you known, this particular thread where I posted some information and a few lines patch, then I leaved it without a reply for over a month?
I did not reply, until you posted "Maybe if we ask nice Eric, he will add this patch for Falkon... But I think more people will ask for, more chances are Eric to add this a bit unconventional patch"...
The OP describe in the phrase quoted by you something in an uncertain future. Along the lines:
If there is a future general interest, maybe you will accept this patch in future, with some diplomacy from the users part.
However, maybe because I am not an English native speaker, looks I missing something:
I does seem you are missing the point, yes. And posts addressing me directly by calling me by name, containing lots of capital letters and colored text are immediately annoying, so my reactions to posts like that will usually be colored too.
Quote:
Isn't the KDE itself some random user-contributed shit?
KDE is part of Slackware, so not really user-contributed. Whether it is shit or not, is a matter of personal preference.
Plasma5 (successor to KDE) is lined up for inclusion into Slackware 15, so it is not completely randomly contributed. Whether it is shit, is again a matter of personal preference.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.