Hiding "JavaEmbeddedFrame"

Please post suggestions for improvement of Cinnamon here
https://github.com/linuxmint/Cinnamon
Post Reply
zerubbabel
Level 2
Level 2
Posts: 67
Joined: Tue Oct 04, 2011 5:47 pm

Hiding "JavaEmbeddedFrame"

Post by zerubbabel » Fri Jun 01, 2012 6:10 pm

After doing a clean install of Mint 13/Cinnamon, and then restoring my home directory and apps, all is well except for one annoying thing: When I run Jitsi (a Java app), "JavaEmbeddedFrame" appears in my task bar. This did not happen under Mint 12/Cinnamon. How can I make it go away? I tried switching to Oracle/Sun jre 7, but that didn't change anything.

zerubbabel
Level 2
Level 2
Posts: 67
Joined: Tue Oct 04, 2011 5:47 pm

Re: Hiding "JavaEmbeddedFrame"

Post by zerubbabel » Mon Jun 11, 2012 5:33 pm

Bump...

dest4131
Level 1
Level 1
Posts: 1
Joined: Thu Nov 10, 2011 6:19 am

Re: Hiding "JavaEmbeddedFrame"

Post by dest4131 » Mon Dec 10, 2012 12:56 pm

bump…! :)

Kryuysi22
Level 1
Level 1
Posts: 18
Joined: Thu Dec 05, 2013 5:04 pm

Re: Hiding "JavaEmbeddedFrame"

Post by Kryuysi22 » Thu Dec 12, 2013 3:53 am

bump

*uu
Level 1
Level 1
Posts: 10
Joined: Wed Aug 14, 2013 10:41 am

Re: Hiding "JavaEmbeddedFrame"

Post by *uu » Mon Feb 12, 2018 6:18 pm

As this still was an issue for me – Ubuntu 17.10 artful with Cinnamon 3.4.6 from Ubuntu's default software sources, using "Icing Task Manager" as my task bar/window list –, here's a "fix" (rather a workaround) that hopefully works for others, too. This fix should not be limited to Cinnamon, though. Certainly, neither issue nor fix are limited to Linux Mint. This should work in any Desktop Environment or applet that makes use of the *.desktop files in /usr/share/applications/ and ~/.local/share/applications/ for applications menu and/or docks/task list/task bar.

Create a plain-text file in the following sub-folder within your $HOME directory (create sub-folders if necessary – that's what the -p switch below is for). The name of the file itself does not really matter, the filename extension is the important part. For the sake of this example, let's call the file hide-JavaEmbeddedFrame.desktop. Run the following two commands, one after the other, in a terminal window as your normal user:

Code: Select all

mkdir -p ~/.local/share/applications/

Code: Select all

gedit ~/.local/share/applications/hide-JavaEmbeddedFrame.desktop
Of course, instead of gedit you can use whichever text editor you feel comfortable with or that is installed on your system, such as nano/pico, vim, emacs, pluma, sublime-text, ...

Paste the following content into the new and empty file opened by your text editor, save the file and exit the editor:

Code: Select all

[Desktop Entry]
Version=1.0
Name=Hide JavaEmbeddedFrame
Comment=Hide the invisible JavaEmbeddedFrame window created by some Java applications (like jDownloader) and visible in some docks or task lists/task bar applets
Terminal=false
Type=Application
NoDisplay=true
StartupWMClass=sun-awt-X11-XEmbeddedFramePeer
I think, the lines starting with Name= and Comment= are, in fact, optional, as this information should not be displayed or used anywhere (prohibited by NoDisplay=true). However, I recommend leaving these lines there in case you stumble upon this long-forgotten file in a few months or years and wonder what the heck it is good for. ;) Of course, you can adjust their text to your liking, translate it to your language, whatever you like. The other lines are necessary as is (well, the Terminal= line might not be, but I really don't feel like diving into the horrible and incomplete documentation of .desktop files right now :twisted:).

In case of Cinnamon, you might have to restart Cinnamon (Ctrl+Alt+Esc or Alt+F2 and enter r or Alt+F2 and enter cinnamon --replace or right-click on panel > Troubleshoot > Restart Cinnamon). Same goes for other Desktop Environments: you might have to restart them for the changes to take effect. Or simply log out and back in again.

If this fix works for you, and you want to apply it system-wide – hence, for all users on the machine –, simply move the hide-JavaEmbeddedFrame.desktop file as root to the /usr/share/applications/ folder.

Post Reply

Return to “Cinnamon”