Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate the D-Bus adaptor class on the fly #7523

Merged
merged 1 commit into from
Mar 13, 2022
Merged

Generate the D-Bus adaptor class on the fly #7523

merged 1 commit into from
Mar 13, 2022

Conversation

yan12125
Copy link
Contributor

That prevents mismatches between the adaptor class and the D-Bus
definition file.

Note that this is a backward-incompatible change. For example, the
command to lock all databases is changed from

dbus-send --session --print-reply --dest=org.keepassxc.KeePassXC.MainWindow --type=method_call /keepassxc org.keepassxc.MainWindow.lockAllDatabases

to

dbus-send --session --print-reply --dest=org.keepassxc.KeePassXC.MainWindow --type=method_call /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases

Fixes: #5355

Screenshots

N/A

Testing strategy

Manually with dbus-send commands mentioned in the commit message

Type of change

  • ✅ Bug fix (non-breaking change that fixes an issue)
  • ✅ Breaking change (causes existing functionality to change)

Copy link
Member

@phoerious phoerious left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@droidmonkey Do we want to merge this into 2.7 oder defer to 2.8?

@droidmonkey
Copy link
Member

We can do this now, just need to add to changelog that we are now properly using the org.keepassxc.KeePassXC namespace on our dbus interface.

Also need to test that, but not to hard to do

@yan12125
Copy link
Contributor Author

Hmm, should I rebase this to 2.7?

@droidmonkey
Copy link
Member

droidmonkey commented Mar 12, 2022

Yes please. Tested this and it works perfectly.

That prevents mismatches between the adaptor class and the D-Bus
definition file.

Note that this is a backward-incompatible change. For example, the
command to lock all databases is changed from

> dbus-send --session --print-reply --dest=org.keepassxc.KeePassXC.MainWindow --type=method_call /keepassxc org.keepassxc.MainWindow.lockAllDatabases

to

> dbus-send --session --print-reply --dest=org.keepassxc.KeePassXC.MainWindow --type=method_call /keepassxc org.keepassxc.KeePassXC.MainWindow.lockAllDatabases

Fixes: #5355
@yan12125 yan12125 changed the base branch from develop to release/2.7.0 March 13, 2022 09:03
@yan12125
Copy link
Contributor Author

Thanks, done!

@codecov-commenter
Copy link

codecov-commenter commented Mar 13, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.26%. Comparing base (e07d143) to head (0bf8f0d).

Additional details and impacted files
@@                Coverage Diff                @@
##           release/2.7.0    #7523      +/-   ##
=================================================
+ Coverage          64.25%   64.26%   +0.01%     
=================================================
  Files                341      340       -1     
  Lines              43416    43400      -16     
=================================================
- Hits               27893    27889       -4     
+ Misses             15523    15511      -12     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@droidmonkey droidmonkey merged commit c363e4a into keepassxreboot:release/2.7.0 Mar 13, 2022
@yan12125 yan12125 deleted the issue5355 branch March 13, 2022 10:22
marzzzello added a commit to marzzzello/dotfiles that referenced this pull request Nov 1, 2022
@phoerious phoerious added pr: bugfix Pull request that fixes a bug and removed bug labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux pr: bugfix Pull request that fixes a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DBus interface name does not match XML definition file
4 participants