Comments (19)
@Xinkai Does deepin-appstore (or qt ) support http_proxy environments ?
Control Center will set this environments. @fasheng
from deepin-appstore.
It seems that Qt doesn't read the related environment variables. However it should be a fairly easy feature to add.
from deepin-appstore.
Just use http://doc.qt.io/qt-5/qnetworkproxyfactory.html#setUseSystemConfiguration this ?
@Xinkai Can you submit a CL , so @Velociround can help testing in his work environment.
from deepin-appstore.
I am rewriting proxy module now. At first, i want to wrapper a low level net twork implementation such as iptable or some other methods, but looks it's not so easy. So we have to use the proxy envs or gsettings continue, and we'd better write it as a general Qt module so it could be append for other applications easily(the old c code in dde-workspace was dropped for a long time).
2016年2月25日 12:01, 12:01,在 xiabin [email protected] 已写:
Just use
http://doc.qt.io/qt-5/qnetworkproxyfactory.html#setUseSystemConfiguration
this ?@Xinkai Can you submit a CL , so @Velociround can help testing in his
work environment.
Reply to this email directly or view it on GitHub:
#1 (comment)
from deepin-appstore.
I have more information about proxy in Deepin, maybe it helps: this problem seems to be widespread in Deepin. I could not find any app that works using the global system proxy settings.
Sometimes, when I reboot the system, one of the proxies (apparently at random, every time is a different one) changes to port 0. I always check this when I reboot, and change to the correct port.
The 0 port also appears when I do ~$ echo $http_proxy
after this problem occurs.
After pressing "Apply system wide", ~$ echo $http_proxy $https_proxy $ftp_proxy
always shows the correct proxy settings.
The global proxy settings only set the lower case environments. Upper case ~$ echo $HTTP_PROXY $HTTPS_PROXY $FTP_PROXY
does not print anything.
Here's the apps I tried so far (none of them are able to connect to the internet because they are not picking up the proxy settings):
- deepin-appstore
- geary (connects to work internal mail network and shows mail but does not load any external images from internet)
- gnome-calendar (does not connect to any internet calendar)
- gnome-todo (is not able to create lists - maybe not related)
- gnome-weather (can not show weather information for any city)
- apps.com.google.map (opens a blank window because it requires internet to open the webpage)
- apps.com.pixlr (opens a blank window because it requires internet to open the webpage)
- apps.net.skyinc (opens a blank window because it requires internet to open the webpage)
- Firefox (using "system proxy" settings does not work; however, it works when I override the proxy in Firefox settings)
Blank windows from internet-only apps (all look the same):
- Google Chrome does not work at all, not even using
~$ google-chrome --proxy-server=host:port
or~$ google-chrome-stable --proxy-server=host:port
, and is not able to override proxy settings
Is there somewhere else I should open an issue about this? Can you help me? Thank you very much
from deepin-appstore.
Thanks for the detailed report. Someone noticed it before in our bugzilla.
Well, I must say, google-chrome works before, but it read gnome proxy gsettings like firefox in latest version. So we will sync our proxy setting to gnome to solve it this time. Please ignore KDE, there is another implemntation for it, maybe we will support it in future...
from deepin-appstore.
Just so you know, Deepin has just updated the deepin-appstore (and some 660MB of other packages and Deepin patches), but the issue remains.
I also had some problems when trying to install this update; I only have 2 trustworthy mirrors: official (slow, 10KB/s) and Brazilian (fastest, 1MB/s+). The other mirrors I tried all have some kind of security problem (unsigned, no public key, unverified keys, etc). The Brazilian mirror did tell me about the update but it didn't have the update files (yet? 404 Not Found for all packages when trying ~$ sudo apt-get upgrade
) so I had to update from the Control Center GUI using Official Mirror, because only this way it seemed to resume downloading the packages after failed attempts (rather than start from the beginning like apt-get seemed to be doing).
The update froze several times, requiring me to reboot the system because Control Center wouldn't tell me what the problem was and wouldn't let me stop / restart / resume either (I figured it out using apt-get to read the error messages).
Even after finishing the download ("0 bytes left"), Control Center wouldn't let me update.
Then, I changed the mirror to Brazilian in /etc/apt/sources.list , did ~$ sudo apt-get update
then ~$ sudo apt-get upgrade
, and it started upgrading all of the already downloaded packages (which I was very happy about, because when it showed "0/660MB downloaded" on the confirmation screen, I thought it would download it all again).
After apt-get finished upgrading all packages, Control Center still had the "Deepin patches" update left to install (even though apt-get showed "nothing to upgrade"). I tried to upgrade Deepin patches again through the GUI, and now it successfully installed.
Just to make it clear: Deepin patches only upgraded after I did ~$ sudo apt-get upgrade
. It failed all previous attempts to updating when using only the Control Center GUI.
It seemed to me like Deepin patches had some of the packages that would be upgraded as its dependencies (so it needed to upgrade the packages first, and Deepin patches later), but Control Center apparently wanted to upgrade Deepin patches first, therefore failing. This is just a wild guess based on what I observed.
I rebooted, tested the proxy again (same problem), and here I am now.
Can I / should I report bugs on your Deepin bugzilla or something? I don't know the address or anything else about it. I can't use the deepin-feedback (Deepin User Feedback) because I don't have working proxy settings (and failed to find specific proxy settings for it), so it simply doesn't work / doesn't send the reports.
I see @fasheng is currently rewriting the proxy module. Thank you very much! Please let me know if there's something I can do to help.
Thank you again!
from deepin-appstore.
Sorry for the trouble..
Yes, you could report the updating problem to bugzilla, it's the first choice in most time. But for the github users, report it as a github issue is just fine, our developers will pay attention to it, too.
Looks the problem is appstore related, so you could split your comment to another issue here :)
from deepin-appstore.
deepin-appstore use system proxy now, please wait for the next release 4.0.8
.
BTW: The applications that read proxy settings from environment variables require restart after proxy changed.
from deepin-appstore.
I just got the update yesterday and I'm glad to say it works. Thank you.
A few apps still don't seem to work (e.g.: weather), but I'll open separate issues for them.
There's just one problem with the deepin-appstore: it doesn't offer the authentication window for proxy. I have to set the proxy user and password in proxy settings in order for it to work. If I don't set user:[email protected] on proxy settings, Chrome, Firefox and Geary (apps I tested) offer me the proxy authentication window, but deepin-appstore simply says something failed.
from deepin-appstore.
authentication window for proxy.
Oh, it''s not seems that easy for offering this for every application.
But we have to think of this situation.
@hualet @fasheng
from deepin-appstore.
Well, if the client application(here is Qt) doesn't provide proxy auth dialog feature, we can do very little...
from deepin-appstore.
I still have this problem with deepin store. I haven't set any proxy, my deepin system is fairly vanilla, largely unmodified from the default.
The only modifications I've made is I've installed a few applications and added a few files to /etc/apt/sources.list.d/ in order to install extra apps and edited /etc/apt/preferences to do some apt pinning (e.g. I wanted RuneScape's NXT Client instead of the old Java client in the deepin repos, I also wanted 0 A.D. 22nd alpha instead of the 21st which is in the deepin repos).
I've successfully logged in to the deepin store, so at least that works. Trying to post comments fails, like I can enter the comment but when I click "Publish" it says it failed to publish it. Other than this deepin seems to be working perfectly. No issues with connecting to websites occur in my browser. I can comment on GitHub fine, so it certainly seems like the deepin store is what has the problem.
from deepin-appstore.
@fusion809 try deepin-appstore -c
?
from deepin-appstore.
@snyh Crashed with https://pastebin.com/umjtphbV.
from deepin-appstore.
the warning log is about gtk2 theme configure.
The gtk theme problem unlikely cased by deepin-appstore.
What OS you are running? Please paste the package list by running dpkg -l
or correspondent command if you aren't under debian.
deepin-appstore -c
just clean the cache. After the clean. You should run deepin-appstore normally.
from deepin-appstore.
OS: deepin 15.5 (up to date, I regularly update with APT at the command-line)
Package list: https://gist.github.com/f5bb03e45b68e4299c5d9b9b292072a1
After cache clean I can't seem to sign in, I get a bad gateway error. Here's what deepin-appstore
returns when I start appstore from the command-line: https://gist.github.com/3b5e520039331686d8a169598133dd88
from deepin-appstore.
It should be ok now. The problem is in appstore's server.
from deepin-appstore.
Ah yes it's working now, thanks.
from deepin-appstore.
Related Issues (20)
- No apps in store HOT 2
- No search results found HOT 2
- ctrl <F> does not set focus to search
- ctrl <Q> does not quit app store
- Search suggestions don't disappear after search
- 编译时找不到libqcef如何解决?
- App rating: Star selection is a bit broken HOT 1
- Network Error : HOT 1
- Feature request: bigger screenshots on HDPI screens
- suggestion box stays open after search
- Only display installed app in the store HOT 3
- can't build with source format '3.1.0 (native)': native package version may not have a revision HOT 1
- installing APP Store on ubuntu error HOT 1
- Deepin can't install applications if the user is created on command adduser instead dde-control-center HOT 2
- 登录按钮点击没反应 HOT 13
- 总是找不到,不知道是怎么回事 HOT 1
- 关于下载的建议
- 本地应用有新版本时自动升级
- BUG:15.11版本的云端应用,自动安装新引用不好使
- Software behind API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from deepin-appstore.