After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 587371 - crash on start if ~/.local does not exist
crash on start if ~/.local does not exist
Status: RESOLVED FIXED
Product: pitivi
Classification: Other
Component: General
Git
Other All
: Normal critical
: 0.13.2
Assigned To: Alessandro Decina
Pitivi maintainers
Depends on:
Blocks:
 
 
Reported: 2009-06-29 22:14 UTC by francis felidae
Modified: 2009-06-30 09:17 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description francis felidae 2009-06-29 22:14:40 UTC
Steps to reproduce:
1. Get a clean Linux installation without .local folder
2. install pitivi
3. start pitivi


Stack trace:
francis@felidae:~$ pitivi
Traceback (most recent call last):
  • File "/usr/bin/pitivi", line 118 in <module>
    _run_pitivi()
  • File "/usr/bin/pitivi", line 113 in _run_pitivi
    sys.exit(ptv.main(sys.argv))
  • File "/usr/lib/pitivi/python/pitivi/application.py", line 366 in main
    add_to_timeline=options.add_to_timeline)
  • File "/usr/lib/pitivi/python/pitivi/application.py", line 274 in __init__
    Pitivi.__init__(self, *args, **kwargs)
  • File "/usr/lib/pitivi/python/pitivi/application.py", line 126 in __init__
    self.settings.get_local_plugin_path(),
  • File "/usr/lib/pitivi/python/pitivi/settings.py", line 242 in get_local_plugin_path
    xdg_data_home(autocreate),
  • File "/usr/lib/pitivi/python/pitivi/settings.py", line 97 in xdg_data_home
    os.path.join(os.getenv("HOME"), ".local", "share")), autocreate)
  • File "/usr/lib/pitivi/python/pitivi/settings.py", line 79 in get_dir
    os.mkdir(path)
OSError: [Errno 2] No such file or directory: '/home/francis/.local/share'
francis@felidae:~$ 


Other information:
Seems to happen on every version, also from git
Comment 1 Alessandro Decina 2009-06-30 09:17:26 UTC
commit 577678e27de4e78034866c211293c8df41f51b22
Author: Alessandro Decina <alessandro.d@gmail.com>
Date:   Tue Jun 30 11:14:04 2009 +0200

    Fix crash if $HOME/.local/share doesn't exist. Fixes #587371.