python-twitter icon indicating copy to clipboard operation
python-twitter copied to clipboard

respect XDG conventions for configuration file

Open anarcat opened this issue 6 years ago • 2 comments
trafficstars

The base XDG directory specification says that config file should be in $XDG_CONFIG_HOME or, failing that, in ~/.config. the example client should also follow that standard and look for the config file in ~/.config/tweetrc instead of ~/.tweetrc.

See also this post for a rationale.

anarcat avatar Feb 06 '19 16:02 anarcat

I’m not sure that we use a config file or would be writing to one, but maybe in some old code somewhere. Could you point me to where this would apply?

Jeremy

On Feb 6, 2019, at 11:20 AM, anarcat [email protected] wrote:

The base XDG directory specification says that config file should be in $XDG_CONFIG_HOME or, failing that, in ~/.config. the example client should also follow that standard and look for the config file in ~/.config/tweetrc instead of ~/.tweetrc.

See also this post for a rationale.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

jeremylow avatar Feb 06 '19 18:02 jeremylow

The Debian package for python-twitter ships /usr/bin/tweet that I use frequently. The config file is defined in:

https://github.com/bear/python-twitter/blob/4c8ef75305dd612008be48e97e24da16bb5be046/examples/tweet.py#L100-L103

anarcat avatar Feb 06 '19 18:02 anarcat