You are Here:
Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.



Widget Quirk

Author (Read 2209 times)

0 Members and 1 Guest are viewing this topic.

Widget Quirk
« on: November 08, 2016, 12:14:59 PM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
Interesting little quirk in the behavior of the new widget. When I open up XFCE4 terminal, Logged in as: reads trinidadtrinidad in the widget. When I exit the terminal it reverts back to the single entry - trinidad. Does not do this with LX terminal, or ROX terminal, only XFCE4 terminal. Not sure why yet.

Wow just tried it again, opened three XFCE4 terminals and got: trinidadtrinidadtrinidadtrinidad.

Also does it with UX terminal, and X terminal. Tried changing defaults but makes no difference.

TC
Last Edit: November 08, 2016, 12:33:42 PM by trinidad
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 


Re: Widget Quirk
« Reply #1 on: November 08, 2016, 01:39:54 PM »
 

unclebaldie

  • New to Forums
  • *
  • 14
    Posts
  • Country: england
  • Reputation: 3
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel i3 @ 3.20gHz

  • MEMORY: 4Gb
Yep, same thing happens on my Conky/widget.


Had me worried for a while, until I figured out that the widget displays 'users' (plural) and opening a terminal is another 'user' access, or something like that - I'm sure that someone else has a more elegant explanation! I am happy to be corrected (only by mistakes do we learn).


HTH
Phil

 

Re: Widget Quirk
« Reply #2 on: November 08, 2016, 03:30:46 PM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
This is going to be an issue for me as it adds the user for new tabs as well, six tabs, six users. I prefer the XFCE terminal on my client desktops because of the customizations it allows, but I like the new highly visible widget as well. I want both to work so I'm searching now for the cause. As I said before this does not occur with LXterm, or ROXterm but I do not want to use them on my client boxes.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Widget Quirk
« Reply #3 on: November 08, 2016, 04:45:05 PM »
 

unclebaldie

  • New to Forums
  • *
  • 14
    Posts
  • Country: england
  • Reputation: 3
  • Linux Lite Member

  • Linux Lite: 3.2 64bit

  • CPU: Intel i3 @ 3.20gHz

  • MEMORY: 4Gb
@TC,

Don't know if this helps.
There is an environment variable set named $USER.
In the ~/.conky/widget, there is a line, towards the bottom of the file:

${color}Logged in as:   ${alignr}${color}${user_names}

I edited the line as follows (alteration in red);

${color}Logged in as:   ${alignr}${color}$USER

It now displays my username, and opening an XFCE4-terminal does not add the name again.
It seems to have fixed that problem, but maybe others can advise if this will have any adverse effect ?


HTH,
Phil

 

Re: Widget Quirk
« Reply #4 on: November 09, 2016, 05:19:07 AM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
Yep. I should have noticed that. The brackets would allow for notifications of logins of root, which of course doesn't happen in Ubuntu setup to use sudoers, and not su root like Debian in the terminal. Easy to miss. Thanks. It's a safe change. Fixed just fine for me. All my clients will be single users. I'll test it tomorrow on a multi user desktop.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 

Re: Widget Quirk
« Reply #5 on: November 23, 2016, 09:03:20 PM »
 

Jerry

  • Linux Lite Creator
  • Administrator
  • Platinum Level Poster
  • *****
  • 7019
    Posts
  • Country: nz
  • Reputation: 652
  • Linux Lite Member
    • Linux Lite OS

  • Linux Lite: 3.8 64bit

  • CPU: Intel Xeon Dual CPU's E5645 2.4GHz 12 Cores

  • MEMORY: 16Gb

  • VIDEO CARD: nVidia GeForce GTX 960
Upon reflection, I'm going to go with $USER in the next Lite Widget. Have you tested this yet tc (multi users)?
 

Re: Widget Quirk
« Reply #6 on: November 24, 2016, 10:22:09 AM »
 

trinidad

  • Gold Level Poster
  • *******
  • 990
    Posts
  • Country: us
  • Reputation: 178
  • Linux Lite Member
    • dbts-analytics.com

  • Linux Lite: 4.4 64bit

  • CPU: AMD A8 5500 4 cores

  • MEMORY: 8Gb

  • VIDEO CARD: AMD/ATI Radeon HD 7560D
I have tried a variety of scripts with conditionals, attempting to get the {user_name} to display root when sudo is used. $USER will only display the user name logged in from lightdm login. I intend to fix this. When the terminal goes to sudo I want Conky to change the name to root or sudo, or at least add a warning message. I think the {uid_name} function might do this with an {if_match} conditional but I haven't got it working yet. It is definitely in the works for me though. May have to root the whole widget with user permission to enable on/off. As you know this is problematic with "ioctl" error reporting in root, which is not a good fix because every ssh and bashrc config file has to match with root. Ubuntu thing.

TC
All opinions expressed and all advice given by Trinidad Cruz on this forum are his responsibility alone and do not necessarily reflect the views or methods of the developers of Linux Lite. He is a citizen of the United States where it is acceptable to occasionally be uninformed and inept as long as you pay your taxes.
 


Tags:
 


Linux Lite 4.6 Final has been released. See the Release Announcements section for more information.