Skip to content
This repository has been archived by the owner on Apr 7, 2024. It is now read-only.

Commit

Permalink
added support for debian 9.2
Browse files Browse the repository at this point in the history
  • Loading branch information
gaining committed Dec 5, 2017
1 parent 5857275 commit a7de348
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 40 deletions.
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,14 @@ Download the deb files found [here](https://github.com/gaining/Resetter/releases


# Status
- version 1.1.2 adds support for Ubuntu 17.10.
- policy kit is broken, using workaround with sudo for now.
- version 1.1.3 adds support for Debian 9.2
- policy kit is broken at the moment, using workaround with sudo for now.
- The software is stable. Feedback will be greatly appreciated.
- Working Project: Resetter-cli, a version of resetter that runs terminally due to be released this early November.
- Please check the [changelog](https://github.com/gaining/Resetter/blob/master/changelog) for more details.

# To Do
- Official video tutorial on YouTube
- Debian Jessie, Sketh support
- Debian Jessie, Sketch support
- Make Resetter multilingual. (Will need help of volunteer translators)
- Make an app-image or flatpack as there are many reasons why Resetter needs to be portable.

Expand Down Expand Up @@ -65,8 +64,8 @@ MPIA means missing pre-installed apps
- Source Editor: It is a normal editor that can disable, enable, or remove ppas from a user's system but what makes this different from other source editors is that you can search for the ppa that you want to edit.

# Officially supported distros [64-bit]

- Linux Mint 17.3+
- Debian 9.2 (stable) Gnome edition
- Linux Mint 17.3+ (support for mint 18.3 coming soon)
- Ubuntu 14.04+
- Elementary OS 0.4+
- Linux Deepin 15.4+
Expand Down
48 changes: 16 additions & 32 deletions Resetter/usr/lib/resetter/CustomReset.py
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,10 @@
import apt.package
import logging
import textwrap
import sys
from PyQt4 import QtCore, QtGui
from CustomApplyDialog import Apply
from PackageView import AppView
from SetEnvironment import Settings
import pwd
import os


class AppRemovalPage(QtGui.QWizardPage):
def __init__(self, parent=None):
Expand Down Expand Up @@ -40,10 +37,8 @@ def __init__(self, parent=None):
self.switchBox = QtGui.QCheckBox('View dependent packages')
self.switchBox.stateChanged.connect(self.toggleSwitch)
self.switchBox.setToolTip(textwrap.fill
(
"Warning! Only use this for single packages for which you're curious about. Do not use the select all "
"option while this is checked. Packages in this list will be removed whether you checked them or not.",
50))
("Warning! Only use this for single packages for which you're curious about. Do not use the select all "
"option while this is checked. Packages in this list will be removed whether you checked them or not.", 50))
self.searchEditText.textChanged.connect(self.searchItem)
self.verticalLayout = QtGui.QVBoxLayout(self)
self.horizontalLayout = QtGui.QHBoxLayout()
Expand All @@ -69,8 +64,6 @@ def __init__(self, parent=None):
self.cache = apt.Cache()
self.model = QtGui.QStandardItemModel(self.uninstall_view)
self.model.itemChanged.connect(self.setItems)
self.d_env = Settings()
print os.getcwd()

with open('apps-to-remove') as f_in:
for line in f_in:
Expand Down Expand Up @@ -160,7 +153,7 @@ def depPackages(self, item):
if package.marked_delete:
changes.append(package)
dep_view.showView(changes, 'Dependent packages',
text, False, width=370, height=200, check_state=1)
text, False, width=370, height=200, check_state=1)
dep_view.show()
self.cache.clear()
QtGui.QApplication.restoreOverrideCursor()
Expand All @@ -175,7 +168,6 @@ def selectedAppsRemoval(self):
def closeCache(self):
self.cache.close()


class AppInstallPage(QtGui.QWizardPage):
def __init__(self, parent=None):
super(AppInstallPage, self).__init__(parent=parent)
Expand Down Expand Up @@ -224,13 +216,13 @@ def __init__(self, parent=None):
for line in f_in:
try:
pkg = self.cache[line.strip()]
text = pkg.versions[0].description
item = QtGui.QStandardItem(line.strip())
item.setCheckable(True)
item.setCheckState(QtCore.Qt.Unchecked)
self.model.appendRow(item)
item.row()
item.setToolTip((textwrap.fill(text, 70)))
text = (pkg.versions[0].description)
self.item = QtGui.QStandardItem(line.strip())
self.item.setCheckable(True)
self.item.setCheckState(QtCore.Qt.Unchecked)
self.model.appendRow(self.item)
self.item.row()
self.item.setToolTip((textwrap.fill(text, 70)))
except KeyError:
continue
self.uninstall_view.setModel(self.model)
Expand Down Expand Up @@ -332,10 +324,11 @@ def configureTable(self, table):
for column in range(3):
for row in range(table.rowCount()):
if column % 3:
item = QtGui.QTableWidgetItem(column)
item.setFlags(QtCore.Qt.ItemIsUserCheckable | QtCore.Qt.ItemIsEnabled)
item.setCheckState(QtCore.Qt.Unchecked)
table.setItem(row, column, item)
self.item = QtGui.QTableWidgetItem(column)
self.item.setFlags(QtCore.Qt.ItemIsUserCheckable |
QtCore.Qt.ItemIsEnabled)
self.item.setCheckState(QtCore.Qt.Unchecked)
table.setItem(row, column, self.item)

def setChoice(self, item):
if item.checkState() == QtCore.Qt.Checked:
Expand Down Expand Up @@ -374,9 +367,7 @@ def printChecked(self):
with open(path, mode) as f:
f.write(text)


class AppWizard(QtGui.QWizard):

def __init__(self, parent=None):
super(AppWizard, self).__init__(parent)
self.setWindowTitle("Custom Reset")
Expand Down Expand Up @@ -409,10 +400,3 @@ def createConclusionPage(self):
layout.addWidget(label)
page.setLayout(layout)
return page


if __name__ == '__main__':
app = QtGui.QApplication(sys.argv)
custom = AppWizard()
custom.show()
sys.exit(app.exec_())
18 changes: 16 additions & 2 deletions changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
resetter (1.1.3-stable) trusty; urgency=low

* added debian 9.2 (strech) support

-- gaining <gaining7@outlook.com> Tue, 05 Dec 2017 16:20:57 -0500


resetter (1.1.2-stable) trusty; urgency=low

* added support for ubuntu 17.10

-- gaining <gaining7@outlook.com> Sun, 22 Oct 2017 21:17:49 -0400


resetter (1.1.1-stable) trusty; urgency=low

* Fixed crashing issue if offline
Expand Down Expand Up @@ -55,7 +69,7 @@ resetter (1.0.0-stable) trusty; urgency=high


resetter (0.3.7-rc4) trusty; urgency=high

* Huge performance improvements
* Better multithreading support
* Remove old kernels feature improved
Expand Down Expand Up @@ -190,4 +204,4 @@ resetter (0.0.1-beta) trusty; urgency=low

* initial release

-- gaining <gaining7@outlook.com> Tue, 28 Mar 2017 01:53:05 -0400
-- gaining <gaining7@outlook.com> Tue, 28 Mar 2017 01:53:05 -0400

0 comments on commit a7de348

Please sign in to comment.