Repository navigation
Refactor DBus Connection Initialization - #9
Conversation
| try { | ||
| return DBusConnection.getConnection(DBusConnection.DBusBusType.SESSION); | ||
| } catch (RuntimeException e) { | ||
| if ("Cannot Resolve Session Bus Address".equals(e.getMessage())) { |
There was a problem hiding this comment.
This is very prone to unnoticed changes in upstream exception handling. If the message changes, the code stops working.
Can we instead add an explicit (checked) exception to DBusConnection?
There was a problem hiding this comment.
This is not possible, see hypfvieh/dbus-java#128.
This issue is already handled in dbus-java (without a new release), but the changed also needs to find its way into kdewallet.
There was a problem hiding this comment.
Ok. Would you say we can wait with this PR until we get an upstream version without the RuntimeException?
overheadhunter
left a comment
There was a problem hiding this comment.
oh wait, didn't see the pom.xml conflict :D please do a reverse merge first
|
I think we need a new version of secret-service first, don't we? 😃 |
Do we? The suggested change affects KDE only, so...? |
Well, Infeo asked both of us for an update. And as far as I know you @overheadhunter, having secret-service and kdewallet depend on two different versions of dbus-java would lead to two dbus-java jar files within the AppImage and therefore unneccessarily wasted disc space. 😁😛 (sorry, could not hold back that one) I wonder if Maven can manage that, but I think so. |
|
Well, Maven will pull in just one version. So as long as the API didn't change, we should be fine. |
|
I released 1.6.1, which depends on @purejava can you also remove the and I think you have to rebase, too: |
…onExceptions instead
|
That should be it. On solving the merge conflict in the pom I made a mistake and reverted the removed Bintray entries in the pom. That's the reason for the last commit. |
Because you have seen what I did in @overheadhunter or @infeo sorry for the off-topic: Please, let me know if there are any problems with |
Nothing that I am aware of. Does the latest AppImage run? If yes, you should be able to |
|
It builds and starts fine on Arch linux: What is your system @swiesend? |
I second that. Just found an issue in secret-service 1.6.1. @purejava can you revert bumping secret-service dependency? |
Sure. Which one is the right one? Commit 3d5ab97 changed the version from 1.5.0 to 1.6.1. On GitHub, these were the latest versions. On maven central, there are 1.5.0, 1.6.0 and 1.6.1. What's the best one to choose @swiesend? |
|
If there are problem with 1.6.1 we have to go back to 1.5.0. 1.6.0 was an accident.
|
|
|
We'll have a separate PR for the secret-service changes
|
Hm, after reverting the secret-service dependency to 1.5.0, it cannot find the |
because
If two dependencies ( |
Fixes #6