2023-04-15 14:47:17 +00:00
|
|
|
"""
|
|
|
|
* Author: "PepDebian(peppermintosteam@proton.me)
|
|
|
|
*
|
|
|
|
* License: SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* This file is used to keep functions that are used for the Welcome
|
|
|
|
* Screen
|
|
|
|
"""
|
|
|
|
import os.path
|
|
|
|
|
|
|
|
|
|
|
|
# This will get the logged in user
|
|
|
|
gusr = os.getlogin()
|
2023-04-21 00:08:14 +00:00
|
|
|
spath = "/home/" + gusr + "/.local/share/pmostools/peptools"
|
2023-04-15 14:47:17 +00:00
|
|
|
|
|
|
|
def suggested_packages():
|
|
|
|
""" Open the suggested packages """
|
|
|
|
os.system('python3 ' + spath + '/suggested.py')
|
|
|
|
|
|
|
|
def hub():
|
|
|
|
"""Open the Hub"""
|
|
|
|
os.system('hub')
|
|
|
|
|
|
|
|
|
2023-11-19 13:16:45 -01:00
|
|
|
##SSB's
|
2023-04-15 14:47:17 +00:00
|
|
|
|
|
|
|
def pep_docs():
|
|
|
|
"""Open Pep Docs"""
|
|
|
|
os.system('luakit -U https://peppermint_os.codeberg.page/html/ &'
|
|
|
|
)
|
|
|
|
|
2023-11-19 13:16:45 -01:00
|
|
|
## Community Section
|
2023-04-15 14:47:17 +00:00
|
|
|
|
|
|
|
def mastodon():
|
|
|
|
"""Open Mastodon"""
|
|
|
|
os.system('luakit -U https://fosstodon.org/@peppermintos &'
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def code_berg():
|
|
|
|
"""Open Codeberg"""
|
|
|
|
os.system('luakit -U https://codeberg.org/Peppermint_OS & '
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def matrix():
|
|
|
|
"""Open Matrix"""
|
2023-11-19 13:16:45 -01:00
|
|
|
os.system('luakit -U https://matrix.to/#/!JhPtEbNexzFaoOkvGp:matrix.org?'
|
|
|
|
'via=matrix.org & '
|
2023-04-15 14:47:17 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def source_forge():
|
|
|
|
"""Open Sourceforge"""
|
|
|
|
os.system('luakit -U https://sourceforge.net/p/peppermintos/pepos/ & '
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
def build_date():
|
|
|
|
"""Open BuildDate wiki"""
|
2023-11-19 13:16:45 -01:00
|
|
|
os.system('luakit -U https://sourceforge.net/p/peppermintos/pepwiki/'
|
|
|
|
'BuildDate/ & '
|
2023-04-15 14:47:17 +00:00
|
|
|
)
|