コミットメタ情報

リビジョン5931b427499d63174c42e93cffe1d43dd11ab111 (tree)
日時2019-06-12 20:04:46
作者ksmt4699 <ksmt4699@gmai...>
コミッターksmt4699

ログメッセージ

Ubuntuからsereneに全置換え

変更サマリ

差分

--- a/.gitignore
+++ b/.gitignore
@@ -4,5 +4,5 @@
44 # Deb builds
55 deb_dist/
66 dist/
7-ubuntu_cleaner.egg-info/
8-ubuntu-cleaner-*.tar.gz
\ No newline at end of file
7+serene_cleaner.egg-info/
8+serene-cleaner-*.tar.gz
\ No newline at end of file
--- /dev/null
+++ b/.vscode/launch.json
@@ -0,0 +1,15 @@
1+{
2+ // IntelliSense を使用して利用可能な属性を学べます。
3+ // 既存の属性の説明をホバーして表示します。
4+ // 詳細情報は次を確認してください: https://go.microsoft.com/fwlink/?linkid=830387
5+ "version": "0.2.0",
6+ "configurations": [
7+ {
8+ "name": "Python: Current File",
9+ "type": "python",
10+ "request": "launch",
11+ "program": "${file}",
12+ "console": "integratedTerminal"
13+ }
14+ ]
15+}
\ No newline at end of file
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,2 +1,2 @@
11 include COPYING README.md
2-recursive-include data *.png *.xml *.desktop *.conf *.service *.policy ubuntu-cleaner-daemon
2+recursive-include data *.png *.xml *.desktop *.conf *.service *.policy serene-cleaner-daemon
--- a/Makefile
+++ b/Makefile
@@ -1,9 +1,9 @@
11 deb:
2- python setup.py --command-packages=stdeb.command sdist_dsc --package ubuntu-cleaner bdist_deb
2+ python setup.py --command-packages=stdeb.command sdist_dsc --package serene-cleaner bdist_deb
33
44 clean:
5- @rm -rf deb_dist dist ubuntu_cleaner.egg-info
6- @rm -f ubuntu-cleaner*.tar.gz
5+ @rm -rf deb_dist dist serene_cleaner.egg-info
6+ @rm -f serene-cleaner*.tar.gz
77
88 test:
99 python -m unittest discover tests
--- a/README.md
+++ b/README.md
@@ -1,11 +1,11 @@
1-# Ubuntu Cleaner #
1+# serene-cleaner #
22
3-![license](https://img.shields.io/github/license/gerardpuig/ubuntu-cleaner.svg)
3+![license](https://img.shields.io/github/license/gerardpuig/serene-cleaner.svg)
44
55 ![screenshot](data/screenshot.png)
66
77 ### Introduction ###
8-Ubuntu Cleaner is a tool that makes it easy to clean your Ubuntu system. Ubuntu Cleaner can free up disk space and remove private information from your computer.
8+serene-cleaner is a tool that makes it easy to clean your serene system. serene-cleaner can free up disk space and remove private information from your computer.
99
1010 - Clear browser cache
1111 - Clear APT cache
@@ -20,21 +20,21 @@ Installation via PPA:
2020 $ sudo apt install software-properties-common
2121 $ sudo add-apt-repository ppa:gerardpuig/ppa
2222 $ sudo apt update
23-$ sudo apt install ubuntu-cleaner
23+$ sudo apt install serene-cleaner
2424 ```
25-Installation via .DEB (for unsupported Ubuntu versions only):
25+Installation via .DEB (for unsupported serene versions only):
2626 ```
27-$ wget https://launchpad.net/~gerardpuig/+archive/ubuntu/ppa/+files/ubuntu-cleaner_1.0.4-1_all.deb
28-$ sudo apt install ./ubuntu-cleaner_1.0.4-1_all.deb
29-$ rm ubuntu-cleaner_1.0.4-1_all.deb
27+$ wget https://launchpad.net/~gerardpuig/+archive/serene/ppa/+files/serene-cleaner_1.0.4-1_all.deb
28+$ sudo apt install ./serene-cleaner_1.0.4-1_all.deb
29+$ rm serene-cleaner_1.0.4-1_all.deb
3030 ```
3131 ### Development ###
3232 ```
33-$ git clone https://github.com/gerardpuig/ubuntu-cleaner.git
33+$ git clone https://github.com/gerardpuig/serene-cleaner.git
3434 ```
3535 To run the program from source:
3636 ```
37-$ ./ubuntu-cleaner
37+$ ./serene-cleaner
3838 ```
3939 To run the unit tests:
4040 ```
@@ -45,8 +45,3 @@ To create a .deb package:
4545 $ make deb
4646 $ make clean
4747 ```
48-
49-
50-### Related websites ###
51-* Blog <a href="http://ubuntu-cleaner.blogspot.com">http://ubuntu-cleaner.blogspot.com</a>.
52-* Launchpad <a href="https://launchpad.net/~gerardpuig/+archive/ubuntu/ppa">https://launchpad.net/~gerardpuig/+archive/ubuntu/ppa</a>.
--- a/data/com.ubuntu-cleaner.daemon.policy
+++ b/data/com.ubuntu-cleaner.daemon.policy
@@ -4,10 +4,10 @@
44 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd">
55 <policyconfig>
66
7- <vendor>Ubuntu Cleaner</vendor>
8- <icon_name>ubuntu-cleaner</icon_name>
7+ <vendor>serene-cleaner</vendor>
8+ <icon_name>serene-cleaner</icon_name>
99
10- <action id="com.ubuntu-cleaner.daemon.clean">
10+ <action id="com.serene-cleaner.daemon.clean">
1111 <_description>
1212 Clean user and system cruft
1313 </_description>
--- a/data/com.ubuntu_cleaner.daemon.service
+++ b/data/com.ubuntu_cleaner.daemon.service
@@ -1,4 +1,4 @@
11 [D-BUS Service]
2-Name=com.ubuntu_cleaner.daemon
3-Exec=/usr/share/ubuntu-cleaner/ubuntu-cleaner-daemon
2+Name=com.serene_cleaner.daemon
3+Exec=/usr/share/serene-cleaner/serene-cleaner-daemon
44 User=root
--- a/data/ubuntu-cleaner-daemon
+++ b/data/ubuntu-cleaner-daemon
@@ -4,7 +4,7 @@ import dbus
44 import dbus.mainloop.glib
55 from gi.repository import GObject
66
7-from ubuntucleaner.daemon.service import DaemonService
7+from serenecleaner.daemon.service import DaemonService
88
99
1010 if __name__ == '__main__':
--- a/data/ubuntu-cleaner-daemon.conf
+++ b/data/ubuntu-cleaner-daemon.conf
@@ -6,16 +6,16 @@
66 <busconfig>
77 <!-- Only root can own the service -->
88 <policy user="root">
9- <allow own="com.ubuntu_cleaner.daemon"/>
10- <allow send_interface="com.ubuntu_cleaner.daemon"/>
9+ <allow own="com.serene_cleaner.daemon"/>
10+ <allow send_interface="com.serene_cleaner.daemon"/>
1111 </policy>
1212
1313 <!-- Allow anyone to invoke methods on the interfaces -->
1414 <policy context="default">
15- <allow send_interface="com.ubuntu_cleaner.daemon"/>
16- <allow send_destination="com.ubuntu_cleaner.daemon"
15+ <allow send_interface="com.serene_cleaner.daemon"/>
16+ <allow send_destination="com.serene_cleaner.daemon"
1717 send_interface="org.freedesktop.DBus.Introspectable"/>
18- <allow send_destination="com.ubuntu_cleaner.daemon"
18+ <allow send_destination="com.serene_cleaner.daemon"
1919 send_interface="org.freedesktop.DBus.Properties"/>
2020 </policy>
2121 </busconfig>
--- a/data/ubuntu-cleaner.desktop
+++ b/data/ubuntu-cleaner.desktop
@@ -1,8 +1,8 @@
11 [Desktop Entry]
2-Name=Ubuntu Cleaner
3-Comment=Ubuntu Cleaner is a tool that makes it easy to clean your ubuntu system.
4-Exec=ubuntu-cleaner
5-Icon=ubuntu-cleaner
2+Name=serene-cleaner
3+Comment=serene-cleaner is a tool that makes it easy to clean your serene system.
4+Exec=serene-cleaner
5+Icon=serene-cleaner
66 Terminal=false
77 X-MultipleArgs=false
88 Type=Application
--- a/data/ui/mainwindow.xml
+++ b/data/ui/mainwindow.xml
@@ -5,18 +5,18 @@
55 <property name="can_focus">False</property>
66 <property name="border_width">5</property>
77 <property name="type_hint">dialog</property>
8- <property name="program_name">Ubuntu Cleaner</property>
8+ <property name="program_name">serene-cleaner</property>
99 <property name="copyright">Copyright © 2016 Gerard Puig</property>
10- <property name="comments" translatable="yes">Ubuntu Cleaner is a tool for Ubuntu that makes it easy to configure your system and desktop settings.</property>
11- <property name="license" translatable="yes">Ubuntu Cleaner 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.
12-Ubuntu Cleaner 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.
13-You should have received a copy of the GNU General Public License along with Ubuntu Cleaner; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA</property>
10+ <property name="comments" translatable="yes">serene-cleaner is a tool for serene that makes it easy to configure your system and desktop settings.</property>
11+ <property name="license" translatable="yes">serene-cleaner 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.
12+serene-cleaner 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.
13+You should have received a copy of the GNU General Public License along with serene-cleaner; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA</property>
1414 <property name="authors">Gerard Puig &lt;gerardpuigdev@gmail.com&gt;
1515
16-Based on Ubuntu Tweak
16+Based on serene Tweak
1717 Tualatrix Chou &lt;tualatrix@gmail.com&gt;
1818 </property>
19- <property name="logo_icon_name">ubuntu-cleaner</property>
19+ <property name="logo_icon_name">serene-cleaner</property>
2020 <property name="wrap_license">True</property>
2121 <property name="license_type">gpl-2-0</property>
2222 <child internal-child="vbox">
@@ -45,8 +45,8 @@ Tualatrix Chou &lt;tualatrix@gmail.com&gt;
4545 <property name="width_request">900</property>
4646 <property name="height_request">506</property>
4747 <property name="can_focus">False</property>
48- <property name="title">Ubuntu Cleaner</property>
49- <property name="icon_name">ubuntu-cleaner</property>
48+ <property name="title">serene-cleaner</property>
49+ <property name="icon_name">serene-cleaner</property>
5050 <signal name="destroy" handler="on_mainwindow_destroy" swapped="no"/>
5151 <child>
5252 <object class="GtkVBox" id="vbox1">
@@ -84,7 +84,7 @@ Tualatrix Chou &lt;tualatrix@gmail.com&gt;
8484 <property name="xalign">0</property>
8585 <property name="yalign">0</property>
8686 <property name="pixel_size">48</property>
87- <property name="icon_name">ubuntu-cleaner</property>
87+ <property name="icon_name">serene-cleaner</property>
8888 </object>
8989 <packing>
9090 <property name="expand">False</property>
--- a/data/ui/traceback.xml
+++ b/data/ui/traceback.xml
@@ -4,7 +4,7 @@
44 <object class="GtkDialog" id="ErrorDialog">
55 <property name="can_focus">False</property>
66 <property name="border_width">5</property>
7- <property name="title">Ubuntu Cleaner</property>
7+ <property name="title">serene-cleaner</property>
88 <property name="resizable">False</property>
99 <property name="window_position">center-on-parent</property>
1010 <property name="type_hint">dialog</property>
@@ -210,7 +210,7 @@ Please choose &lt;i&gt;Report&lt;/i&gt; to file a new bug report. Make sure to i
210210 <object class="GtkDialog" id="FatalDialog">
211211 <property name="can_focus">False</property>
212212 <property name="border_width">5</property>
213- <property name="title">Ubuntu Cleaner</property>
213+ <property name="title">serene-cleaner</property>
214214 <property name="resizable">False</property>
215215 <property name="window_position">center-on-parent</property>
216216 <property name="type_hint">dialog</property>
@@ -348,7 +348,7 @@ Please choose &lt;i&gt;Report&lt;/i&gt; to file a new bug report. Make sure to i
348348 <property name="can_focus">False</property>
349349 <property name="xalign">0</property>
350350 <property name="yalign">0.30000001192092896</property>
351- <property name="label" translatable="yes">Ubuntu Cleaner need to turn off.
351+ <property name="label" translatable="yes">serene-cleaner need to turn off.
352352 If you'd like to help us fix the problem,
353353 Please choose &lt;i&gt;Report&lt;/i&gt; to file a new bug report. Make sure to include the error message below:</property>
354354 <property name="use_markup">True</property>
--- a/ubuntu-cleaner
+++ b/serene-cleaner
@@ -13,25 +13,25 @@ gi.require_version("Gtk", "3.0")
1313 gi.require_version("Gdk", "3.0")
1414 from gi.repository import GObject, Gdk, Gtk, Gio
1515
16-from ubuntucleaner.utils import system
17-from ubuntucleaner.settings.constants import VERSION, IS_INSTALLED
18-from ubuntucleaner.settings.debug import enable_debugging
16+from serenecleaner.utils import system
17+from serenecleaner.settings.constants import VERSION, IS_INSTALLED
18+from serenecleaner.settings.debug import enable_debugging
1919
2020
2121 def parse_args(argv):
22- parser = optparse.OptionParser(prog="ubuntu-cleaner",
22+ parser = optparse.OptionParser(prog="serene-cleaner",
2323 version="%%prog %s" % VERSION,
24- description="Ubuntu Cleaner is a tool that makes it easy to clean your ubuntu system.")
24+ description="serene-cleaner is a tool that makes it easy to clean your serene system.")
2525 parser.add_option("-d", "--debug", action="store_true", default=False,
2626 help="Generate more debugging information. [default: %default]")
2727 return parser.parse_args(argv)
2828
2929
30-class UbuntuCleanerApp(Gtk.Application):
30+class serenecleanerApp(Gtk.Application):
3131 _window = None
3232 log = logging.getLogger('Launcher')
3333
34- def __init__(self, application_id='com.ubuntu-cleaner.Clean'):
34+ def __init__(self, application_id='com.serene-cleaner.Clean'):
3535 Gtk.Application.__init__(self,
3636 application_id=application_id,
3737 flags=Gio.ApplicationFlags.HANDLES_COMMAND_LINE)
@@ -45,9 +45,9 @@ class UbuntuCleanerApp(Gtk.Application):
4545 self.connect('command-line', self.on_command_line)
4646
4747 def on_startup(self, app):
48- from ubuntucleaner.main import UbuntuCleanerWindow
48+ from serenecleaner.main import serenecleanerWindow
4949
50- self._window = UbuntuCleanerWindow()
50+ self._window = serenecleanerWindow()
5151 self.add_window(self._window.mainwindow)
5252
5353 Gtk.main()
@@ -72,5 +72,5 @@ if __name__ == "__main__":
7272 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
7373 dbus.mainloop.glib.threads_init()
7474
75- app = UbuntuCleanerApp()
75+ app = serenecleanerApp()
7676 app.run(sys.argv)
--- a/setup.py
+++ b/setup.py
@@ -1,26 +1,26 @@
11 import glob
22 from setuptools import setup, find_packages
3-from ubuntucleaner import __version__
3+from serenecleaner import __version__
44
55 setup(
6- name='ubuntu-cleaner',
6+ name='serene-cleaner',
77 version=__version__,
8- description='Keep your ubuntu system clean has never been so easy!',
8+ description='Keep your serene system clean has never been so easy!',
99 author='Gerard Puig',
1010 author_email='gerardpuigdev@gmail.com',
11- scripts=['ubuntu-cleaner'],
11+ scripts=['serene-cleaner'],
1212 packages=find_packages(exclude=['tests']),
1313 data_files=[
14- ('../etc/dbus-1/system.d/', ['data/ubuntu-cleaner-daemon.conf']),
15- ('share/dbus-1/system-services', ['data/com.ubuntu_cleaner.daemon.service']),
16- ('share/polkit-1/actions/', ['data/com.ubuntu-cleaner.daemon.policy']),
17- ('share/applications/', ['data/ubuntu-cleaner.desktop']),
18- ('share/ubuntu-cleaner/ui/', glob.glob('data/ui/*.xml')),
19- ('share/icons/hicolor/128x128/apps/', ['data/icons/128x128/apps/ubuntu-cleaner.png']),
20- ('share/icons/hicolor/64x64/apps/', ['data/icons/64x64/apps/ubuntu-cleaner.png']),
21- ('share/icons/hicolor/48x48/apps/', ['data/icons/48x48/apps/ubuntu-cleaner.png']),
22- ('share/icons/hicolor/32x32/apps/', ['data/icons/32x32/apps/ubuntu-cleaner.png']),
23- ('share/ubuntu-cleaner/', ['data/ubuntu-cleaner-daemon']),
14+ ('../etc/dbus-1/system.d/', ['data/serene-cleaner-daemon.conf']),
15+ ('share/dbus-1/system-services', ['data/com.serene_cleaner.daemon.service']),
16+ ('share/polkit-1/actions/', ['data/com.serene-cleaner.daemon.policy']),
17+ ('share/applications/', ['data/serene-cleaner.desktop']),
18+ ('share/serene-cleaner/ui/', glob.glob('data/ui/*.xml')),
19+ ('share/icons/hicolor/128x128/apps/', ['data/icons/128x128/apps/serene-cleaner.png']),
20+ ('share/icons/hicolor/64x64/apps/', ['data/icons/64x64/apps/serene-cleaner.png']),
21+ ('share/icons/hicolor/48x48/apps/', ['data/icons/48x48/apps/serene-cleaner.png']),
22+ ('share/icons/hicolor/32x32/apps/', ['data/icons/32x32/apps/serene-cleaner.png']),
23+ ('share/serene-cleaner/', ['data/serene-cleaner-daemon']),
2424 ],
2525 install_requires=[
2626 'lxml',
--- a/tests/test_app.py
+++ b/tests/test_app.py
@@ -1,10 +1,10 @@
11 import unittest
2-from ubuntucleaner.main import UbuntuCleanerWindow
2+from serenecleaner.main import serenecleanerWindow
33
44
55 class TestApp(unittest.TestCase):
66 def setUp(self):
7- self.window = UbuntuCleanerWindow()
7+ self.window = serenecleanerWindow()
88
99 def test_app(self):
1010 self.assertEqual(self.window.feature_dict, {'janitor': 0})
--- a/tests/test_janitor.py
+++ b/tests/test_janitor.py
@@ -1,6 +1,6 @@
11 import unittest
22
3-from ubuntucleaner.janitor.oldkernel_plugin import OldKernelPlugin
3+from serenecleaner.janitor.oldkernel_plugin import OldKernelPlugin
44
55
66 class TestJanitorFunctions(unittest.TestCase):
--- a/tests/test_janitor_plugins.py
+++ b/tests/test_janitor_plugins.py
@@ -1,7 +1,7 @@
11 import os
22 import unittest
33
4-from ubuntucleaner.janitor.mozilla_plugin import FirefoxCachePlugin
4+from serenecleaner.janitor.mozilla_plugin import FirefoxCachePlugin
55
66
77 class TestJanitorPlugin(unittest.TestCase):
--- a/ubuntucleaner/daemon/__init__.py
+++ b/ubuntucleaner/daemon/__init__.py
@@ -1,13 +1,13 @@
11 import dbus
22 import dbus.service
33
4-PK_ACTION_CLEAN = 'com.ubuntu-cleaner.daemon.clean'
4+PK_ACTION_CLEAN = 'com.serene-cleaner.daemon.clean'
55
66
77 class AccessDeniedException(dbus.DBusException):
88 '''This exception is raised when some operation is not permitted.'''
99
10- _dbus_error_name = 'com.ubuntu_cleaner.daemon.AccessDeniedException'
10+ _dbus_error_name = 'com.serene_cleaner.daemon.AccessDeniedException'
1111
1212
1313 class PolicyKitService(dbus.service.Object):
--- a/ubuntucleaner/daemon/dbusproxy.py
+++ b/ubuntucleaner/daemon/dbusproxy.py
@@ -5,8 +5,8 @@ log = logging.getLogger("DbusProxy")
55
66
77 class DbusProxy:
8- INTERFACE = "com.ubuntu_cleaner.daemon"
9- PATH = "/com/ubuntu_cleaner/daemon"
8+ INTERFACE = "com.serene_cleaner.daemon"
9+ PATH = "/com/serene_cleaner/daemon"
1010
1111 try:
1212 bus = dbus.SystemBus()
--- a/ubuntucleaner/daemon/service.py
+++ b/ubuntucleaner/daemon/service.py
@@ -8,12 +8,12 @@ import dbus
88 import dbus.service
99 import dbus.mainloop.glib
1010
11-from ubuntucleaner.daemon import PolicyKitService, PK_ACTION_CLEAN
11+from serenecleaner.daemon import PolicyKitService, PK_ACTION_CLEAN
1212
1313 log = logging.getLogger('DaemonService')
1414
15-INTERFACE = "com.ubuntu_cleaner.daemon"
16-PATH = "/com/ubuntu_cleaner/daemon"
15+INTERFACE = "com.serene_cleaner.daemon"
16+PATH = "/com/serene_cleaner/daemon"
1717
1818
1919 class DaemonService(PolicyKitService):
--- a/ubuntucleaner/gui/__init__.py
+++ b/ubuntucleaner/gui/__init__.py
@@ -3,7 +3,7 @@ import logging
33
44 from gi.repository import Gtk
55
6-from ubuntucleaner.settings.constants import DATA_DIR
6+from serenecleaner.settings.constants import DATA_DIR
77
88
99 class GuiBuilder(object):
@@ -13,7 +13,7 @@ class GuiBuilder(object):
1313 file_path = os.path.join(DATA_DIR, 'ui', file_name)
1414
1515 self.builder = Gtk.Builder()
16- self.builder.set_translation_domain('ubuntu-cleaner')
16+ self.builder.set_translation_domain('serene-cleaner')
1717 self.builder.add_from_file(file_path)
1818 self.builder.connect_signals(self)
1919
--- a/ubuntucleaner/gui/gtk.py
+++ b/ubuntucleaner/gui/gtk.py
@@ -2,7 +2,7 @@ import logging
22
33 from gi.repository import Gdk
44
5-from ubuntucleaner.settings.debug import log_func
5+from serenecleaner.settings.debug import log_func
66
77 log = logging.getLogger("gtk")
88
--- a/ubuntucleaner/janitor/__init__.py
+++ b/ubuntucleaner/janitor/__init__.py
@@ -9,12 +9,12 @@ from collections import OrderedDict
99
1010 from gi.repository import GObject, Gtk, Gdk, Pango
1111
12-from ubuntucleaner.gui import GuiBuilder
13-from ubuntucleaner.gui.gtk import post_ui
14-from ubuntucleaner.utils import icon
15-from ubuntucleaner.utils.files import filesizeformat
16-from ubuntucleaner.modules import ModuleLoader
17-from ubuntucleaner.settings.debug import run_traceback, log_func
12+from serenecleaner.gui import GuiBuilder
13+from serenecleaner.gui.gtk import post_ui
14+from serenecleaner.utils import icon
15+from serenecleaner.utils.files import filesizeformat
16+from serenecleaner.modules import ModuleLoader
17+from serenecleaner.settings.debug import run_traceback, log_func
1818
1919 log = logging.getLogger('Janitor')
2020
--- a/ubuntucleaner/janitor/aptcache_plugin.py
+++ b/ubuntucleaner/janitor/aptcache_plugin.py
@@ -1,7 +1,7 @@
11 import logging
22
3-from ubuntucleaner.janitor import JanitorCachePlugin
4-from ubuntucleaner.daemon.dbusproxy import proxy
3+from serenecleaner.janitor import JanitorCachePlugin
4+from serenecleaner.daemon.dbusproxy import proxy
55
66 log = logging.getLogger('aptcache_plugin')
77
--- a/ubuntucleaner/janitor/autoremoval_plugin.py
+++ b/ubuntucleaner/janitor/autoremoval_plugin.py
@@ -1,8 +1,8 @@
11 import logging
22
3-from ubuntucleaner.gui.gtk import set_busy, unset_busy
4-from ubuntucleaner.janitor import JanitorPlugin, PackageObject
5-from ubuntucleaner.utils.package import AptWorker
3+from serenecleaner.gui.gtk import set_busy, unset_busy
4+from serenecleaner.janitor import JanitorPlugin, PackageObject
5+from serenecleaner.utils.package import AptWorker
66
77 log = logging.getLogger('AutoRemovalPlugin')
88
--- a/ubuntucleaner/janitor/chrome_plugin.py
+++ b/ubuntucleaner/janitor/chrome_plugin.py
@@ -1,4 +1,4 @@
1-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.janitor import JanitorCachePlugin
22
33
44 class ChromeCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/janitor/empathy_plugin.py
+++ b/ubuntucleaner/janitor/empathy_plugin.py
@@ -1,4 +1,4 @@
1-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.janitor import JanitorCachePlugin
22
33
44 class EmpathyCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/janitor/googleearth_plugin.py
+++ b/ubuntucleaner/janitor/googleearth_plugin.py
@@ -1,4 +1,4 @@
1-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.janitor import JanitorCachePlugin
22
33
44 class GoogleearthCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/janitor/mozilla_plugin.py
+++ b/ubuntucleaner/janitor/mozilla_plugin.py
@@ -1,8 +1,8 @@
11 import os
22 import logging
33
4-from ubuntucleaner.janitor import JanitorCachePlugin
5-from ubuntucleaner.settings.common import RawConfigSetting
4+from serenecleaner.janitor import JanitorCachePlugin
5+from serenecleaner.settings.common import RawConfigSetting
66
77 log = logging.getLogger('MozillaCachePlugin')
88
--- a/ubuntucleaner/janitor/oldkernel_plugin.py
+++ b/ubuntucleaner/janitor/oldkernel_plugin.py
@@ -3,10 +3,10 @@ import re
33 import logging
44
55 from distutils.version import LooseVersion
6-from ubuntucleaner.gui.gtk import set_busy, unset_busy
7-from ubuntucleaner.janitor import JanitorPlugin, PackageObject
8-from ubuntucleaner.utils.package import AptWorker
9-from ubuntucleaner.settings.debug import log_func, get_traceback
6+from serenecleaner.gui.gtk import set_busy, unset_busy
7+from serenecleaner.janitor import JanitorPlugin, PackageObject
8+from serenecleaner.utils.package import AptWorker
9+from serenecleaner.settings.debug import log_func, get_traceback
1010
1111
1212 log = logging.getLogger('OldKernelPlugin')
@@ -69,7 +69,7 @@ class OldKernelPlugin(JanitorPlugin):
6969
7070 def is_old_kernel_package(self, pkg):
7171 basenames = ['linux-image', 'linux-image-extra', 'linux-headers',
72- 'linux-image-debug', 'linux-ubuntu-modules',
72+ 'linux-image-debug', 'linux-serene-modules',
7373 'linux-header-lum', 'linux-backport-modules',
7474 'linux-header-lbm', 'linux-restricted-modules']
7575
--- a/ubuntucleaner/janitor/opera_plugin.py
+++ b/ubuntucleaner/janitor/opera_plugin.py
@@ -1,4 +1,4 @@
1-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.janitor import JanitorCachePlugin
22
33
44 class OperaCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/janitor/packageconfigs_plugin.py
+++ b/ubuntucleaner/janitor/packageconfigs_plugin.py
@@ -2,9 +2,9 @@ import os
22 import time
33 import logging
44
5-from ubuntucleaner.janitor import JanitorPlugin, PackageObject
6-from ubuntucleaner.utils import icon
7-from ubuntucleaner.daemon.dbusproxy import proxy
5+from serenecleaner.janitor import JanitorPlugin, PackageObject
6+from serenecleaner.utils import icon
7+from serenecleaner.daemon.dbusproxy import proxy
88
99
1010 log = logging.getLogger('PackageConfigsPlugin')
--- a/ubuntucleaner/janitor/softwarecenter_plugin.py
+++ b/ubuntucleaner/janitor/softwarecenter_plugin.py
@@ -1,4 +1,4 @@
1-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.janitor import JanitorCachePlugin
22
33
44 class SoftwareCenterCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/janitor/thumbnailcache_plugin.py
+++ b/ubuntucleaner/janitor/thumbnailcache_plugin.py
@@ -1,5 +1,5 @@
1-from ubuntucleaner.utils import system
2-from ubuntucleaner.janitor import JanitorCachePlugin
1+from serenecleaner.utils import system
2+from serenecleaner.janitor import JanitorCachePlugin
33
44
55 class ThumbnailCachePlugin(JanitorCachePlugin):
--- a/ubuntucleaner/main.py
+++ b/ubuntucleaner/main.py
@@ -4,15 +4,15 @@ import gi
44 gi.require_version("Gtk", "3.0")
55 from gi.repository import Gtk
66
7-from ubuntucleaner.gui import GuiBuilder
8-from ubuntucleaner.settings.constants import VERSION
9-from ubuntucleaner.janitor import JanitorPage
10-from ubuntucleaner.utils import icon
7+from serenecleaner.gui import GuiBuilder
8+from serenecleaner.settings.constants import VERSION
9+from serenecleaner.janitor import JanitorPage
10+from serenecleaner.utils import icon
1111
1212 log = logging.getLogger('app')
1313
1414
15-class UbuntuCleanerWindow(GuiBuilder):
15+class serenecleanerWindow(GuiBuilder):
1616 feature_dict = {}
1717
1818 def __init__(self):
--- a/ubuntucleaner/modules/__init__.py
+++ b/ubuntucleaner/modules/__init__.py
@@ -3,7 +3,7 @@ import sys
33 import logging
44 import inspect
55
6-from ubuntucleaner.settings.debug import log_traceback
6+from serenecleaner.settings.debug import log_traceback
77
88 log = logging.getLogger('ModuleLoader')
99
@@ -43,7 +43,7 @@ class ModuleLoader:
4343 if not user_only:
4444 log.info("Loading system modules for %s..." % feature)
4545 try:
46- m = __import__('ubuntucleaner.%s' % self.feature, fromlist='ubuntucleaner')
46+ m = __import__('serenecleaner.%s' % self.feature, fromlist='serenecleaner')
4747 self.do_folder_import(m.__path__[0])
4848 except ImportError, e:
4949 log.error(e)
@@ -103,7 +103,7 @@ class ModuleLoader:
103103
104104 @classmethod
105105 def is_module_active(cls, k, v):
106- from ubuntucleaner.janitor import JanitorPlugin
106+ from serenecleaner.janitor import JanitorPlugin
107107 try:
108108 if "Plugin" in k and k not in ('JanitorPlugin', 'JanitorCachePlugin') and \
109109 issubclass(v, JanitorPlugin) and hasattr(v, '__utmodule__'):
--- a/ubuntucleaner/settings/constants.py
+++ b/ubuntucleaner/settings/constants.py
@@ -3,7 +3,7 @@ import gettext
33
44 from gi.repository import GLib
55
6-from ubuntucleaner import __version__
6+from serenecleaner import __version__
77
88 __all__ = (
99 'APP',
@@ -17,13 +17,13 @@ __all__ = (
1717 def applize(package):
1818 return ' '.join([a.capitalize() for a in package.split('-')])
1919
20-PACKAGE = 'ubuntu-cleaner'
20+PACKAGE = 'serene-cleaner'
2121 VERSION = __version__
2222 PKG_VERSION = VERSION
23-DATA_DIR = '/usr/share/ubuntu-cleaner/'
23+DATA_DIR = '/usr/share/serene-cleaner/'
2424 APP = applize(PACKAGE)
2525 BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
26-CONFIG_ROOT = os.path.join(GLib.get_user_config_dir(), 'ubuntu-cleaner')
26+CONFIG_ROOT = os.path.join(GLib.get_user_config_dir(), 'serene-cleaner')
2727 IS_INSTALLED = True
2828
2929 if not os.path.exists(CONFIG_ROOT):
--- a/ubuntucleaner/settings/debug.py
+++ b/ubuntucleaner/settings/debug.py
@@ -7,8 +7,8 @@ import gi
77 gi.require_version("Notify", "0.7")
88 from gi.repository import Gtk, Gdk, Notify
99
10-from ubuntucleaner.utils import system
11-from ubuntucleaner.settings.constants import CONFIG_ROOT
10+from serenecleaner.utils import system
11+from serenecleaner.settings.constants import CONFIG_ROOT
1212
1313 #The terminal has 8 colors with codes from 0 to 7
1414 BLACK, RED, GREEN, YELLOW, BLUE, MAGENTA, CYAN, WHITE = range(8)
@@ -35,13 +35,13 @@ def on_copy_button_clicked(widget, text):
3535 body=_('Now click "Report" to enter the bug '
3636 'report website. Make sure to attach the '
3737 'error message in "Further information".'),
38- icon='ubuntu-cleaner')
38+ icon='serene-cleaner')
3939 notify.show()
4040
4141
4242 def run_traceback(level, textview_only=False, text_only=False):
4343 '''Two level: fatal and error'''
44- from ubuntucleaner.gui import GuiBuilder
44+ from serenecleaner.gui import GuiBuilder
4545
4646 output = StringIO.StringIO()
4747 exc = traceback.print_exc(file=output)
@@ -114,7 +114,7 @@ class CleanerLogger(logging.Logger):
114114
115115 #create the single file appending handler
116116 if CleanerLogger.LOG_FILE_HANDLER is None:
117- filename = os.path.join(CONFIG_ROOT, 'ubuntu-cleaner.log')
117+ filename = os.path.join(CONFIG_ROOT, 'serene-cleaner.log')
118118 CleanerLogger.LOG_FILE_HANDLER = logging.FileHandler(filename, 'w')
119119 CleanerLogger.LOG_FILE_HANDLER.setFormatter(no_color_formatter)
120120
--- a/ubuntucleaner/utils/package.py
+++ b/ubuntucleaner/utils/package.py
@@ -12,8 +12,8 @@ from gi.repository import Gtk, Gdk
1212
1313 from defer import inline_callbacks
1414
15-from ubuntucleaner.gui.gtk import post_ui
16-from ubuntucleaner.settings.debug import log_func
15+from serenecleaner.gui.gtk import post_ui
16+from serenecleaner.settings.debug import log_func
1717
1818 log = logging.getLogger('package')
1919
--- a/ubuntucleaner/utils/system.py
+++ b/ubuntucleaner/utils/system.py
@@ -1,7 +1,7 @@
11 import os
22 import platform
33
4-from ubuntucleaner.settings.constants import APP, PKG_VERSION
4+from serenecleaner.settings.constants import APP, PKG_VERSION
55
66
77 def get_distro():
@@ -14,8 +14,8 @@ def get_codename():
1414
1515 def get_desktop():
1616 '''
17- ubuntu
18- ubuntu-2d
17+ serene
18+ serene-2d
1919 gnome-classic
2020 gnome-shell
2121 '''
@@ -23,7 +23,7 @@ def get_desktop():
2323
2424
2525 def get_app():
26- '''Ubuntu Cleaner 0.5.x'''
26+ '''serene-cleaner 0.5.x'''
2727 return " ".join([APP, PKG_VERSION])
2828
2929
旧リポジトリブラウザで表示