maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Applications (https://talk.maemo.org/forumdisplay.php?f=41)
-   -   [M5] [Announce] OpenSSH status widget (https://talk.maemo.org/showthread.php?t=95429)

rasmarc 2015-05-12 17:30

Re: [Announce] OpenSSH status widget
 
1 Attachment(s)
Quote:

Originally Posted by ThomasAH (Post 1470109)
Even when the server is turned off, every once in a while the 'SSH' icon appears in the top tray-icon area (right of the clock) very briefly. It usually happens when I (dis)connect from a internet connection, or update my repositories. It even happens when "Stop tracking status when off" is enabled.

Do you have any idea why this might happen?

I found out the proper command to hide the icon from the status area is different from what i used - (None) instead of empty brackets.

May I ask you to
  • download the attached file
  • remove the .txt suffix
  • copy it into /usr/lib/hildon-desktop
  • make it executable
  • restart the status menu from the configuration dialog's menu
  • start and stop the server
and check out if the icon won't appear anymore (i can't securely reproduce the effect you described).

ThomasAH 2015-05-12 19:29

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1470148)
I found out the proper command to hide the icon from the status area is different from what i used - (None) instead of empty brackets.

May I ask you to
...
and check out if the icon won't appear anymore (i can't securely reproduce the effect you described).

Did what you asked: downloaded and placed python file in correct directory, renamed and chmod +x, restarted status menu, restarted and stopped SSH server.

Now waiting to see if it will still occur... Will report back tomorrow! ;)

PS.: I am still running 1.2-1, not 1.2-2, I don't know if that's of importance?

rasmarc 2015-05-12 19:55

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by ThomasAH (Post 1470165)
Now waiting to see if it will still occur... Will report back tomorrow! ;)

PS.: I am still running 1.2-1, not 1.2-2, I don't know if that's of importance?

Thank you for this. Your version is ok for that, it's in fact 1.2-2 including this change to try hiding the icon properly, except that the about pop up from the config dialog still says 1.2-1.:eek:

handaxe 2015-05-12 20:05

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1470148)
[*]download the attached file

I am testing this too.

What would be nice, is if the ssh indicator icon displayed yellow when a connection was present, grey/white when server running but no connection.

Very nice contribution this.

handaxe 2015-05-13 13:20

Re: [Announce] OpenSSH status widget
 
Sadly, the app indicator icon still disappears when it should not.

rasmarc 2015-05-13 13:36

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by handaxe (Post 1470227)
Sadly, the app indicator icon still disappears when it should not.

To be sure, you have "Stop tracking status when off" enabled, and after the server has been running a certain time with no users connected, the display switches to off, right?

To increase timeout, you could open /usr/lib/hildon-desktop/openssh-status-widget.py and in line 162
Code:

if self.sshJustOff < 1:
give the condition a higher value. Then restart the status menu.

handaxe 2015-05-13 14:12

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1470228)
To be sure, you have "Stop tracking status when off" enabled, and after the server has been running a certain time with no users connected, the display switches to off, right?

All of those are correct.

I will implement what you suggest.

I have seen this actually happen, when using a drop down menu in Yappari - "ssh" there one minute, drop down, then it was gone. Certainly not reproduceable on demand, however.

ThomasAH 2015-05-13 14:40

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by handaxe (Post 1470227)
Sadly, the app indicator icon still disappears when it should not.

Same for me.

Quote:

Originally Posted by rasmarc (Post 1470228)
To be sure, you have "Stop tracking status when off" enabled, and after the server has been running a certain time with no users connected, the display switches to off, right?

Yup!

Quote:

To increase timeout, you could open /usr/lib/hildon-desktop/openssh-status-widget.py and in line 162
Code:

if self.sshJustOff < 1:
give the condition a higher value. Then restart the status menu.
I'll try that!

rasmarc 2015-05-13 19:56

Re: [Announce] OpenSSH status widget
 
1 Attachment(s)
Quote:

Originally Posted by handaxe (Post 1470175)
What would be nice, is if the ssh indicator icon displayed yellow when a connection was present, grey/white when server running but no connection.

An option "Show status 'connected' in status area" is added and enabled by default. I modified the "SSH" icon to show an additional "user" symbol above the letters. The idea of giving it a yellow color confused me a bit, I prefer the yellow color being associated with "server on", so i kept the white color of the status area icon.

The "timeout" feature got a modification. Status "off" is now displayed without a delay again. Instead there's a follow-up time of 10 seconds for tracking. If the display still switches to "off" while the server keeps running, there has to be a yet uncovered conflict with something else ;).

Before uploading I'll wait for some feedback regarding the two actual issues, mistaken switching to "off" and appearing icon in the status area. I attached the deb file of v1.3-pre.

handaxe 2015-05-13 23:00

Re: [Announce] OpenSSH status widget
 
Quote:

Originally Posted by rasmarc (Post 1470265)
I modified the "SSH" icon to show an additional "user" symbol above the letters.

Ok, this has me just a tad confused - what "ssh" icon do you refer to here? Because, if it is the icon that displays next to the battery icon visible from the desktop, then I see nothing there indicating a connection.

[silly me - you were referring to this version and indeed such a marker appears. I think it is a little cluttered and changing it to orange would be a simpler way of showing the same. My 2 cents worth :-) ]

I was referring to that "ssh" icon. I accept your rationale regarding yellow, but what if it displayed orange when a connection(s) was active. In the drop down that shows when the battery area is pressed, orange is used to show the no. of active connections, hence my preference now for that colour.

I will test 1.3-pre. So far, modifying the parameter as you suggested a few posts back to 3 seems to give stability, but let's see wgat your new approach brings....


All times are GMT. The time now is 15:20.

vBulletin® Version 3.8.8