Skip to content
This repository was archived by the owner on Aug 3, 2019. It is now read-only.

Commit bc972b2

Browse files
committed
Version 3.0.4
1 parent 0de7599 commit bc972b2

File tree

5 files changed

+36
-54
lines changed

5 files changed

+36
-54
lines changed

debian/changelog

+10
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
green-recorder (3.0.4) zesty; urgency=low
2+
3+
* Fixed small issues evreywhere.
4+
* Removed Wayland pipeline editing option.
5+
* Reworked UI.
6+
* Updated translation template.
7+
* Fixed applet on MATE.
8+
9+
-- M.Hanny Sabbagh <[email protected]> Sun, 8 Aug 2017 07:02:00 +0200
10+
111
green-recorder (3.0.3) zesty; urgency=low
212

313
* Fixed small issues evreywhere.

green-recorder

+17-16
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ else:
3838
config.set('Options', 'frames', '30')
3939
config.set('Options', 'delay', '0')
4040
config.set('Options', 'folder', "file://" + GLib.get_user_special_dir(GLib.USER_DIRECTORY_VIDEOS))
41-
config.set('Options', 'pipeline', 'vp8enc min_quantizer=13 max_quantizer=13 cpu-used=5 deadline=1000000 threads=%T ! queue ! webmmux')
4241
config.set('Options', 'command', '')
4342
config.set('Options', 'filename', '')
4443
config.set('Options', 'videocheck', 'True')
@@ -81,7 +80,13 @@ else:
8180
def recorderindicator():
8281
# Create the app indicator widget.
8382
global indicator
84-
indicator = appindicator.Indicator.new("Green Recorder", '/usr/share/pixmaps/green-recorder.png', appindicator.IndicatorCategory.APPLICATION_STATUS)
83+
try:
84+
s = subprocess.check_output("ps -cat|grep mate-panel", shell=True)
85+
except:
86+
indicator = appindicator.Indicator.new("Green Recorder", '/usr/share/pixmaps/green-recorder.png', appindicator.IndicatorCategory.APPLICATION_STATUS)
87+
pass
88+
else:
89+
indicator = appindicator.Indicator.new("Green Recorder", 'green-recorder', appindicator.IndicatorCategory.APPLICATION_STATUS)
8590
indicator.set_status(appindicator.IndicatorStatus.ACTIVE)
8691
indicator.set_menu(indicator_menu())
8792
# Make middle-click stops the recording process.
@@ -169,7 +174,12 @@ def RecordXorg():
169174

170175
def RecordGnome():
171176
AudioRecording = []
172-
177+
178+
global RecorderPipeline
179+
180+
if formatchooser.get_active_id() == "webm":
181+
RecorderPipeline = "vp8enc min_quantizer=10 max_quantizer=50 cq_level=13 cpu-used=5 deadline=1000000 threads=%T ! queue ! webmmux"
182+
173183
if audiocheck.get_active() == True:
174184
AudioRecording.append("ffmpeg")
175185
AudioRecording.append("-f")
@@ -258,6 +268,9 @@ def stoprecording(self):
258268
elif "gnomewayland" in DisplayServer:
259269
subprocess.call(["sleep", "1"])
260270

271+
global RecorderPipeline
272+
del RecorderPipeline
273+
261274
try:
262275
GNOMEScreencast.StopScreencast()
263276
AudioProcess.terminate()
@@ -311,7 +324,6 @@ delayvalue = builder.get_object("spinbutton2")
311324
frameslabel = builder.get_object("frameslabel")
312325
delaylabel = builder.get_object("delaylabel")
313326
folderlabel = builder.get_object("folderlabel")
314-
pipelinelabel = builder.get_object("pipelinelabel")
315327
commandlabel = builder.get_object("commandlabel")
316328
audiosourcelabel = builder.get_object("audiosourcelabel")
317329
framespref = builder.get_object("spinbutton3")
@@ -320,7 +332,6 @@ delayadjustment = builder.get_object("adjustment1")
320332
framesadjustment = builder.get_object("adjustment2")
321333
delayprefadjustment = builder.get_object("adjustment3")
322334
framesprefadjustment = builder.get_object("adjustment4")
323-
pipelineentry = builder.get_object("gtkentry1")
324335
commandentry2 = builder.get_object("gtkentry2")
325336
playbutton = builder.get_object("playbutton")
326337
prefrecvidlabel = builder.get_object("label10")
@@ -374,7 +385,6 @@ commandtext.set_label(_("Run Command After Recording:"))
374385
frameslabel.set_label(_("Default frames:"))
375386
delaylabel.set_label(_("Default delay:"))
376387
folderlabel.set_label(_("Default folder:"))
377-
pipelinelabel.set_label(_("Default pipeline:"))
378388
commandlabel.set_label(_("Default command:"))
379389
audiosourcelabel.set_label(_("Audio Input Source:"))
380390
prefrecvidlabel.set_label(_("Record Video"))
@@ -392,7 +402,6 @@ framesprefadjustment.set_value(int(config.get('Options', 'frames')))
392402
FolderPath = config.get('Options', 'folder')
393403
folderchooser.set_uri(urllib.unquote(FolderPath))
394404
folderchooser2.set_uri(urllib.unquote(FolderPath))
395-
pipelineentry.set_text(config.get('Options', 'pipeline'))
396405
commandentry.set_text(config.get('Options', 'command'))
397406
commandentry2.set_text(config.get('Options', 'command'))
398407
videoswitch.set_state(checkbool(config.get('Options', 'videocheck')))
@@ -406,8 +415,6 @@ videocheck.set_active(checkbool(config.get('Options', 'videocheck')))
406415
audiocheck.set_active(checkbool(config.get('Options', 'audiocheck')))
407416
mousecheck.set_active(checkbool(config.get('Options', 'mousecheck')))
408417
followmousecheck.set_active(checkbool(config.get('Options', 'followmousecheck')))
409-
global RecorderPipeline
410-
RecorderPipeline = pipelineentry.get_text()
411418

412419
playbutton.set_sensitive(False)
413420

@@ -433,7 +440,7 @@ if "wayland" in DisplayServer:
433440
windowgrabbutton.set_sensitive(False)
434441
followmousecheck.set_sensitive(False)
435442
formatchooser.remove_all()
436-
# Actually, other formats can also be supported. However, we'll need format-specific pipelines to be passed for the screencasting service. Those will be GStreamer Pipelines.
443+
437444
formatchooser.append("webm", "WebM (The Open WebM Format)")
438445
formatchooser.set_active(0)
439446

@@ -513,12 +520,6 @@ class Handler:
513520
global confFile
514521
with open(confFile, 'w+') as newconfFile:
515522
config.write(newconfFile)
516-
517-
def pipelinechanged(self, GtkEntry):
518-
config.set('Options', 'pipeline', pipelineentry.get_text())
519-
global confFile
520-
with open(confFile, 'w+') as newconfFile:
521-
config.write(newconfFile)
522523

523524
def commandchanged(self, GtkEntry):
524525
config.set('Options', 'command', commandentry2.get_text())

green-recorder.spec

+8-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
Name: green-recorder
55
Summary: A simple yet functional desktop recorder for Linux systems. Supports both Xorg server and Wayland (GNOME).
66
URL: https://foss-project.com
7-
Version: 3.0.3
7+
Version: 3.0.4
88
Release: 1%{?dist}
99
Source: https://github.com/%{owner}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
1010
License: GPLv3
@@ -41,6 +41,13 @@ python setup.py install -O1 --root=$RPM_BUILD_ROOT
4141
%{_datadir}/pixmaps/%{name}.png
4242

4343
%changelog
44+
* Sun Aug 8 2017 M.Hanny Sabbagh <[email protected]> 3.0.4
45+
- Fixed small issues evreywhere.
46+
- Removed Wayland pipeline editing option.
47+
- Reworked UI.
48+
- Updated translation template.
49+
- Fixed applet on MATE.
50+
4451
* Sun Aug 7 2017 M.Hanny Sabbagh <[email protected]> 3.0.3
4552
- Fixed small issues.
4653

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
data_files.extend(locales)
2020

2121
setup(name = "green-recorder",
22-
version = "3.0.3",
22+
version = "3.0.4",
2323
description = "Record your desktop easily using a simple GUI",
2424
author = "FOSS Project",
2525
author_email = "[email protected]",

ui/ui.glade

-36
Original file line numberDiff line numberDiff line change
@@ -420,42 +420,6 @@
420420
<property name="position">3</property>
421421
</packing>
422422
</child>
423-
<child>
424-
<object class="GtkBox">
425-
<property name="visible">True</property>
426-
<property name="can_focus">False</property>
427-
<property name="homogeneous">True</property>
428-
<child>
429-
<object class="GtkLabel" id="pipelinelabel">
430-
<property name="visible">True</property>
431-
<property name="can_focus">False</property>
432-
<property name="label" translatable="yes">label</property>
433-
</object>
434-
<packing>
435-
<property name="expand">False</property>
436-
<property name="fill">True</property>
437-
<property name="position">0</property>
438-
</packing>
439-
</child>
440-
<child>
441-
<object class="GtkEntry" id="gtkentry1">
442-
<property name="visible">True</property>
443-
<property name="can_focus">True</property>
444-
<signal name="changed" handler="pipelinechanged" swapped="no"/>
445-
</object>
446-
<packing>
447-
<property name="expand">False</property>
448-
<property name="fill">True</property>
449-
<property name="position">1</property>
450-
</packing>
451-
</child>
452-
</object>
453-
<packing>
454-
<property name="expand">False</property>
455-
<property name="fill">True</property>
456-
<property name="position">4</property>
457-
</packing>
458-
</child>
459423
</object>
460424
<packing>
461425
<property name="expand">True</property>

0 commit comments

Comments
 (0)