| Summary: | [abrt] policycoreutils-python-2.1.4-10.fc16: sandbox:316:__parse_options:AttributeError: Sandbox instance has no attribute 'dpi' | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Kevin Fenzi <kevin> | ||||||||
| Component: | policycoreutils | Assignee: | Daniel Walsh <dwalsh> | ||||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||||
| Severity: | unspecified | Docs Contact: | |||||||||
| Priority: | unspecified | ||||||||||
| Version: | 16 | CC: | amit.shah, bressers, bugzilla, cristian.ciupitu, dwalsh, mgrepl, pcfe | ||||||||
| Target Milestone: | --- | ||||||||||
| Target Release: | --- | ||||||||||
| Hardware: | x86_64 | ||||||||||
| OS: | Unspecified | ||||||||||
| Whiteboard: | abrt_hash:0dd3f27511983aaef5af41cc1dcefc5f0326abc9 | ||||||||||
| Fixed In Version: | policycoreutils-2.1.4-12.fc16 | Doc Type: | Bug Fix | ||||||||
| Doc Text: | Story Points: | --- | |||||||||
| Clone Of: | Environment: | ||||||||||
| Last Closed: | 2011-12-10 19:46:32 UTC | Type: | --- | ||||||||
| Regression: | --- | Mount Type: | --- | ||||||||
| Documentation: | --- | CRM: | |||||||||
| Verified Versions: | Category: | --- | |||||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||||
| Bug Depends On: | |||||||||||
| Bug Blocks: | 494832, 757370, 757920 | ||||||||||
| Attachments: |
|
||||||||||
|
Description
Kevin Fenzi
2011-11-22 21:42:37 UTC
What does /usr/bin/xrdb -query output? Xft.antialias: 1 Xft.hinting: -1 Xft.hintstyle: hintslight Xft.rgba: rgb Xcursor.theme: Xcursor.theme_core: true Xcursor.size: 0 Package: policycoreutils-python-2.1.4-10.fc16 Architecture: x86_64 OS Release: Fedora release 16 (Verne) Comment ----- 1. Have F15 installed 2. Install (not update) F16, keeping old /home 3. use sandbox command from bash history Meaning, I am not sure if the command to cal has not changed between F15 and F16. If it is a PEBKAC, please excuse the noise. Created attachment 536287 [details]
output of /usr/bin/xrdb -query
*** Bug 757370 has been marked as a duplicate of this bug. *** *** Bug 757920 has been marked as a duplicate of this bug. *** It seems xrdb doesn't contain this information anymore. It can be found from xdpyinfo.
% xdpyinfo| fgrep resolution
resolution: 96x96 dots per inch
As a hacked up workaround, you can add this to the sandbox script:
def __set_dpi(self):
self.dpi='96' <--- Add this line
rc, out = commands.getstatusoutput("/usr/bin/xrdb -query")
if rc != 0:
Created attachment 538068 [details]
Patch that resolves this issue
Here's a patch that fixes the issue. I admit, how it finds the dpi info is a bit dodgy.
Created attachment 538088 [details]
A somewhat more python friendly patch
This patch does things in a more python friendly manner. On a very slow computer the user may notice a small window pop up and vanish while the dpi is calculated via tk. I'll leave it up to the author to decide how they want to approach this solution.
print gtk.settings_get_default().props.gtk_xft_dpi/1024 Seems to do it. Fixed in policycoreutils-2.1.4-11.fc16 policycoreutils-2.1.4-12.fc16 has been submitted as an update for Fedora 16. https://admin.fedoraproject.org/updates/policycoreutils-2.1.4-12.fc16 Package policycoreutils-2.1.4-12.fc16: * should fix your issue, * was pushed to the Fedora 16 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing policycoreutils-2.1.4-12.fc16' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2011-16658/policycoreutils-2.1.4-12.fc16 then log in and leave karma (feedback). policycoreutils-2.1.4-12.fc16 has been pushed to the Fedora 16 stable repository. If problems still persist, please make note of it in this bug report. |