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 1ezLN4-00005d-SJ for pgadmin-hackers@arkaria.postgresql.org; Fri, 23 Mar 2018 12:00:34 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1ezLN3-0001bI-TS for pgadmin-hackers@arkaria.postgresql.org; Fri, 23 Mar 2018 12:00:33 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1ezLN3-0001b8-OJ for pgadmin-hackers@lists.postgresql.org; Fri, 23 Mar 2018 12:00:33 +0000 Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1ezLMw-0005Ys-QK for pgadmin-hackers@postgresql.org; Fri, 23 Mar 2018 12:00:32 +0000 Received: by mail-wm0-x22e.google.com with SMTP id e194so3084176wmd.3 for ; Fri, 23 Mar 2018 05:00:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pgadmin-org.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=XJ5CKmJSV6r/CfsMYAvnjqyCRiOI9go7XMTVTOcsbVE=; b=HZvXfDXXS+J+Op9Qe1FybmKOPI0EteMN7A+DFsw07Jn+9PbdnckLqeQKGwFs81O/w4 1s24fBZ5RTyKiYLhkiGEnWByPhDq2anJCuHwRPcbUPII7Do4U8Kc3Rr5963a2JyLKfuY A3calbPipptI3KcpwBlbND/gOyLxQk026WcedWyTV8H+ewVNwbsa+MDSyNv7UDh6whjX YNzejM4T8Rmg207r0+AYAqFWE/LfftqjtSSje52y6ig8Hm+UDBVJW1UOpaC+qE1G13Xg mvaAquFt5soJD035OjF8/2n6cdkMSJlALXa5nmdW1u7PQCBIhV7oZor9Yb95CYxie28F PczA== 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=XJ5CKmJSV6r/CfsMYAvnjqyCRiOI9go7XMTVTOcsbVE=; b=sSkFTrl0SPmFEpQ5okYmG0hYSt7JpEjo4dynksKMVUg3tQ+pnkA5LfLlla/Yitjk8m 0s32BW6DeYFCU7MinqA8eLGJBi3dbXmjZaiRMbDWhNDFUqui8x61y3xDSKArN12Tj3f+ n02xTIUVfh6JeaCsDpDwHSTsc8a+pzAgD3gYFutxIrq1pOfykrm7A533Xqos1TeGXBGD 8T9+hoeB4Bu4Zvdddo2vFo2OxRu494oTQSO0V/ux9JzUT9a8e5S7nBxa55CcyJnVNZ+u hBw2pRSrr2yMWsdqL1mc9G0CUgWCMILTrk0NIrB1cOOwAKfDkvcpJSsxMlkAntgjUTKT Xq8A== X-Gm-Message-State: AElRT7FTWiFyHr+s201n83WSRF/ZRCFY1pysjjgudJIrz0vMu4m0tcaO c2BE/63IfSpz1XEmzqt/MODeC1MfS5ioFozNj8O9Qg== X-Google-Smtp-Source: AG47ELulsP313kfCBvxzufRCCf61U8O2hlXRzqfRJyog0jCMPZnD3N0XcFcLobL2HNISlRvv156mQjOzOfkhYK/UEpE= X-Received: by 10.28.176.134 with SMTP id z128mr8647914wme.86.1521806425410; Fri, 23 Mar 2018 05:00:25 -0700 (PDT) MIME-Version: 1.0 Received: by 10.28.69.220 with HTTP; Fri, 23 Mar 2018 05:00:23 -0700 (PDT) In-Reply-To: References: From: Dave Page Date: Fri, 23 Mar 2018 12:00:23 +0000 Message-ID: Subject: Re: Showstopper desktop runtime issue To: Magnus Hagander Cc: Joao De Almeida Pereira , Murtuza Zabuawala , pgadmin-hackers , Akshay Joshi , Neel Patel , Ashesh Vashi , Robert Eckhardt Content-Type: multipart/alternative; boundary="001a114110126764a10568132b6e" List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk --001a114110126764a10568132b6e Content-Type: text/plain; charset="UTF-8" On Thu, Mar 22, 2018 at 4:58 PM, Dave Page wrote: > > > On Thu, Mar 22, 2018 at 4:28 PM, Dave Page wrote: > >> >> 2) This option is not very appealing to me, because we would be pilling >>>> code into the QT portion of the application, that I hope we remove in the >>>> future, that currently is untested to solve a problem caused by a Window >>>> Manager...... >>>> I would be more in favor of creating a Application Indicator that would >>>> support 2 actions, Kill running pgAdmins and launch the browser to access >>>> them. There is a lot of interesting websites that talk about this, and how >>>> to develop. I had to download one to have a docker indicator..... But as I >>>> said in a previous thread, I believe that this should be a 3rd party >>>> application and not a first class citizen on pgAdmin, as the majority of >>>> the ones that I found are. >>>> >>> >>> I can't comment on the specific ways to sort it out, but I think >>> *basing* things in option 2 is by far the best option. If it's just an >>> additional add-on that can be made a dependency of the packages it's not a >>> huge problem (provided this add-on is available on the major platforms like >>> rhel, ubuntu, debian of course) >>> >> >> It would just be a modified version of what we have. Instead of having an >> icon in the system tray, we'd probably have multiple Start Menu icons to >> replace the tray icon menu. They would have to signal a running instance to >> do something, or become a new instance and then do the something if nothing >> is running already. >> > > Of course, another option here might be to figure out that we're running > under Gnome/GTK at runtime, and if so, create an indicator icon and menu > instead of the tray icon. That is, apparently, what Skype and other similar > apps do now. The indicator icons go on the right of the top menu bar (kinda > like where tray icons go on macOS). > I investigated this, and have failed to find anything about how to do this so far. However, the following does fix the problem: 1) # dnf install gnome-shell-extension-topicons-plus 2) Run gnome-tweak-tool 3) Enable TopIcons Plus There are apparently ways to enable the extension globally from the command line. Need to test that (and figure out if it would be considered bad form to do so). -- Dave Page Blog: http://pgsnake.blogspot.com Twitter: @pgsnake EnterpriseDB UK: http://www.enterprisedb.com The Enterprise PostgreSQL Company --001a114110126764a10568132b6e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Thu, Mar 22, 2018 at 4:58 PM, Dave Page <dpage@pgadmin.org><= /span> wrote:


On Thu, Mar 22, 2018 at 4:28 PM, Dave Page <dpage@pgadm= in.org> wrote:

2) This option is not very appealing=C2=A0to m= e, because we would be pilling code into the QT portion of the application,= that I hope we remove in the future, that currently is untested to solve a= problem caused by a Window Manager......
= I would be more in favor of creating a Appli= cation Indicator that would support 2 actions, Kill running pgAdmins and la= unch the browser to access them. There is a lot of interesting websites tha= t talk about this, and how to develop. I had to download one to have a dock= er indicator..... But as I said in a previous thread, I believe that this s= hould be a 3rd party application and not a first class citizen on pgAdmin, = as the majority of the ones that I found are.

I can't comment on the specific way= s to sort it out, but I think *basing* things in option 2 is by far the bes= t option. If it's just an additional add-on that can be made a dependen= cy of the packages it's not a huge problem (provided this add-on is ava= ilable on the major platforms like rhel, ubuntu, debian of course)

It would just be a m= odified version of what we have. Instead of having an icon in the system tr= ay, we'd probably have multiple Start Menu icons to replace the tray ic= on menu. They would have to signal a running instance to do something, or b= ecome a new instance and then do the something if nothing is running alread= y.

Of course= , another option here might be to figure out that we're running under G= nome/GTK at runtime, and if so, create an indicator icon and menu instead o= f the tray icon. That is, apparently, what Skype and other similar apps do = now. The indicator icons go on the right of the top menu bar (kinda like wh= ere tray icons go on macOS).=C2=A0

I investigated this, and have failed to find anything about= how to do this so far.

However, the following doe= s fix the problem:

1) # dnf install gnome-shell-ex= tension-topicons-plus
2) Run gnome-tweak-tool
3) Enable= TopIcons Plus

There are apparently ways to enable= the extension globally from the command line. Need to test that (and figur= e out if it would be considered bad form to do so).

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

EnterpriseDB UK: http://www.enterprisedb.com
The Enterpri= se PostgreSQL Company
--001a114110126764a10568132b6e--