-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #42 from drauger-os-development/testing
Lots of bug fixes and other things
- Loading branch information
Showing
26 changed files
with
704 additions
and
303 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
# These are supported funding model platforms | ||
|
||
liberapay: Batcastle | ||
liberapay: Drauger_OS_Development | ||
github: Batcastle | ||
custom: "https://www.paypal.com/pools/c/89GtByYaTT" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Package: system-installer | ||
Version: 2.0.1 | ||
Version: 2.1.0 | ||
Maintainer: Thomas Castleman <[email protected]> | ||
Homepage: https://github.com/drauger-os-development/system-installer | ||
Section: admin | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# TODO | ||
* create lib to handle ALL package management functions that can easily be swapped out, making more distro agnostic. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,33 @@ | ||
{ | ||
"squashfs_Location":"/run/live/medium/live/filesystem.squashfs", | ||
"distro":"Drauger OS", | ||
"report":{ | ||
"squashfs_Location": "/run/live/medium/live/filesystem.squashfs", | ||
"distro": "Drauger OS", | ||
"report": { | ||
"recv_keys": "https://download.draugeros.org/keys/public_keys.asc", | ||
"upload": "rsync://download.draugeros.org/reports-upload" | ||
}, | ||
"ping servers":[ | ||
"ping servers": [ | ||
"https://apt.draugeros.org", | ||
"https://ubuntu.com", | ||
"https://debian.org" | ||
], | ||
"ping count":2, | ||
"partitioning":{ | ||
"EFI":{ | ||
"START":0, | ||
"END":200 | ||
"ping count": 2, | ||
"partitioning": { | ||
"EFI": { | ||
"START": 0, | ||
"END": 200 | ||
}, | ||
"ROOT":{ | ||
"START":201, | ||
"END":"35%", | ||
"fs":"ext4" | ||
"START": 201, | ||
"END": "40%", | ||
"fs": "ext4" | ||
}, | ||
"HOME":{ | ||
"START":"35%", | ||
"END":"100%", | ||
"fs":"ext4" | ||
"START": "40%", | ||
"END": "100%", | ||
"fs": "ext4" | ||
}, | ||
"min root size":19327, | ||
"mdswh":128 | ||
"min root size": 23000, | ||
"mdswh": 128 | ||
}, | ||
"run_post_oem":["/usr/share/drauger-welcome/main_ui.py"] | ||
"run_post_oem": ["/usr/share/drauger-welcome/main_ui.py"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# __init__.py | ||
# | ||
# Copyright 2021 Thomas Castleman <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
# | ||
# | ||
"""DE/WM control lib for system-installer.""" | ||
import de_control.enable as enable | ||
import de_control.disable as disable | ||
import de_control.modify as modify |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# disable.py | ||
# | ||
# Copyright 2021 Thomas Castleman <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
# | ||
# | ||
"""Disable DE/WM or DE/WM features""" | ||
import subprocess | ||
|
||
def immersion(): | ||
"""disable Immersion within DE. | ||
This may involve enabliong desktop icons, re-adding panels, and more. | ||
""" | ||
# restart panel | ||
subprocess.Popen(["xfce4-panel"]) | ||
# bring back desktop icons | ||
subprocess.Popen(["xfconf-query", "--channel", "xfce4-desktop", | ||
"--property", "/desktop-icons/style", "--set", "2"]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# enable.py | ||
# | ||
# Copyright 2021 Thomas Castleman <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
# | ||
# | ||
"""Enable DE/WM or DE/WM features""" | ||
import subprocess | ||
import psutil | ||
|
||
def immersion(): | ||
"""Enable Immersion within DE. | ||
This may involve disabling desktop icons, removing panels, and more. | ||
""" | ||
subprocess.Popen(["xfconf-query", "--channel", "xfce4-desktop", | ||
"--property", "/desktop-icons/style", "--set", "0"]) | ||
# Kill Xfce4 Panel, makes this more emersive | ||
for proc in psutil.process_iter(): | ||
# check whether the process name matches | ||
if proc.name() == "xfce4-panel": | ||
proc.terminate() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
#!/usr/bin/env python3 | ||
# -*- coding: utf-8 -*- | ||
# | ||
# modify.py | ||
# | ||
# Copyright 2021 Thomas Castleman <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; either version 2 of the License, or | ||
# (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, | ||
# MA 02110-1301, USA. | ||
# | ||
# | ||
"""Modify DE/WM settings and configuration""" | ||
import sys | ||
import os | ||
|
||
|
||
def __eprint__(*args, **kwargs): | ||
"""Make it easier for us to print to stderr""" | ||
print(*args, file=sys.stderr, **kwargs) | ||
|
||
|
||
def for_desktop(username): | ||
"""Make modifications to the DE/WM to optimize for the DESKTOP | ||
experience. | ||
""" | ||
__eprint__("DESKTOP DETECTED. EDITING PANEL ACCORDINGLY.") | ||
try: | ||
os.remove("/home/" + username + "/.config/xfce4/panel/battery-12.rc") | ||
except FileNotFoundError: | ||
pass | ||
with open("/home/" + username + "/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml", "r") as file: | ||
xml = file.read().split("\n") | ||
for each in range(len(xml) - 1, -1, -1): | ||
if "battery" in xml[each]: | ||
del xml[each] | ||
xml = "\n".join(xml) | ||
with open("/home/" + username + "/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml", "w") as file: | ||
file.write(xml) | ||
|
||
|
||
def for_laptop(): | ||
"""make modifications to the DE/WM to optimize for the LAPTOP | ||
experience. | ||
""" | ||
pass |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# | ||
# __init__.py | ||
# | ||
# Copyright 2020 Thomas Castleman <[email protected]> | ||
# Copyright 2021 Thomas Castleman <[email protected]> | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
|
Oops, something went wrong.