Skip to content

Commit

Permalink
pynsist, open_browser: fix startmenu links
Browse files Browse the repository at this point in the history
to point to readthedocs, add a new shortcut: Configuration
  • Loading branch information
JOJ0 committed Mar 11, 2021
1 parent 35edd4c commit a33511f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
21 changes: 16 additions & 5 deletions discodos/cmd/open_browser.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
from discodos.config import Config
import webbrowser

def readme():
webbrowser.open('https://github.com/JOJ0/discodos/blob/master/README.md')
def quickstart():
webbrowser.open(
'https://discodos.readthedocs.io/en/latest/QUICKSTART.html'
)

def manual():
webbrowser.open('https://github.com/JOJ0/discodos/blob/master/MANUAL.md')
webbrowser.open(
'https://discodos.readthedocs.io/en/latest/MANUAL.html'
)

def configuration():
webbrowser.open(
'https://discodos.readthedocs.io/en/latest/INSTALLATION.html#configure-discogs-api-access'
)

def chart():
conf = Config()
webbrowser.open('file://{}'.format(conf.discodos_data / 'discodos_cmds_v0.3_white.png' ))
webbrowser.open(
'file://{}'.format(conf.discodos_data / 'discodos_cmds_v0.3_white.png')
)

if __name__ == "__main__":
readme()
readme()
7 changes: 6 additions & 1 deletion pynsist.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ icon=assets/default.ico
console=false

[Shortcut Documentation - Getting Started]
entry_point=discodos.cmd.open_browser:readme
entry_point=discodos.cmd.open_browser:quickstart
icon=assets/default.ico
console=false

Expand All @@ -25,6 +25,11 @@ entry_point=discodos.cmd.open_browser:manual
icon=assets/default.ico
console=false

[Shortcut Documentation - Configuration]
entry_point=discodos.cmd.open_browser:configuration
icon=assets/default.ico
console=false

[Shortcut Dropbox Backup]
entry_point=discodos.cmd.open_shell_win:backup
icon=assets/discodos_7-v6_big_fat_D_256x256.ico
Expand Down

0 comments on commit a33511f

Please sign in to comment.