Skip to content


macOS: fix random password loaded in the GUI
Browse files Browse the repository at this point in the history
macOS puts a -psn_0_xxxxxx argument when running an app via GUI.
This argument was interpreted as a password (-p) and overloaded the
value stored in the settings. Catching the -psn argument explicitely
should prevent this.

for further information about this legacy argument.
  • Loading branch information
albertosottile committed May 14, 2019
1 parent a2294d0 commit b3545a3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions syncplay/ui/
Expand Up @@ -490,6 +490,7 @@ def getConfiguration(self):
self._argparser.add_argument('-r', '--room', metavar='room', type=str, nargs='?', help=getMessage("room-argument"))
self._argparser.add_argument('-p', '--password', metavar='password', type=str, nargs='?', help=getMessage("password-argument"))
self._argparser.add_argument('--player-path', metavar='path', type=str, help=getMessage("player-path-argument"))
self._argparser.add_argument('-psn', metavar='blackhole', type=str, help=argparse.SUPPRESS)
self._argparser.add_argument('--language', metavar='language', type=str, help=getMessage("language-argument"))
self._argparser.add_argument('file', metavar='file', type=str, nargs='?', help=getMessage("file-argument"))
self._argparser.add_argument('--clear-gui-data', action='store_true', help=getMessage("clear-gui-data-argument"))
Expand Down

0 comments on commit b3545a3

Please sign in to comment.