[pitivi] project- Don't assume the author of a project is the current user
- From: Thibault Saunier <tsaunier src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pitivi] project- Don't assume the author of a project is the current user
- Date: Fri, 2 Oct 2015 12:46:42 +0000 (UTC)
commit 8cbad3339a027de2080264d858da64099028926d
Author: Alexandru Băluț <alexandru balut gmail com>
Date: Fri Oct 2 14:41:52 2015 +0200
project- Don't assume the author of a project is the current user
Summary: Depends on D280
Reviewers: thiblahute
Reviewed By: thiblahute
Subscribers: aleb
Differential Revision: https://phabricator.freedesktop.org/D281
pitivi/project.py | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/pitivi/project.py b/pitivi/project.py
index a27174f..55e8633 100644
--- a/pitivi/project.py
+++ b/pitivi/project.py
@@ -590,8 +590,7 @@ class ProjectManager(GObject.Object, Loggable):
self.__missing_uris = False
if emission:
self.emit("new-project-loading", None)
- # We don't have a URI here, None means we're loading a new project
- project = Project(self.app, _("New Project"))
+ project = Project(self.app, name=_("New Project"))
# setting default values for project metadata
project.author = getpwuid(os.getuid()).pw_gecos.split(",")[0]
@@ -743,8 +742,7 @@ class Project(Loggable, GES.Project):
# Project property default values
self.register_meta(GES.MetaFlag.READWRITE, "name", name)
- self.register_meta(GES.MetaFlag.READWRITE, "author",
- getpwuid(os.getuid()).pw_gecos.split(",")[0])
+ self.register_meta(GES.MetaFlag.READWRITE, "author", "")
# Handle rendering setting
self.set_meta("render-scale", 100.0)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]