This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Kgpg XDG_CONFIG_DIR snippet has no effect

Tags: None
(comma "," separated)
jasonayala
Registered Member
Posts
7
Karma
0
I'm trying to change some kgpg defaults for new user accounts using XDG. I have the following snippet placed in a file called "kgpgrc" in a $XDG_CONFIG_DIR directory, but there's absolutely no effect when a user runs kgpg.

Any suggestions about how to debug this?


Code: Select all
## This file is part of Whonix.
## Copyright (C) 2012 - 2014 Patrick Schleizer <adrelanos@riseup.net>
## See the file COPYING for copying conditions.

## Pre-configured first time wizard.
[GPG Settings]
gpg_config_path[$e]=$HOME/.gnupg/gpg.conf

## Pre-configured first time wizard.
[General Options]
First run=false

## Added hkp://qdigse2yzvuglcix.onion to the default list.
## Same as in:
## -- https://raw.github.com/ioerror/torbirdy/master/gpg.conf
## -- https://github.com/ioerror/torbirdy/commit/e6d7c9e6e103f0b3289675d04ed3f92e92d8d7b3
## -- whonix_workstation/usr/share/whonix/home/.gnupg/gpg.conf
[Servers]
Server_List=hkp://qdigse2yzvuglcix.onion,hkp://wwwkeys.pgp.net,hkp://pgp.dtype.org,hkp://search.keyserver.net,hkp://subkeys.pgp.net,hkp://wwwkeys.pgp.net,hkp://wwwkeys.us.pgp.net

## Disabled tip of the day.
[TipOfDay]
RunOnStart=false

## Disabled tray icon, because KDE minimized KGpg into the tray area by
## default and also hides its tray icon by default. This is very confusing for
## users. Therefore we start KGpg in foreground without tray icon. Users are
## free to change this setting.
[User Interface]
systray_icon=false
User avatar
Rog131
Registered Member
Posts
828
Karma
10
jasonayala wrote:I'm trying to change some kgpg defaults for new user accounts using XDG. I have the following snippet placed in a file called "kgpgrc" in a $XDG_CONFIG_DIR directory, but there's absolutely no effect when a user runs kgpg.

Any suggestions about how to debug this?
.
.
.


Kgpg version ?

Earlier you wrote - viewtopic.php?f=289&p=381746#p381648 -
that you are using the Debian.

Debian Stretch ?

Debian Kgpg: https://packages.debian.org/search?keyw ... ection=all
Stretch has: Package: kgpg (4:16.08.3-1) - https://packages.debian.org/stretch/kgpg
It is for the 'old' KDE4.
The KDE4 is following the $KDEHOME -> ~/.kde or ~/.kde4
KF5 is following the $XDG_CONFIG_DIR.

You could look how the mixed (KF5 / KDE4) distributions are doing it. The Kubuntu has kubuntu-settings-desktop package: https://packages.ubuntu.com/artful/kubu ... gs-desktop . It has defaults for the kgpg (KDE4) at /usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kgpgrc . The Kubuntu is using /etc/kde4rc for the KDE4.
jasonayala
Registered Member
Posts
7
Karma
0
You're right. I extracted kubuntu's settings package and confirmed what you said. My belief now is that kgpg can be affected via kde4rc but not via xdg

$ cat etc/kde4rc
[Directories-default]
prefixes=/usr/share/kubuntu-default-settings/kde4-profile/default/

$ ls usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kgpgrc
usr/share/kubuntu-default-settings/kde4-profile/default/share/config/kgpgrc

$ cat etc/X11/Xsession.d/70xdg-kubuntu-dir
# Added a path to put Kubuntu Settings
XDG_CONFIG_DIRS="$XDG_CONFIG_DIRS:/usr/share/kubuntu-default-settings/kf5-settings"

$ ls usr/share/kubuntu-default-settings/kf5-settings
kcm-about-distrorc muondatasourcesrc


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]