Bug 703642 - [PATCH] [abrt] gnome-tweak-tool-3.0.3-1.fc15: utils.py:68:update_start_at_login:IOError: [Errno 2] No such file or directory: '/home/esammons/.config/autostart/nautilus.desktop'
Summary: [PATCH] [abrt] gnome-tweak-tool-3.0.3-1.fc15: utils.py:68:update_start_at_log...
Keywords:
Status: CLOSED DUPLICATE of bug 704598
Alias: None
Product: Fedora
Classification: Fedora
Component: gnome-tweak-tool
Version: 15
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Michel Alexandre Salim
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:57322d3b56d5fd80136991572f9...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-10 22:07 UTC by Eric Sammons
Modified: 2011-06-30 11:11 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-30 11:11:56 UTC
Type: ---


Attachments (Terms of Use)
Patch to fix 703642 / 703339 / 703207 / 702387 (1.35 KB, patch)
2011-05-12 08:52 UTC, Richard Hitt
no flags Details | Diff

Description Eric Sammons 2011-05-10 22:07:16 UTC
abrt version: 2.0.1
architecture:   i686
cmdline:        python /usr/bin/gnome-tweak-tool
comment:        Tried to set up "Have File Manager Handle Desktop"  "On"
component:      gnome-tweak-tool
executable:     /usr/bin/gnome-tweak-tool
kernel:         2.6.38.5-24.fc15.i686
os_release:     Fedora release 15 (Lovelock)
package:        gnome-tweak-tool-3.0.3-1.fc15
reason:         utils.py:68:update_start_at_login:IOError: [Errno 2] No such file or directory: '/home/esammons/.config/autostart/nautilus.desktop'
time:           Tue May 10 15:16:22 2011
uid:            500
username:       esammons

backtrace:
:utils.py:68:update_start_at_login:IOError: [Errno 2] No such file or directory: '/home/esammons/.config/autostart/nautilus.desktop'
:
:Traceback (most recent call last):
:  File "/usr/lib/python2.7/site-packages/gtweak/tweaks/tweak_nautilus.py", line 39, in _on_setting_changed
:    self.settings.get_boolean(key))
:  File "/usr/lib/python2.7/site-packages/gtweak/utils.py", line 68, in update_start_at_login
:    new = open(self._autostart_file, "w")
:IOError: [Errno 2] No such file or directory: '/home/esammons/.config/autostart/nautilus.desktop'
:
:Local variables in innermost frame:
:self: <gtweak.utils.AutostartManager instance at 0xb71ce5cc>
:old: <open file '/usr/share/applications/nautilus.desktop', mode 'r' at 0xb74196a8>
:update: True

Comment 1 Richard Hitt 2011-05-12 08:52:14 UTC
Created attachment 498478 [details]
Patch to fix 703642 / 703339 / 703207 / 702387

The attached patch fixes four bugs.  The problem was that ~/.config/autostart might not exist; the patch does a mkdir for the directory if it does not find a writable directory of that name.  The fix is to gtweak/utils.py

The fixed bugs are 703642 (this one), and obvious duplicates 703339, 703207, and 702387.

Comment 2 Kevin Fenzi 2011-05-14 19:52:54 UTC
Denoting that there is a patch here to solve several bugs. ;)

Comment 3 Michel Alexandre Salim 2011-06-30 11:11:56 UTC
Fixed by upstream in 3.0.5

*** This bug has been marked as a duplicate of bug 704598 ***


Note You need to log in before you can comment on or make changes to this bug.