We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 41127af + 50d39cf commit a7f2fedCopy full SHA for a7f2fed
qchat/toolbelt/preferences.py
@@ -1,13 +1,10 @@
1
#! python3 # noqa: E265
2
3
-"""
4
-Plugin settings.
5
6
-
7
-import random
+"""Plugin settings."""
8
9
# standard
10
from dataclasses import asdict, dataclass, fields
+from getpass import getuser
11
12
# PyQGIS
13
from qgis.core import QgsSettings
@@ -63,7 +60,7 @@ class PlgSettingsStructure:
63
60
f"utm_source=QGIS&utm_medium={__title__}&utm_campaign=plugin_{__version__}"
64
61
)
65
62
66
- nickname: str = f"jd_{random.randint(1000, 9999)}"
+ nickname: str = getuser()
67
avatar: str = "mGeoPackage.svg"
68
69
instance_uri: str = "https://qchat.geotribu.net"
0 commit comments