This forum has been archived. All content is frozen. Please use KDE Discuss instead.

how to integrate Firefox into KDE

Tags: firefox, file-picker, places firefox, file-picker, places firefox, file-picker, places
(comma "," separated)
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
asmara wrote:there is a PPA for Kubuntu: https://launchpad.net/~blue-shell/+archive/firefox-kde

First of all I deleted the ad at the bottom of your post. This is against forum policy and normally results in a ban.

Secondly has this ppa not had an update last month despite the glaring glitch in firefox which Debian managed to patch in a couple of days. The latest firefox package is from 12th December 2014 and is therefore to be avoided.


Debian testing
ennon
Registered Member
Posts
12
Karma
0
Hello,

There was a script on

https://bbs.archlinux.org/viewtopic.php?id=137941

that showed how to turn FireFox (and Thunderbird, a modified version should also work
for Chromium) into a good KDE-Activities citizen.

I'd like to post my version of this script somewhere, in case there still is not an official
solution by KDE itself, and I was told that this is a good place to start.

I thought about posting it at

https://userbase.kde.org/Plasma#Hints_and_Tips

but am not authorized to do so because I'm not a member of the group "Utilisateurs".

A sensible workaround would be to post the script here as an attachment, but as I can find
no way to do so, it is perhaps because, quoting :

Attachment permissions are granted on a per forum, per group, or per user basis. The board administrator may not have allowed attachments to be added for the specific forum you are posting in, or perhaps only certain groups can post attachments. Contact the board administrator if you are unsure about why you are unable to add attachments.

Clicking on "Get in touch with the forum moderators and admins " opens

posting.php?mode=post&f=9

that lets me post just another topic .
ennon
Registered Member
Posts
12
Karma
0
Ok, by a suggestion of Hans's let me paste the code here. Once saved in $PATH, for example into ~/bin and adding

export PATH=$HOME/bin:$PATH

to ~/.profile, occurrences of /usr/bin/firefox should be replaced by firefox, for example in ~/.local/share/applications/firefox.desktop

The exact script depends on your synchronization settings: The synchronization of open tabs has to be disabled.
Additionally, this script assumes that all synchronization options except that of passwords are enabled.

Code: Select all
#!/bin/sh

# See https://bbs.archlinux.org/viewtopic.php?id=137941

firefox=$(which 2>/dev/null -a firefox | tail -n 1)
# firefox=/usr/bin/firefox

DEF_PROF_CODE=$( ls $HOME/.mozilla/firefox/ | grep .default )
DEF_PROF="$HOME/.mozilla/firefox/$DEF_PROF_CODE"

ACT_HASH=$( qdbus org.kde.ActivityManager /ActivityManager/Activities CurrentActivity )
ACT_PROF="$HOME/.mozilla/firefox/$ACT_HASH.activity"

if [ ! -d $ACT_PROF ];
  then
  mkdir "$ACT_PROF"

  cd $ACT_PROF
  # symlink directories
  find $DEF_PROF -type d -maxdepth 1 -mindepth 1 -exec ln -s '{}' ./ \;
  # copy files
  find $DEF_PROF -type f -maxdepth 1 -mindepth 1 -exec cp -a '{}' ./ \;

  # passwords not synced
  ln -sf $DEF_PROF/logins.json
  ln -sf $DEF_PROF/key3.db
  # remove previously opened tabs
  rm -rf sessionstore*
  # unlock
  rm -f .parentlock
  rm -f lock
fi

$firefox -profile "$ACT_PROF" "$@"

exit
DeMus
Registered Member
Posts
140
Karma
0
In both Firefox and in Thunderbird get the Noia theme, install and use it and you're done. Looks great and it matches the KDE look perfectly.
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
Noia matches KDE perfectly? I think it looks really tacky.

Much prefer the Gnome theme but there is no accounting for taste ;)


Debian testing
gfurst
Registered Member
Posts
54
Karma
0
OS

Re: how to integrate Firefox into KDE

Fri Jul 17, 2015 10:02 pm
Hey guys, just now I'm seriously **** off at how the file picker for Firefox(iceweasel in my case) is no moronic.
Having several torreting utilities, one for local and some for remote usage, and I have to pick each time from /usr/bin or such which is amazingly annoying.
Has there been any updates on this? I'm aware of some kde-firefox package but its not on my system, currently debian stable.

By the way, there is a kpartsplugin supposedly opens embedded files supporting kpart integration.
gfurst
Registered Member
Posts
54
Karma
0
OS
I bear good news Image
Writing this from Firefox. I'm finally able to experience some decent integration with KDE env.
Thanks to this post for pointing out http://blog.martin-graesslin.com/blog/2013/12/firefox-kde-integration-in-debian-testing/
Its a workaround for those in system where this patch may not be available, like me, Debian Jessie.
Basically I just added the repo, used apt-add-repository instead, so I could get the key properly, then changed the archive to Trusty, which should be more in line with current Jessie.
Combined with kpartsplugin, I'm able to open stuff in Firefox using KDE embedded system, which opens pretty much everything.

I am now able to enjoy a painless Firefox experience in KDE. Cheers!
Now only thing to better that would be a full qt interface to firefox.
User avatar
geoaraujo
Registered Member
Posts
28
Karma
0
OS
Still no luck here.

gfurst wrote:Its a workaround for those in system where this patch may not be available, like me, Debian Jessie.
Basically I just added the repo, used apt-add-repository instead, so I could get the key properly, then changed the archive to Trusty, which should be more in line with current Jessie.


And adding an Ubuntu repository will eventually break your Debian install...


Debian 8.6

KDE 4.14.2
Dell N4050 Intel i5 CPU 2.50GHz 64-bit Integrated Graphics 4GB ram
Acer A4540 AMD Athlon E X2 2.0GHz 64-bit ATI Radeon HD4200 Graphics 4GB ram

TDE R14.0.3
Acer AOD260 Intel Atom N450 1.66GHz 32-bit Integrated Graphics 2GB ram
jinumm
Registered Member
Posts
2
Karma
0
I found it under the name "gtkstyles-qtcurve". It doesn't look as a perfect integration: anyway thanks
akontsevich
Registered Member
Posts
13
Karma
0
Instructions for newest KDE (5.10) and FF (54) versions:
https://askubuntu.com/a/939293/130585
jimmyfletcher
Registered Member
Posts
1
Karma
0
akontsevich wrote:Instructions for newest KDE (5.10) and FF (54) versions:
https://askubuntu.com/a/939293/130585


I was using Firefox 54 and these instructions worked fine. I did not upgrade Firefox further, so there was no problem. But now Firefox 58 has been released and it is being said that 58 is twice as faster than the older versions and I want to go for it. When can I expect Instructions for newest KDE and Firefox 58?
User avatar
toad
Global Moderator
Posts
1258
Karma
7
OS
Lol, I'm on Debian testing and I've got Firefox 52.5.0 so don't hold your breath ;)


Debian testing
User avatar
firef
Registered Member
Posts
25
Karma
0
OS
ennon wrote:
I thought about posting it at https://userbase.kde.org/Plasma#Hints_and_Tips
but am not authorized to do so because I'm not a member of the group "Utilisateurs".


That's how KDE rolls. Spending most time on edit-wars and on banning users right, left and center from contributing, e.g. on KDE-apps.

That's what they're good at: breaking www sites in pursuit of fictitious spammers.
User avatar
firef
Registered Member
Posts
25
Karma
0
OS

Quantum

Tue Jan 01, 2019 5:20 am
In Ffx 64 this no longer works. So Debian will be kinda late to the party again.
User avatar
camerondavit
Registered Member
Posts
14
Karma
0
OS
Wow, It's amazing Conversation. From here I got lots of points that exactly help me. So thanks a lot everyone. :) . Actually I'm newbie in here and I always try to learn new something. :)


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], kesang, Yahoo [Bot]