Giter VIP home page Giter VIP logo

Comments (24)

aaronlu avatar aaronlu commented on August 28, 2024

[aaron@aaronlu ~]$ dconf read /org/mate/panel/objects/object_2/prefs/cities

location name="" city="Shanghai" timezone="Asia/Shanghai" latitude="31.166668" longitude="121.433334" code="ZSSS" current="true"/

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

We found ot some interesting thing with Shanghai weather zone.
I choose Shanghai in the applet settings --- no icon displayed.
Than i open the applet and hover with the mouse over the clock in locations and clicked on the now displayed edit button
than i answered to the policy query, and than i saw the full moon icon of shanghai

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Ok, we have track down the issue more. Changing the weather location could be be also change the system time, which isn't allowed for a normal user account by this policy.
org.mate.settingsdaemon.datetimemechanism.settime
We was forced to change the policy from
<allow_active>auth_self_keep</allow_active>
to
<allow_active>auth_admin_keep</allow_active>
by this rhbz report.
https://bugzilla.redhat.com/show_bug.cgi?id=878102

I think your office system was installed with another timezone location than Shanghai.
In you screenshots i saw you're working for intel, right?
So i think the system was installed with 'Us' location first.
It seems that if you use vnc-session you've admin rights and won't be bother by this policy.

In result without admin rights you can't apply the setting by what i have described in previous post.
But for your home laptop that should be work.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

How can I tell which timezone I'm using now? I don't find a tool to display or set it.

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

system-config-date

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Just installed that package and run it as root, it shows my timezone is Shanghai...I used tzselect tool to set timezone just before I was told this package, don't know if that makes a difference. I can't verify if my local session could correctly display weather now since I'm at home, I'll check it tomorrow. Thanks.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Sorry, the weather still doesn't show up...

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Hmm, in the fedora report you said it is working for your home labtop, after you followed the prozedure which you described for yourself in the fedora report, right?
For your office desktop:
In this example i change from berlin to shanghai weather location.
Did you see and click on this button 'Set' in the main window after you change the weather location?
clock-applet
Did you enter the admin passwort in the popup policy query?
I did that and i see now the icon for Shanghai weather.
clock-applet2

Same must be done every time if you change the weather location.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Yes it is working for my home laptop, and I didn't try to use the 'Set' button by removing Shanghai and add it again to test on my office desktop yet. I'll be on vacation from tomorrow till 10/07, so I'll try it on my desktop when I'm back.

BTW, if that works, is it normal or there is some problem that should be fixed?

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

I don't think that this is an issue because it depends on which timezone was choosen at system installation. I did test this today with a fresh f20 installation in a VM.
Here i choose berlin/europe in anaconda setup as localisation.
After installation, if i choose shanghai/china as weather location i need to enter the root password in the policy query for displaying the icon.
If i choose berlin/europe the icon displayed directly without a policy query.

So if the weather location match the choosen timezone location from system installation the icon displayed directly.
For this reason i think your office system was installed first with another localization than shanghai/china from the system admin.
And a normal user account shouldn't be able to change the time of the whole system in a company ;)

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

The office system was installed by myself :-)
If I remembered correctly, I set Shanghai as as my timezone during installation.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

BTW, I do not need to do anything special in VNC session for the weather to show up. It just doesn't show up in local session, I think it should be a different problem.

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

But you can now set the local weather?

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

What do you mean by 'set the local weather'?

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

You can now set the shanghai weather at your office system?

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Yes, I set Shanghai as my location in clock->locations and my timezone is Asia/Shanghai.

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Ok, than you agree with me that this isn't a bug and we can close this report.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Err...I'm not sure, the problem is, I don't have weather show up in clock applet in local session. Is this a problem?

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Hmm, you can't set up the weather location in local session as i did described it in comment 9 ?
You only need to hover with the mouse over the clock in the main window, click on the 'Set' button and enter your admin password.

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

I can setup the weather location in local session and the problem is, the weather still doesn't show up.

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Ok, you set up the location.
Did you hover with the mouse over the clock in the main window, click on the 'Set' button and enter your admin password?

from libmateweather.

aaronlu avatar aaronlu commented on August 28, 2024

Yes I've done that, but I do not need to enter admin password, just my own password. This is the same as my home laptop. The problem is, the office desktop still have problem showing up the weather in a local session but not in a VNC session. I think it may be some odd problem and doesn't apply to other systems so may not worth the effort, please feel free to close it.

发自我的 iPad

在 2013年10月8日,下午6:45,Wolfgang Ulbrich [email protected] 写道:

Ok, you set up the location.
Did you hover with the mouse over the clock in the main window, click on the 'Set' button and enter your admin password?


Reply to this email directly or view it on GitHub.

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

"mark as can be closed" not a bug

from libmateweather.

raveit65 avatar raveit65 commented on August 28, 2024

Ps: you need the systemadmin password

from libmateweather.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.