Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3MDS-0003NU-VZ for pgadmin-hackers@arkaria.postgresql.org; Tue, 03 Apr 2018 13:43:15 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1f3MDR-00058z-RN for pgadmin-hackers@arkaria.postgresql.org; Tue, 03 Apr 2018 13:43:13 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1f3MDR-00058l-9b for pgadmin-hackers@lists.postgresql.org; Tue, 03 Apr 2018 13:43:13 +0000 Received: from mail-ua0-x234.google.com ([2607:f8b0:400c:c08::234]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1f3MDM-0008MP-PG for pgadmin-hackers@postgresql.org; Tue, 03 Apr 2018 13:43:11 +0000 Received: by mail-ua0-x234.google.com with SMTP id a17so3857011uaf.13 for ; Tue, 03 Apr 2018 06:43:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pivotal-io.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=1bepuG0EzIsSC5IyGE/efNI5Jq/o0e4JTaOwRwRshQ0=; b=fdhQKOYkjmy36Hr2JSDdgvt+DfChFjxIdYf77RGMDRPp2xsZE3+nLopHOg8Lvvb4IA HllmcatJwm7C0TjW8xm2OWSBt3sty3SzNNocN0Qb7Wd7lY0J79E5dzaHUtSPShVSiUXn E8Nz5M6vh+lF2uiad7zdoyTCH6JEbvYd48BNqpAwqV3OEkq/O7zkZ1cR2P7z3DKoXIr5 qP3fTbDZZ4zH8dQRGqlrvJv4v5KnM4nRbbDpSto426kbVx9As32jq9WcZZXyVp3sWKNh A8mEiaA0V5jCyQKwkNNF6+46i4QvAB4Q/XoPPWEX/XJ9ExTw4C+fTzYwXhW6IA5xJgvA r72w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=1bepuG0EzIsSC5IyGE/efNI5Jq/o0e4JTaOwRwRshQ0=; b=nlQiLHxyeqBkmbMc34cjG/24S1Pk7u5Lu/F3aCVTznbUYKv6sU1FkkYzg1//QC/Vjl hEQbw72Kc3IHcK+2PubqjwcYO23vCoqs5EZ8pkIzi9GDUAKHD/+ia7KbYA9uPYk4G5uC 7kh2B67iIaVKY7gyNct+iYJiexBKjgVO3G5zyM0wzg88hHspsqyHzyi0ufsPS2EXXODZ M7h8nGakt7b8HzD4RpRXBW77C7/KfoQO6feHBROt8pNxoBOJpjalx/VgyTRxIorrOZ72 pvt6cXEwLkc21VjgejZIjr29WdaI+Dj8CMzWyaGlH46x9vgUSTneo1L1LNlKkK9Qx+o/ Ko4A== X-Gm-Message-State: ALQs6tBRYVRs7iswNbW69cktiABIwi4XpDLhXZN9EE5MNMrGHKOvMIQo kRipd6s1d97aTulDh2y38Su6ewNDFZ3Yg3Le8wQPCQ== X-Google-Smtp-Source: AIpwx48TWAtNd05vdAptCxIGcJqOlHx2mn3dprlscqlCSGmDU7NmSsel9GJSqfWw+L/HSOunTSgSjtySVaCILdsfLbs= X-Received: by 10.176.11.151 with SMTP id c23mr8173601uak.164.1522762987325; Tue, 03 Apr 2018 06:43:07 -0700 (PDT) MIME-Version: 1.0 Received: by 10.176.96.136 with HTTP; Tue, 3 Apr 2018 06:43:06 -0700 (PDT) In-Reply-To: References: From: Robert Eckhardt Date: Tue, 3 Apr 2018 09:43:06 -0400 Message-ID: Subject: Re: v3.0 release on hold To: Joao De Almeida Pereira Cc: Akshay Joshi , Dave Page , pgadmin-hackers , Murtuza Zabuawala , Khushboo Vashi , Syed Fahar Abbas , =?UTF-8?B?RGV2cmltIEfDnE5Ew5xa?= Content-Type: multipart/alternative; boundary="089e082566b8efe9460568f1e2b7" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --089e082566b8efe9460568f1e2b7 Content-Type: text/plain; charset="UTF-8" All, Where are we with respect to cutting this release? -- Rob On Mon, Mar 26, 2018 at 9:59 AM, Joao De Almeida Pereira < jdealmeidapereira@pivotal.io> wrote: > Hi Hackers, > > Did we had any progress on the things that are holding the release back? > > Thanks > Joao > > On Fri, Mar 23, 2018 at 9:26 AM Akshay Joshi < > akshay.joshi@enterprisedb.com> wrote: > >> Hi Dave >> >> On Fri, Mar 23, 2018 at 11:06 AM, Akshay Joshi < >> akshay.joshi@enterprisedb.com> wrote: >> >>> >>> >>> On Thu, Mar 22, 2018 at 10:24 PM, Dave Page wrote: >>> >>>> Hi >>>> >>>> On Thu, Mar 22, 2018 at 1:13 PM, Dave Page wrote: >>>> >>>>> >>>>>>>>> 2) Starting a second instance of the app bundle on Mac doesn't >>>>>>>>> always open a new pgAdmin window as it should. It works fine in the >>>>>>>>> debugger, or if you start the app with a command like: >>>>>>>>> "/Applications/pgAdmin\ 4.app/Contents/MacOS/pgAdmin4". It >>>>>>>>> doesn't work if you double-click the appbundle or use a command like "open >>>>>>>>> /Applications/pgAdmin\ 4.app" >>>>>>>>> >>>>>>>> >>>>>>>> Still working on this, not found any solution yet. >>>>>>>> >>>>>>> >>>>>> Not able to figure out the solution yet. I have tried to >>>>>> debug the code, but every time it will create a new instance(tray icon). Do >>>>>> I need to look into the code or something related to app bundle may be some >>>>>> settings in info.plist or any other pointer? >>>>>> >>>>> >>>>> Have a look at the code around line 85 an onwards of pgAdmin4.cpp. It >>>>> creates the shared memory interlock (and log/address files) based on the >>>>> current username and a hash of the executable name/path. My suspicion is >>>>> that the path hash (which is calculated from argv[0] on line 72) is for >>>>> some reason getting a different value each time when launched via the >>>>> Finder or "open", thus the interlock is failing. >>>>> >>>> >>>> So I took a look at this, and it seems the code is just fine. What is >>>> happening is that macOS only allows a single instance of an app to run at >>>> once. Whilst that is what we want of course, macOS is causing the new >>>> instance to exit before it has a change to open a new pgAdmin window. Using >>>> "open -n ..." or calling the embedded executable directly resolves that >>>> issue. >>>> >>>> So, there's another challenge to figure out... :-( >>>> >>> >>> OK. Will try to figure that out. >>> >> >> After googled I have tried following solution: >> >> 1. Create a shell script "launch.sh" and kept it in "/Applications/pgAdmin\ >> 4.app/Contents/MacOS" folder. That shell script will contain the command >> "open -n /Applications/pgAdmin\ 4.app/Contents/MacOS/pgAdmin4". >> Change the "CFBundleExecutable" parameter of Info.plist from "pgAdmin4" to >> "launch.sh". It didn't work, shall script didn't launch. >> 2. Create one apple script with command like "do shell execute "/Applications/pgAdmin\ >> 4.app", compile it and save it as Application. It create the app bundle, >> copy contents of pgAdmin4 app to this newly created application. But the >> problem is it opens and having icon in the dock and no response on double >> click (second time). >> >> Will continue to figure out some other solutions tomorrow. >> >>> >>>> -- >>>> Dave Page >>>> Blog: http://pgsnake.blogspot.com >>>> Twitter: @pgsnake >>>> >>>> EnterpriseDB UK: http://www.enterprisedb.com >>>> The Enterprise PostgreSQL Company >>>> >>> >>> >>> >>> -- >>> *Akshay Joshi* >>> >>> *Sr. Software Architect * >>> >>> >>> >>> *Phone: +91 20-3058-9517 <+91%2020%203058%209517>Mobile: +91 >>> 976-788-8246 <+91%2097678%2088246>* >>> >> >> >> >> -- >> *Akshay Joshi* >> >> *Sr. Software Architect * >> >> >> >> *Phone: +91 20-3058-9517 <+91%2020%203058%209517>Mobile: +91 976-788-8246 >> <+91%2097678%2088246>* >> > --089e082566b8efe9460568f1e2b7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
All,

Where are we with respect to cutti= ng this release?=C2=A0

-- Rob

On Mon, Mar 26, 2018 at 9:= 59 AM, Joao De Almeida Pereira <jdealmeidapereira@pivotal.io> wrote:
Hi H= ackers,

Did we had any progress on the things that are h= olding the release back?

Thanks
Joao

Hi Dave

<= /div>
On Fri, Mar 23, 2018 at 11:06 AM, Akshay Joshi <a= kshay.joshi@enterprisedb.com> wrote:


On Thu, Mar 22, 2018 at 10:24 PM, Dave Page <dpag= e@pgadmin.org> wrote:
Hi

On Thu, Mar 22, 2018 at 1:13 PM, Dave Page <dpage@pgadmin.org&g= t; wrote:
=

2) St= arting a second instance of the app bundle on Mac doesn't always open a= new pgAdmin window as it should. It works fine in the debugger, or if you = start the app with a command like: "/Applications/pgAdmin\ 4.app/Conte= nts/MacOS/pgAdmin4". It doesn't work if you double-click the = appbundle or use a command like "open /Applications/pgAdmin\ 4.app&quo= t;

=C2=A0 Still working = on this, not found any solution yet.

=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0Not able to figure out the solution yet. I have tri= ed to debug the code, but every time it will create a new instance(tray ico= n). Do I need to look into the code or something related to app bundle may = be some settings in info.plist or any other pointer?=C2=A0

Have a look at the code arou= nd line 85 an onwards of pgAdmin4.cpp. It creates the shared memory interlo= ck (and log/address files) based on the current username and a hash of the = executable name/path. My suspicion is that the path hash (which is calculat= ed from argv[0] on line 72) is for some reason getting a different value ea= ch time when launched via the Finder or "open", thus the interloc= k is failing.

So I took a look at this, and it seems the code is just fine. What is hap= pening is that macOS only allows a single instance of an app to run at once= . Whilst that is what we want of course, macOS is causing the new instance = to exit before it has a change to open a new pgAdmin window. Using "op= en -n ..." or calling the embedded executable directly resolves that i= ssue.

So, there's another challenge to figure = out... :-(=C2=A0

=
=C2=A0 =C2=A0 OK. Will try to figure that out.=C2=A0

=C2=A0 =C2=A0 =C2= =A0 =C2=A0 After googled I have tried following solution:=C2=A0
<= ol>
  • Create a shell script "launch.sh" and kept it in=C2=A0 &qu= ot;/Applications/pgAdmin\ 4.app/Contents/MacOS&qu= ot; folder. That shell script will contain the command "open -n=C2=A0<= span style=3D"color:rgb(34,34,34);font-family:arial,sans-serif;font-size:sm= all;font-style:normal;font-variant-ligatures:normal;font-variant-caps:norma= l;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;te= xt-transform:none;white-space:normal;word-spacing:0px;background-color:rgb(= 255,255,255);text-decoration-style:initial;text-decoration-color:initial;fl= oat:none;display:inline">/Applications/pgAdmin\ 4= .app/Contents/MacOS/pgAdmin4". Change the "CFBundleEx= ecutable" parameter of Info.plist from "pgAdmin4" to "l= aunch.sh".=C2=A0 It didn't work, shall script didn't launch.
  • Cr= eate one apple script with command like "do shell execute "/Applications/pgAdmin\ 4.app", compile it and save= it as Application. It create the app bundle, copy contents of pgAdmin4 app= to this newly created application. But the problem is it opens and having = icon in the dock and no response on double click (second time).
  • =C2=A0 =C2=A0 =C2=A0 =C2=A0Will continue to figure out s= ome other solutions tomorrow.=C2=A0 =C2=A0 =C2=A0=C2=A0=C2=A0

    = --
    Dave Page
    Blog: http://pgsnake.blogspot.com
    Twitter: @pgsnake

    Ent= erpriseDB UK: htt= p://www.enterprisedb.com
    The Enterprise PostgreSQL Company



    --
    <= div>
    Akshay Joshi
    Sr. Software Architect

    =

    =
    =


    --
    <= span style=3D"color:rgb(0,0,0);font-family:arial,sans-serif;font-size:13px;= border-collapse:collapse">Akshay Joshi
    Sr. Software Architect


    Phone: <= a href=3D"tel:+91%2020%203058%209517" value=3D"+912030589517" target=3D"_bl= ank">+91 20-3058-9517
    Mobile: +91 976-788-8246

    --089e082566b8efe9460568f1e2b7--