Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-04-16 Thread Neil C Smith
On Mon, 6 Jan 2020 at 19:16, Neil C Smith  wrote:
> Thanks.  Just had a bit of time to dig into this.  I can replicate
> your issue with the duplicate launcher icon appearing, as of 11.2 -
> earlier versions are fine.  I can't replicate the WM_CLASS of the IDE
> window being wrong, but it seems the splash now has a WM_CLASS of
> java.lang.Thread - is that what you ran xprop on?  Earlier versions
> don't seem to have any WM_CLASS on the splash as far as I can tell.
> Changing the desktop file to run NetBeans with --nosplash seems to fix
> the duplicate icon issue.  Not sure what changed to cause this - I
> thought the splash screen changes went into 11.1?!

Quick follow up.  I was hoping to put together a simple fix for this
for 12.0, but looks likely more complicated to achieve than I hoped -
need to move/copy code from
https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123
to 
https://github.com/apache/netbeans/blob/master/platform/core.startup/src/org/netbeans/core/startup/Splash.java
since Eirik's changes, which is easy enough, but the correct value is
not available there.  Workaroundable, but possibly intrusive change
now.

Another workaround appears to be to make sure the .desktop file
matches the name of the window - eg. apache-netbeans-ide-11.3.desktop
appears to stop the duplication.  We might want to do that with the
installer too.

Not sure why this doesn't affect the Snap - different launching logic I guess.

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-06 Thread Neil C Smith
On Sat, 4 Jan 2020 at 19:41, ronald marangwanda
 wrote:
> Im on Ubuntu 18.04 and the java im using is openjdk version "11.0.5"

Thanks.  Just had a bit of time to dig into this.  I can replicate
your issue with the duplicate launcher icon appearing, as of 11.2 -
earlier versions are fine.  I can't replicate the WM_CLASS of the IDE
window being wrong, but it seems the splash now has a WM_CLASS of
java.lang.Thread - is that what you ran xprop on?  Earlier versions
don't seem to have any WM_CLASS on the splash as far as I can tell.
Changing the desktop file to run NetBeans with --nosplash seems to fix
the duplicate icon issue.  Not sure what changed to cause this - I
thought the splash screen changes went into 11.1?!

Note that my StartupWMClass line above was wrong - should be (note
"IDE" was missing)

StartupWMClass=Apache NetBeans IDE 11.2

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-04 Thread ronald marangwanda
Im on Ubuntu 18.04 and the java im using is openjdk version "11.0.5"

Thanks,

On Sat, 4 Jan 2020 at 04:49, Neil C Smith  wrote:

>
>
> On Fri, 3 Jan 2020, 23:16 Laszlo Kishalmi, 
> wrote:
>
>> It shall work, here is the line from the Snap package:
>>
>> StartupWMClass=Apache NetBeans IDE 11.2
>>
>> It was confirmed to work for 11.2
>>
> Given the xprop output in the original email I'm not sure it is
> everywhere. It also feels familiar. I'll see if I can replicate.
>
> Ronald, can you share your JDK version and vendor.
>
> Best wishes,
>
> Neil
>
>>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-04 Thread Neil C Smith
On Fri, 3 Jan 2020, 23:16 Laszlo Kishalmi, 
wrote:

> It shall work, here is the line from the Snap package:
>
> StartupWMClass=Apache NetBeans IDE 11.2
>
> It was confirmed to work for 11.2
>
Given the xprop output in the original email I'm not sure it is everywhere.
It also feels familiar. I'll see if I can replicate.

Ronald, can you share your JDK version and vendor.

Best wishes,

Neil

>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi
Yes this is the user list. We have a separate one called dev for those 
who has the interest!


On 1/3/20 3:23 PM, zahid wrote:


is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to 
netbeans for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what
the correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
   ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid

is this the right emailing list for users of NetBeans because I have no

interest in developing anything for  netbeans just use want to netbeans 
for developing web applications ?



On 03/01/2020 23:16, Laszlo Kishalmi wrote:


It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what the
correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here 
doesn't work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi

It shall work, here is the line from the Snap package:

StartupWMClass=Apache NetBeans IDE 11.2

It was confirmed to work for 11.2

On 1/3/20 3:10 PM, Neil C Smith wrote:



On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
mailto:ronald.marangwa...@gmail.com>> 
wrote:


I added that line to the .desktop file but I do not know what the
correct WMClass for Apache Netbeans 11.2 is.


Ah, sorry, you're right - it should match the value you get from 
xprop. And does seem like the code to set WM_CLASS linked here doesn't 
work any more?!


https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123 



Best wishes,

Neil



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Neil C Smith
On Fri, 3 Jan 2020, 21:36 ronald marangwanda, 
wrote:

> I added that line to the .desktop file but I do not know what the correct
> WMClass for Apache Netbeans 11.2 is.
>

Ah, sorry, you're right - it should match the value you get from xprop. And
does seem like the code to set WM_CLASS linked here doesn't work any more?!

https://github.com/apache/netbeans/blob/master/platform/core.windows/src/org/netbeans/core/windows/view/ui/MainWindow.java#L123


Best wishes,

Neil

>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread zahid


You have not mentioned  ubuntu version , so I am hesitant to answer.

I too have created  desktop shortcut manually.

I prefer to use install kubuntu  directly after after I install ubuntu 
gnome.


because I do not want of deprive myself of free  stuff.

Anyway I have found the two important settings are

path to executable and path to icon.

I have never come across WMCLASS.

Here is  a copy of my  Netbeans  desktop short cut for kubuntu on ubuntu 18.

[Desktop Entry]
Comment[en_GB]=
Comment=
Exec=/home/kub18/netbeans/bin/netbeans
GenericName[en_GB]=
GenericName=
Icon=/home/kub18/netbeans/nb/netbeans.png
MimeType=
Name[en_GB]=NetBeans 11
Name=NetBeans 11
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=




On 03/01/2020 21:35, ronald marangwanda wrote:

Hi Neil,

Ok, thanks.

I added that line to the .desktop file but I do not know what the 
correct WMClass for Apache Netbeans 11.2 is. When I enter the line you 
posted as is, I still get the duplicate icons when I launch the 
application, which means its not the correct WMClass.

What is the correct value to enter for the WMClass?
I prefer installing manually so the snap solution is not going to help me.
Ron

On Fri, 3 Jan 2020 at 12:21, Neil C Smith > wrote:


On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
mailto:ronald.marangwa...@gmail.com>> wrote:
> I created a .desktop file for Gnome 3 on Ubuntu.
...
> Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

Best wishes,

Neil


--
www.backbutton.co.uk
  ¯\_(ツ)_/¯
♡۶ Lynx text browser
recover crashed ms-word .doc with ms-debug.



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread ronald marangwanda
Hi Neil,

Ok, thanks.

I added that line to the .desktop file but I do not know what the correct
WMClass for Apache Netbeans 11.2 is. When I enter the line you posted as
is, I still get the duplicate icons when I launch the application, which
means its not the correct WMClass.
What is the correct value to enter for the WMClass?
I prefer installing manually so the snap solution is not going to help me.
Ron

On Fri, 3 Jan 2020 at 12:21, Neil C Smith  wrote:

> On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
>  wrote:
> > I created a .desktop file for Gnome 3 on Ubuntu.
> ...
> > Does netbeans not set the WM_CLASS correctly? How do I fix this?
>
> The answer's in your question! ;-)  Make sure to add the WM_CLASS line
> to the .desktop file
>
> eg.
>
> StartupWMClass=Apache NetBeans 11.2
>
> Best wishes,
>
> Neil
>


Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Laszlo Kishalmi
Also if you install it from https://snapcraft.io/netbeans then the 
desktop file would be correct.


On 1/3/20 9:21 AM, Neil C Smith wrote:

On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
 wrote:

I created a .desktop file for Gnome 3 on Ubuntu.

...

Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



Re: WM_CLASS property is set to java-lang-Thread Nebeans 11.2

2020-01-03 Thread Neil C Smith
On Fri, 3 Jan 2020 at 16:24, ronald marangwanda
 wrote:
> I created a .desktop file for Gnome 3 on Ubuntu.
...
> Does netbeans not set the WM_CLASS correctly? How do I fix this?

The answer's in your question! ;-)  Make sure to add the WM_CLASS line
to the .desktop file

eg.

StartupWMClass=Apache NetBeans 11.2

Best wishes,

Neil

-
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists