Displaying a Classification Banner at the top of each computer monitor in Gnome Desktop - gnome

I work in an environment where we have to have a security classification banner displayed at the top of each monitor on our Gnome Desktops. Currently, I am using a Perl/Tk window to display the classification of the system. However, that window cannot be moved because of the way it is built (no decorations) and occasionally overlays open windows making it difficult for users to manage those windows.
I would like to be able to do something different, but I'm not sure where to start. Three ideas I have are this:
An icon or something in the Top Bar showing the classification
A banner, like the Top Bar, that sits above the Top Bar
A window, like I already have, but relocatable
I figure the first option would be easiest, but since the Top Bar isn't shown on every monitor, that may not be the best option. I don't even know if the second option is even possible. The third option would require me to use something other than Perl/Tk but that's the only language I'm fluent in at the moment.
So I'm looking for suggestions or examples or Gnome extensions I can use to solve this problem.
Thanks.

There is a classification-banner python utility at https://github.com/fcaviggia/classification-banner. It's no longer maintained, but we've been using it without change for a few years now. It's OK. One problem is that it doesn't "shrink" the desktop screen, so application windows can overlap it; it's set to Always On Top, but it would be nicer if it actually couldn't be overlaid at all.
A simple solution, of sorts, would be to change the desktop background image. This can have issues if you're displaying on multiple resolutions (I don't know if Gnome supports SVG for such purposes) and of course it can be obscured by windows covering it.
Older versions of Gnome let you create multiple bars that worked perfectly, but that disappeared - along with many other customizations - in Gnome 3.

Related

set window icon tkinter macosx

This line works fine for my Windows program.
When i run this same file on the Mac OS X, I get a blank page instead of my icon.
Here is the windows line:
self.iconbitmap("Boss.ico")
I have searched relentlusly for an answer I want this icon to work on both platforms. self is the root Tk window if your wondering if it's root or not.
Note: I have tried using icns, .xbm , .gif by loading a photo image and setting thru window attributes all produce the same blank page on the mac.
After 5 days of searching, and this post having been viewed at least 15 times I went directly to the tk/tcl documentation. If I understand this correctly, apparently there is no way to properly set the icon for mac OS X without using special library or other sort of hacks. It would be nice if there were a mac specific documentation for the tkinter library but alas there isn't that I have found. here is the part of the documentation I found:
wm iconphoto window ?-default? image1 ?image2 ...? Sets the titlebar
icon for window based on the named photo images. If -default is
specified, this is applied to all future created toplevels as well.
The data in the images is taken as a snapshot at the time of
invocation. If the images are later changed, this is not reflected to
the titlebar icons. Multiple images are accepted to allow different
images sizes (e.g., 16x16 and 32x32) to be provided. The window
manager may scale provided icons to an appropriate size. On Windows,
the images are packed into a Windows icon structure. This will
override an ico specified to wm iconbitmap, and vice versa.
On X, the images are arranged into the _NET_WM_ICON X property, which
most modern window managers support. A wm iconbitmap may exist
simultaneously. It is recommended to use not more than 2 icons,
placing the larger icon first.
On Macintosh, this currently does nothing.
if anyone has a working solution please post this. I want to accomplish this so that any system can open a freshly installed python and run my application without installing any additional library.
#GarryHurst This is not a solution but I sort of get the idea now:
On Mac, TK decided that the icon will never appear on the window title bar.
Instead, it shows up as the app's Dock icon.
It's most probably a by-design or won't fix issue on their side.
It is showing the icon of the file you are putting in the directory so setting the file to be an app will set the window icon to be the icon of that app.
for example:
root.iconbitmap("/Users/homedir./Desktop/Test apps/Clicker.app")
tk window with icon
I have a coup. Why not change mind, like this.
The emoji library is enough to choose a good-looking icon.
We can do that.:-D
Code
Effect

What causes different icons to appear on different monitors in Windows 10?

We have customers reporting an issue with icons not appearing correctly in Windows 10. I am not able to reproduce the issue with our application, but it is similar in appearance to something that's happening with other programs on my computer. The first screenshot below is from a single computer. It is my task bar on my left and middle monitors. Notice that the "notepad++" icon on the left (it's the highlighted/active icon) is the original icon with the little chameleon sitting on a pencil (you will have to zoom in) and the one on the right just shows the text "n++".
Similarly the Sql Developer icon (immediately to the right of N++) also looks different on different monitors (demonstrating that even when the app's not running this is an issue).
In fact, as I was writing up this question I found that there is a difference between two means of getting at the icon resources in notepad++.exe. If I use IconsExtract (third party tool) on the exe I get the "n++" style icon, but if I right click on N++ in the task bar > Choose properties > Click "Change Icon" I get the chameleon on a pencil icon. You can see these two overlaid in the second image.
I can't for the life of me figure out how windows decides which icon to put where. I would be satisfied with a response that just told me where the two different n++ icons really are.
What it looks like on my monitors
Comparing the two methods of seeing icons
(Don't be fooled by the second chameleon which does appear to be the same.
I showed this to a coworker today and he knew the answer... the taskbar on the left was my laptop and I have configured the "size of text, apps, and other items" under "scale and layout" in the "display settings" for that screen to 150%. Changing the size to 100% caused the icons to become the same across all taskbars. I'm still looking for a good article with the details as to why, but changing the size definitely fixes the issue.

Animations Bar can't be found in Construct 2

I'm trying to do animations on Windows 10, but I can't find the animations bar. Is there a hotkey to bring up the Animations Bar?
Old bump. but still...
Maybe you should try to reset the dialogs.
File >> Preferences >> [Reset dialogs]
Sometimes Construct 2 pops up Windows in odd locations. If, for instance, you are using multiple monitors, the Animations Bar might have popped up on the other monitor, and maybe behind other applications. Not really sure why this happens, but I've certainly had to do some digging before. All in all, close all your other Windows and look around on other monitors. It should be there by default, just might be hidden :)

Matlab linux GUI glitches

I've been having this problem with the Matlab GUI (linux) that has been annoying me for over a year but I still haven't found a solution.
Basically, the autofix hints are not displayed. When I move the mouse cursor over a potential warning/suggestion, a gray-background pop-up appears but the text inside is missing. The same happens when I hover over those little warning bars on the right hand side of the editor. Does anyone have any clue what might be causing this?
Screenshot: http://i58.tinypic.com/4veu.png
This happens only on my linux machine (Ubuntu 14.04 LTS, NVidia GeForce with nvidia driver).
Thanks!
For those interested, this issue appears to be related to the Unity Desktop. Mathworks does not provide a fix but suggests using a different XServer instead. Here is the answer I received from support:
This issue is known to occur due to a windowing system used with
"linux" on which MATLAB has not been tested. It has been observed that
if you are using "Unity desktop" in "linux", then the tooltips are
displayed as blanks.
To work around this issue, you may try switching off "Unity desktop".
You can refer to the following links for more information on this
issue:
http://www.mathworks.com/matlabcentral/answers/116987-empty-tooltips-in-code-analyzer
matlab code analyzer produces empty tooltips
Indeed, I tried lubuntu and XUbuntu (Xfce) and the tooltips in Matlab were working in both cases. I find Unity very handy because I got used to it, so for now, I will probably simply not use this Matlab feature. Hopefully this will be fixed eventually.
It's an old post but some people may be still looking for a solution or a hack. Well, I also had this issue on R2015a when using two monitors and hiding Ubuntu 14.04 sidebar seems to do the trick. This link explains how to do it: http://www.howtogeek.com/198218/how-to-easily-hide-the-unity-launcher-in-ubuntu-14.04/. Hope it helps!
This is accomplished, in the article, by:-
1) Select “System Settings” from the drop-down menu.
2) The “System Settings” dialog box displays. In the “Personal”
section, click “Appearance.”
3) On the “Appearance” screen, click the “Behavior” tab.
4) On the right side of the “Behavior” tab, there’s an ON/OFF switch.
Click the switch so it reads ON.
5) The ON/OFF switch also turns orange. Additional options for how to
show the hidden Unity Launcher become available in the “Auto-hide the
Launcher” section of the “Behavior” tab. Under “Reveal location,”
select whether you want to move the mouse to any location on the “Left
side” or just to the “Top left corner” of the screen to reveal the
Unity Launcher. Use the “Reveal sensitivity” slider to change the
sensitivity of the reveal location.
6) Once you have chosen your settings, close the “Settings” dialog box
by clicking the “X” button in the upper-left corner of the dialog box.
This happens to me in Ubuntu 15.10 using xfce, with two monitors connected to an Nvidia GeForce 8600 GT, one of which is rotated to portrait orientation. The "workaround", from the page Anton linked, is to resize my matlab desktop such that the red underlined text or red scrollbar annotation is in the bottom third of my left monitor. Unbelievable.
My preferred workaround is to use Python+Scipy+Matplotlib instead of Matlab.

Opening a new browser page on the second monitor

Well, simple situation. Is it possible to detect if a user has a dual monitor setup from a web application?
If this is possible, is it possible to open a child browser page on this second monitor, so the new window doesn't overlap the old one?
Reason why I ask: I'm working on a web application and at home I have a dual-monitor system. When I go to the administration part of this site, I want it to open in a new browser, preferably on the other desktop. Of course, I could just click, then drag the new window, but doing this automatically seems more fun. :-)
Don't think JavaScript has the proper functions for this. How about Java itself?
I don't think you'll be able to directly detect a dual monitor setup, but you can probably make a good guess by looking at their screen resolution, using javascript's screen.width and screen.height. If the ratio of the width to the height is 8:3, its a good chance they have 2 standard 4:3 monitors side by side. You can do a similar calculation for 16:9 or 16:10.
Using maxpower47's suggestion about resolution, the only way to display the page on the other monitor would be to open a popup, and use the options to set the top, right, width and height properties so the window will appear on the second monitor in a decent size.
Here is a link that describes how to do this: http://www.netmechanic.com/news/vol4/javascript_no7.htm

Resources