Use libsecret to hide API key
This commit is contained in:
parent
15c2f3964e
commit
10abac3a82
|
@ -24,7 +24,7 @@ get_icon() {
|
|||
echo $icon
|
||||
}
|
||||
|
||||
KEY=""
|
||||
KEY=`secret-tool lookup openweathermap api_key`
|
||||
CITY=""
|
||||
UNITS="metric"
|
||||
SYMBOL="°"
|
||||
|
|
|
@ -0,0 +1,6 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "Enter OpenWeatherMap API key"
|
||||
read line
|
||||
echo $line | secret-tool store --label='OpenWeatherMap API Key' openweathermap api_key
|
||||
secret-tool lookup openweathermap api_key
|
Loading…
Reference in New Issue