You are not logged in.

#1 2014-01-21 13:15:57

Caldazar
Member
Registered: 2012-06-21
Posts: 38

[solved] qdbus: command not found => Netbeans can't connect to KWallet

I had a problem with Netbeans using its fallback keyring instead of KWallet.
My research showed that this happened because Netbeans wasn't able to use qdbus

exception thrown while invoking the command "[qdbus, org.kde.kwalletd, /modules/kwalletd, org.kde.KWallet.isEnabled]"

I tried to run qdbus with

qdbus org.kde.kwin /KWin supportInformation

Same outcome; qdbus: command not found.

Searching for qdbus, I found it in /usr/lib/qt4/bin which obviously isn't part of $PATH.

I "solved" the issue by creating a softlink in /usr/bin/

cd /usr/bin && sudo ln -s /usr/lib/qt4/bin/qdbus qdbus

It works, both the KWin command as well as Netbean's KWallet integration, but is that how it should be done?
Haven't I rather a package missing, like qt5 or something?
Or is my standard "throw softlinks at the problem"-procedure alright here?

Last edited by Caldazar (2014-01-25 20:55:02)


4.4.11-1-lts #1 SMP Thu May 19 21:03:24 CEST 2016 x86_64 GNU/Linux
KDE
AMD Phenom II X4 960T - AMD Radeon HD 6670 with Catalyst - 24GB RAM

Offline

#2 2014-01-21 13:42:40

ilsensine
Member
Registered: 2013-03-26
Posts: 32

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

The qdbus symlink is installed by the qtchooser package.

Offline

#3 2014-01-21 14:42:51

ChemBro
Member
Registered: 2008-10-22
Posts: 704

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

Try "qdbus-qt4" instead of "qdbus".

And I don't know either what you have to do with qt5 and qdbus.

Offline

#4 2014-01-21 14:57:00

Caldazar
Member
Registered: 2012-06-21
Posts: 38

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

Thanks! That's better although it doesn't work out of the box either.

qtchooser apparently sends the applications to '/usr/lib/qt/bin/qdbus' which doesn't exist, Arch uses /usr/lib/qt4' instead

qdbus: could not exec '/usr/lib/qt/bin/qdbus': No such file or directory

So I had to link those too.

sudo ln -s /usr/lib/qt4 /usr/lib/qt

I don't know whether that's a problem with qtchooser or rather with some of my environment variables being wrong.

But anyways, linking the directories 'qt' to 'qt4' makes a whole lot more sense to me than micromanaging the paths of single binaries or libraries.

P.S. @ChemBro
Yes, using qdbus-qt4 seems to work with commands I have control over but telling applications like Netbeans to use that is a different beast, at least from a user-perspective.
Maybe the packagers can do something about that, but I don't know.

Last edited by Caldazar (2014-01-21 15:03:39)


4.4.11-1-lts #1 SMP Thu May 19 21:03:24 CEST 2016 x86_64 GNU/Linux
KDE
AMD Phenom II X4 960T - AMD Radeon HD 6670 with Catalyst - 24GB RAM

Offline

#5 2014-01-24 16:14:34

AntAntAnt
Member
Registered: 2012-12-28
Posts: 11

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

I have the same problem here.
Has a bug been filled about that?

Offline

#6 2014-01-24 16:39:29

AntAntAnt
Member
Registered: 2012-12-28
Posts: 11

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

By the way I worked around the issue by adding this line at the beginning of /usr/bin/netbeans:

export PATH=$PATH:/usr/lib/qt4/bin/

Offline

#7 2014-01-24 17:06:22

ilsensine
Member
Registered: 2013-03-26
Posts: 32

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

qtchooser defaults to qt5 unless QT_SELECT is set (yes it could be smarter than that). The default qt version can be changed using the symlink /etc/xdg/qtchooser/default.conf. For example:

ln -sf /etc/xdg/qtchooser/4.conf /etc/xdg/qtchooser/default.conf

Last edited by ilsensine (2014-01-24 17:06:51)

Offline

#8 2014-01-24 18:51:07

AntAntAnt
Member
Registered: 2012-12-28
Posts: 11

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

Thanks, that's a better fix than modifying the netbeans script.

Offline

#9 2014-01-24 19:04:12

AntAntAnt
Member
Registered: 2012-12-28
Posts: 11

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

I updated the wiki page accordingly: https://wiki.archlinux.org/index.php/Ne … th_kwallet

Offline

#10 2014-01-25 20:54:34

Caldazar
Member
Registered: 2012-06-21
Posts: 38

Re: [solved] qdbus: command not found => Netbeans can't connect to KWallet

Ok, so this is a QT problem / inconvenience which is actually covered in the Wiki.
I just wasn't able to connect the dots because I searched for "qdbus" which didn't return anything useful.

Anyway, now that we have solved this issue in five different ways, I think this thread has earned its "solved" tag.

Thank you all for the help!


4.4.11-1-lts #1 SMP Thu May 19 21:03:24 CEST 2016 x86_64 GNU/Linux
KDE
AMD Phenom II X4 960T - AMD Radeon HD 6670 with Catalyst - 24GB RAM

Offline

Board footer

Powered by FluxBB