Database error when attempting to create web app

Bug #1024766 reported by Alfredo Maldonado Guerra
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Fogger
New
Undecided
Unassigned

Bug Description

This is for fogger 0.2.1

Database error when attempting to create web app

Repro steps:
Run from command line:
/opt/extras.ubuntu.com/fogger/bin/fogger
This opens fogger UI window. Add this info in UI:
URL: www.facebook.com
Name: facebook
Click Create

UI doesn't say whether operation was successful or not. But in terminal window you can see this output:

BEGIN OUTPUT
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `Window' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
/usr/lib/python2.7/dist-packages/gi/overrides/Gtk.py:391: Warning: g_object_set_property: construct property "type" for object `FoggerWindow' can't be set after construction
  Gtk.Window.__init__(self, type=type, **kwds)
Traceback (most recent call last):
  File "/opt/extras.ubuntu.com/fogger/fogger/FoggerWindow.py", line 151, in create_app
    app = manager.create(name, url, self.icon)
  File "/opt/extras.ubuntu.com/fogger/fogger_lib/FogApp.py", line 270, in create
    app = FogApp()
  File "/opt/extras.ubuntu.com/fogger/fogger_lib/FogApp.py", line 43, in __init__
    self.state_db = get_state_db()
  File "/opt/extras.ubuntu.com/fogger/fogger_lib/DB.py", line 42, in get_state_db
    state_db = state_db or StateDB()
  File "/opt/extras.ubuntu.com/fogger/fogger_lib/DB.py", line 16, in __init__
    self._con = sq.connect(db_path)
sqlite3.OperationalError: unable to open database file
END OUTPUT

Inside ~/.local/share/applications you will notice a file called: fogger-26cae7718c32180a7a0f8e19d6d40a59.desktop
Contents of file:
BEGIN CONTENTS
[Desktop Entry]
Name=facebook
Comment=facebook
Categories=Network;WebBrowser;
Exec=/opt/extras.ubuntu.com/fogger/bin/fogger 26cae7718c32180a7a0f8e19d6d40a59
TryExec=/opt/extras.ubuntu.com/fogger/bin/fogger
Icon=/home/alfredo/.local/share/fogapps/26cae7718c32180a7a0f8e19d6d40a59/icon.svg
Terminal=false
Type=Application
StartupNotify=true
Keywords=fogger;fogapp;
END CONTENTS

If you go to Unity Dash and search for facebook, you will find a fogger facebook app, but when you click on it, nothing happens.

My system: Ubuntu 12.04 LTS, 64-bit

Please let me know if I can give further info.

Thanks,
Alfredo

Revision history for this message
Owais Lone (loneowais) wrote :

Thanks for reporting. This was already fixed. Please update from ppa.

Revision history for this message
Alfredo Maldonado Guerra (alfredomg) wrote :

Excellent! It works now. Thanks for the quick fix!!

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.