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

profiles: fix misc in kmail and transmission-qt & add kontact.profile #5905

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Sadoon-AlBader
Copy link

@Sadoon-AlBader Sadoon-AlBader commented Jul 17, 2023

This removes "nosound" from kmail.profile to allow notification sounds, and also adds a "dbus-user.talk org.freedesktop.Notifications" to allow notifications to start.
Also adds kontact.profile based on kmail.profile, have been using it and works well.
Also edits transmission-qt.profile to allow systray, commented out as is usually the case with profiles, but better to at least let the user know that it might be necessary to add to .local if they need systray.

EDIT: if the maintainers also prefer to keep "nosound" for kmail, it might make sense to also add it to kontact.profile since I didn't add it there to start, I think it makes sense to either remove it or add a comment letting the user know that sound notifications won't work unless they "ignore nosound"

KMail needs sound access to play notification sounds when an email is received.
Kontact profile largely based on kmail profile with additions, kontact also uses kmail for email so it is sensible to only add "noblacklist"s since the configuration files are shared.
@@ -63,4 +62,7 @@ private-dev
# writable-run-user is needed for signing and encrypting emails
writable-run-user

# enable desktop notifications
dbus-user.talk org.freedesktop.Notifications
Copy link
Collaborator

Choose a reason for hiding this comment

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

This line is ignored because there is no dbus-user filter

Copy link
Author

Choose a reason for hiding this comment

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

In this case should the user be prompted to add both that line and dbus-user filter to their .local?

etc/profile-a-l/kontact.profile Show resolved Hide resolved
etc/profile-m-z/transmission-qt.profile Outdated Show resolved Hide resolved
@Sadoon-AlBader
Copy link
Author

@rusty-snake All your suggestions are now implemented, thanks again :)

Copy link
Collaborator

@kmk3 kmk3 left a comment

Choose a reason for hiding this comment

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

The new profile is nearly identical to kmail.profile; it should probably be a
redirect to the latter.

See redirect_alias-profile.template.

@Sadoon-AlBader Sadoon-AlBader requested a review from kmk3 July 18, 2023 11:00
Copy link
Collaborator

@rusty-snake rusty-snake left a comment

Choose a reason for hiding this comment

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

Now I had time for the full review.

Comment on lines +66 to +67
#dbus-user.talk org.freedesktop.Notifications
#dbus-user filter
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
#dbus-user.talk org.freedesktop.Notifications
#dbus-user filter
#dbus-user filter
#dbus-user.talk org.freedesktop.Notifications

@@ -63,4 +62,8 @@ private-dev
# writable-run-user is needed for signing and encrypting emails
writable-run-user

# to enable desktop notifications, add these commented lines to your kmail.local file
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# to enable desktop notifications, add these commented lines to your kmail.local file
# To harden kmail.profile, add the following lines to your kmail.local file

Comment on lines +12 to +15
noblacklist ${HOME}/.cache/kontact
noblacklist ${HOME}/.config/kontactrc
noblacklist ${HOME}/.config/kontact_summaryrc
noblacklist ${HOME}/.local/share/kontact
Copy link
Collaborator

Choose a reason for hiding this comment

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

Never blacklisted.

# Persistent local customizations
include kontact.local
# Persistent global definitions
include globals.local
Copy link
Collaborator

Choose a reason for hiding this comment

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

globals.local is included twice. Thee redirect_alias template or other redirection profiles.

@@ -15,6 +15,9 @@ private-bin transmission-qt
#dbus-user.own com.transmissionbt.Transmission.*
#dbus-user.talk org.freedesktop.Notifications

# System tray support
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
# System tray support
# For system tray support, add the next 2 lines to your transmission-qt.local.
#ignore dbus-user none
#dbus-user filter

@kmk3 kmk3 changed the title Fixes to kmail.profile and transmission-qt.profile, added kontact.profile profiles: Fix misc in kmail and transmission-qt & add kontact.profile Aug 25, 2024
@kmk3 kmk3 changed the title profiles: Fix misc in kmail and transmission-qt & add kontact.profile profiles: fix misc in kmail and transmission-qt & add kontact.profile Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants