Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I am trying to make a python app that basically views a web page with QUICKLY on Ubuntu 12.04.

When I do sudo quickly run in terminal, I always get this error:

(saikoroubuntu:5283): GLib-GIO-ERROR **: Settings schema
'org.gnome.desktop.interface' is not installed

What seems to be the issue?

Here is my code:

 #!/usr/bin/env python


import gtk
import sys
from PyQt4.QtCore import *
from PyQt4.QtGui import *
from PyQt4.QtWebKit import *

app = QApplication(sys.argv)

web = QWebView()
web.load(QUrl("http://shifat.tk/apps/saikoro/ios"))
web.show()

sys.exit(app.exec_())

I'm basically using the code I found on Stackoverflow: "How to make a simple cross-platform webbrowser with Python?"

share|improve this question
1  
You probably want to remove the import gtk. Gtk is an alternative to Qt, so you wouldn't normally use both in one application. Also, you probably don't need sudo to run your app. –  Thomas K Oct 1 '12 at 12:18
    
running the code code you posted (with a different url...) with import gtk and with or without sudo works for me. I guess you have to give more information. Are you really using the standard Ubuntu 12.04? –  xubuntix Oct 2 '12 at 11:50

1 Answer 1

quite later, but try to install gsettings-desktop-schemas.

share|improve this answer
2  
Perhaps you can explain how you would do that, what this would do, the risks etc. –  fossfreedom Apr 8 '13 at 8:07
1  
For posterity, this solution worked for me. Just run "sudo apt-get install gsettings-desktop-schemas". –  Adam Thomason Aug 16 '13 at 20:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.