Bug 703642

Summary: [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'
Product: [Fedora] Fedora Reporter: Eric Sammons <esammons>
Component: gnome-tweak-toolAssignee: Michel Alexandre Salim <michel>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: michel, satellitgo
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Unspecified   
Whiteboard: abrt_hash:57322d3b56d5fd80136991572f9aa0e333930113
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-30 11:11:56 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Patch to fix 703642 / 703339 / 703207 / 702387 none

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 ***