1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-13 20:08:55 +00:00

Fixes app name for the config file on Linux.

This commit is contained in:
Jeremy 2015-02-02 13:13:56 -07:00
parent 0ae8d8031a
commit aecd7dedba

View File

@ -79,7 +79,10 @@ class Config(object):
# 4: /etc/xdg/GNS3.conf
# 5: server.conf in the current working directory
appname = "gns3.net"
if sys.platform.startswith("darwin"):
appname = "gns3.net"
else:
appname = "GNS3"
home = os.path.expanduser("~")
self._cloud_file = os.path.join(home, ".config", appname, "cloud.conf")
filename = "server.conf"