1 |
Hi, |
2 |
|
3 |
Sorry about the short notice, but I am suddenly no longer available in the |
4 |
last 5 weeks of the GSOC program. I have withdrawn from program on the |
5 |
application website. Nonetheless, I would still love to work on the project |
6 |
over this summer and beyond in my own time. |
7 |
|
8 |
Best, |
9 |
Ethan |
10 |
|
11 |
On Tue, Apr 9, 2019 at 1:28 PM Brian Dolbec <dolsen@g.o> wrote: |
12 |
|
13 |
> On Tue, 9 Apr 2019 12:50:30 -0400 |
14 |
> Ethan Kiang <chocopuff298@×××××.com> wrote: |
15 |
> |
16 |
> > On a tangential side-note, I am having trouble opening the .glade |
17 |
> > files. |
18 |
> > |
19 |
> > I get the following error message: |
20 |
> > (glade:4447): GladeUI-WARNING **: 12:47:37.346: Couldnt recognize |
21 |
> > GtkBuilder xml, skipping |
22 |
> > |
23 |
> /home/ethan/Development/porthole/porthole-0.6.1/porthole/glade/porthole.glade |
24 |
> > |
25 |
> > I looked into that specific error and online posts seem to imply a |
26 |
> > custom version of Glade being used? I'm not too sure. |
27 |
> > |
28 |
> > On Mon, Apr 8, 2019 at 8:37 PM Brian Dolbec <dolsen@g.o> wrote: |
29 |
> > |
30 |
> > > On Tue, 09 Apr 2019 07:36:45 +0800 |
31 |
> > > Benda Xu <heroxbd@g.o> wrote: |
32 |
> > > |
33 |
> > > > Hi Ethan, |
34 |
> > > > |
35 |
> > > > Ethan Kiang <chocopuff298@×××××.com> writes: |
36 |
> > > > |
37 |
> > > > > diff --git a/porthole/backends/portlandlib.py |
38 |
> > > > > b/porthole/backends/portlandlib.py new file mode 100644 |
39 |
> > > > > index 0000000..c165adb |
40 |
> > > > > --- /dev/null |
41 |
> > > > > +++ b/porthole/backends/portlandlib.py |
42 |
> > > > > @@ -0,0 +1,47 @@ |
43 |
> > > > > +import re |
44 |
> > > > > +import datetime |
45 |
> > > > > +from os import listdir |
46 |
> > > > > +import subprocess |
47 |
> > > > > + |
48 |
> > > > > +EPREFIX = subprocess.check_output(["portageq", "envvar", |
49 |
> > > > > "EPREFIX"]).decode().strip() |
50 |
> > > > |
51 |
> > > > Is it possible that the portage API is used here? |
52 |
> > > > |
53 |
> > > > Benda |
54 |
> > > > |
55 |
> > > > |
56 |
> > > |
57 |
> > > Yes. There is a portage api for this. But the only code really |
58 |
> > > needed from this file is get_compile_time() modified to use code |
59 |
> > > already existing in porthole's portagelib.py |
60 |
> > > |
61 |
> > > brian@professor-x ~ $ python |
62 |
> > > python-exec: Invalid impl in /etc/python-exec/python-exec.conf: |
63 |
> > > python3.4 Python 3.5.7 (default, Mar 25 2019, 08:41:16) |
64 |
> > > [GCC 8.2.0] on linux |
65 |
> > > Type "help", "copyright", "credits" or "license" for more |
66 |
> > > information. |
67 |
> > > >>> import portage |
68 |
> > > >>> portage.const.EPREFIX |
69 |
> > > '' |
70 |
> > > >>> portage.const.EPREFIX or '/' |
71 |
> > > '/' |
72 |
> > > |
73 |
> > > |
74 |
> > > So, depending on what you need use either of the above |
75 |
> > > |
76 |
> > > |
77 |
> |
78 |
> must have been from when the gnome team had dual versions gtk2/gtk3 in |
79 |
> the tree. But there also has been some hand editing if I recall |
80 |
> correctly. Possibly some is due to changes in glade for gtk3 not |
81 |
> recognizing old gtk2 xml. |
82 |
> |
83 |
> |