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

Feature Request: Don't print the d-bus WARNING if disable_notifications is set on cmd line or in config #2840

Closed
gitbls opened this issue Sep 21, 2024 · 4 comments · Fixed by #2841
Labels
Feature Request Feature Request | Enhancement Request Implemented
Milestone

Comments

@gitbls
Copy link

gitbls commented Sep 21, 2024

Is your feature request related to a problem? Please describe.

My debian system runs without a complete desktop. d-bus is runing, but there's no "full desktop". When onedrive v2.5.0-1+np2+2.1 starts, this message is displayed:

blsodb@mondo~> onedrive --sync --upload-only --enable-logging  --disable-notifications
WARNING: D-Bus message bus daemon is not available; GUI notifications are disabled
Reading configuration file: /home/blsodb/.config/onedrive/config
Configuration file successfully loaded

I don't know about you, but when I see a WARNING mesasge, my blood pressure goes up a few points.

Describe the solution you'd like

When --disable-notifications is on the command line or disable_notifications="true" in the config file, the warning message shouldn't be printed.

Describe alternatives you've considered

I could live with it, but my blood pressure...😵

Thanks for considering this.

Additional context

No response

@gitbls gitbls added the Feature Request Feature Request | Enhancement Request label Sep 21, 2024
@abraunegg abraunegg added this to the v2.5.1 milestone Sep 21, 2024
abraunegg added a commit that referenced this issue Sep 21, 2024
* Implement Feature Request: Don't print the d-bus WARNING if disable_notifications is set on cmd line or in config
@abraunegg
Copy link
Owner

abraunegg commented Sep 21, 2024

@gitbls

Please can you compile the following PR:

git clone /~https://github.com/abraunegg/onedrive.git
cd onedrive
git fetch origin pull/2841/head:pr2841
git checkout pr2841

To build the PR, please follow the steps to prepare your system to build the client as detailed here: /~https://github.com/abraunegg/onedrive/blob/master/docs/install.md#building-from-source---high-level-requirements

When building the client, please use the following:

./configure --enable-debug --enable-notifications; make clean; make;

When running the PR, your version should be: onedrive v2.5.0-6-g3bf292b or greater.

Evidence of fix:

 ./onedrive -s -v --disable-notifications
Reading configuration file: /home/alex/.config/onedrive/config
Configuration file successfully loaded
Using 'user' configuration path for application config and state data: /home/alex/.config/onedrive
Disabling GUI notifications as per user configuration
Using IPv4 and IPv6 (if configured) for all network operations
Attempting to contact Microsoft OneDrive Login Service
Successfully reached Microsoft OneDrive Login Service

@gitbls
Copy link
Author

gitbls commented Sep 21, 2024

Yes, that fixes it. Thank you for fixing it so that the config file setting works in addition to the command line.

@abraunegg
Copy link
Owner

@gitbls
Thanks for confirmation - will merge this into 'master' now

abraunegg added a commit that referenced this issue Sep 21, 2024
…able_notifications is set on cmd line or in config (#2841)

* Implement Feature Request: Don't print the d-bus WARNING if disable_notifications is set on cmd line or in config
@abraunegg
Copy link
Owner

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Repository owner locked as resolved and limited conversation to collaborators Sep 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Feature Request Feature Request | Enhancement Request Implemented
Projects
None yet
2 participants