Skip to content

Commit

Permalink
Info settings: Add a button to upload system info
Browse files Browse the repository at this point in the history
  • Loading branch information
clefebvre committed Oct 12, 2016
1 parent 24a276b commit e7d7a9c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ Depends: cinnamon-common (= ${source:Version}),
mesa-utils,
gkbd-capplet,
metacity,
gnome-panel | tint2
gnome-panel | tint2,
xapps-common
Recommends: gnome-themes-standard, gnome-terminal, cinnamon-bluetooth
Provides: notification-daemon, x-window-manager
Description: Modern Linux desktop
Expand Down
12 changes: 10 additions & 2 deletions files/usr/share/cinnamon/cinnamon-settings/modules/cs_info.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,6 @@ def getProcInfos():
break
return result


def createSystemInfos():
procInfos = getProcInfos()
infos = []
Expand Down Expand Up @@ -126,7 +125,6 @@ def createSystemInfos():

return infos


class Module:
name = "info"
category = "hardware"
Expand Down Expand Up @@ -157,3 +155,13 @@ def on_module_selected(self):
labelValue = Gtk.Label.new(value)
widget.pack_end(labelValue, False, False, 0)
settings.add_row(widget)

if os.path.exists("/usr/bin/upload-system-info"):
pasteButton = Gtk.Button.new()
pasteButton.set_label(_("Upload system information"))
pasteButton.set_tooltip_text(_("This is anonymous and doesn't include any personal information."))
pasteButton.connect("clicked", self.on_paste_button_clicked)
page.add(pasteButton)

def on_paste_button_clicked(self, button):
subprocess.call(["/usr/bin/upload-system-info"])

1 comment on commit e7d7a9c

@anandrkris
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice feature, much useful for new users who want to troubleshoot. Would love to see an option to see full and detailed hardware info in System Info of Cinnamon as requested here.

Please sign in to comment.