Changeset 1b48afb


Ignore:
Timestamp:
2009-04-29T17:24:18Z (16 years ago)
Author:
Miklos Vajna <vmiklos@…>
Branches:
master
Children:
c9348c4
Parents:
b9f2894
Message:

add support for user-wide config files

in the past the config file was expected in /etc/skyped, change this to
~/.skyped, and just fall back to the previous path if it's not
available.

Location:
skype
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • skype/README

    rb9f2894 r1b48afb  
    166166=== Configuring
    167167
    168 - Edit `/usr/local/etc/skyped/skyped.conf`: adjust `username` and `password`. The
    169   `username` should be your Skype login and the `password` can be whatever you
    170   want, but you will have to specify that one when adding the Skype account to
    171   BitlBee (see later).
     168- Set up `~/.skyped/skyped.conf`: Create the `~/.skyped` directory, copy
     169  `skyped.conf` and `skyped.cnf` from
     170  `/usr/local/etc/skyped/skyped.conf` to `~/.skyped`, adjust `username`
     171  and `password`. The `username` should be your Skype login and the
     172  `password` can be whatever you want, but you will have to specify that
     173  one when adding the Skype account to BitlBee (see later).
    172174
    173175NOTE: Here, and later - `/usr/local/etc` can be different on your installation
     
    177179
    178180----
    179 # cd /usr/local/etc/skyped
     181# cd ~/.skyped
    180182# openssl req -new -x509 -days 365 -nodes -config skyped.cnf -out skyped.cert.pem \
    181183        -keyout skyped.key.pem
    182184----
    183185
    184 NOTE: Maybe you want to adjust the permissions in the `/usr/local/etc/skyped`
     186NOTE: Maybe you want to adjust the permissions in the `~/.skyped`
    185187dir. For example make it readable by just your user.
    186188
  • skype/skyped.py

    rb9f2894 r1b48afb  
    206206class Options:
    207207        def __init__(self):
    208                 self.cfgpath = "/usr/local/etc/skyped/skyped.conf"
     208                self.cfgpath = os.path.join(os.environ['HOME'], ".skyped", "skyped.conf")
     209                if not os.path.exists(self.cfgpath):
     210                        self.cfgpath = "/usr/local/etc/skyped/skyped.conf"
    209211                self.daemon = True
    210212                self.debug = False
Note: See TracChangeset for help on using the changeset viewer.