[Utnubu-maintainers] Bug#382452: alacarte: check permissions on
~/.config
Shannon Eric Peevey
speeves at erikin.com
Mon Sep 4 03:36:36 UTC 2006
Package: alacarte
Version: 0.8-5
Followup-For: Bug #382452
When I was having the same problem with menu changes not taking effect, I ran /usr/bin/alacarte in pdb, and got the following output:
speeves at pitea:~/downloads/debian/alacarte-0.8/src/Alacarte$ pdb /usr/bin/alacarte
> /usr/bin/alacarte(20)?()
-> from Alacarte.GnomeFront import GnomeFront
(Pdb) n
> /usr/bin/alacarte(22)?()
-> def main():
(Pdb) c
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/Alacarte/GnomeFront.py", line 609, in on_entry_visible_toggled
self.save()
File "/var/lib/python-support/python2.4/Alacarte/GnomeFront.py", line 321, in save
self.app_handler.save()
File "/var/lib/python-support/python2.4/Alacarte/PyXDGMenuHandler.py", line 157, in save
xdg.MenuEditor.MenuEditor.save(self)
File "/var/lib/python-support/python2.4/xdg/MenuEditor.py", line 61, in save
self.__saveEntries(self.menu)
File "/var/lib/python-support/python2.4/xdg/MenuEditor.py", line 316, in __saveEntries
self.__saveEntries(entry)
File "/var/lib/python-support/python2.4/xdg/MenuEditor.py", line 314, in __saveEntries
entry.save()
File "/var/lib/python-support/python2.4/xdg/Menu.py", line 405, in save
self.DesktopEntry.write()
File "/var/lib/python-support/python2.4/xdg/IniFile.py", line 278, in write
os.makedirs(os.path.dirname(filename))
File "/usr/lib/python2.4/os.py", line 156, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.4/os.py", line 156, in makedirs
makedirs(head, mode)
File "/usr/lib/python2.4/os.py", line 159, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/speeves/.local/share'
Traceback (most recent call last):
File "/var/lib/python-support/python2.4/Alacarte/GnomeFront.py", line 609, in on_entry_visible_toggled
self.save()
File "/var/lib/python-support/python2.4/Alacarte/GnomeFront.py", line 321, in save
self.app_handler.save()
File "/var/lib/python-support/python2.4/Alacarte/PyXDGMenuHandler.py", line 157, in save
xdg.MenuEditor.MenuEditor.save(self)
File "/var/lib/python-support/python2.4/xdg/MenuEditor.py", line 62, in save
self.__saveMenu()
File "/var/lib/python-support/python2.4/xdg/MenuEditor.py", line 321, in __saveMenu
fd = open(self.filename, 'w')
IOError: [Errno 13] Permission denied: '/home/speeves/.config/menus/gnome-applications.menu'
Once I chown'd the folders to myuser.mygroup, then everything started to work.
I'm guessing that I started alacarte with sudo the first time, which chown'd everything to root.root. Should the documentation note that this is a per-user tool?
speeves
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-2-amd64
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)
Versions of packages alacarte depends on:
ii python 2.4.3-11 An interactive high-level object-o
ii python-glade2 2.8.6-5 GTK+ bindings: Glade support
ii python-gnome2 2.12.4-4 Python bindings for the GNOME desk
ii python-gtk2 2.8.6-5 Python bindings for the GTK+ widge
ii python-libxml2 2.6.26.dfsg-3 Python bindings for the GNOME XML
ii python-support 0.4.3 automated rebuilding support for p
ii python-xdg 0.15-1.1 A python library to access freedes
alacarte recommends no packages.
-- no debconf information
More information about the Utnubu-maintainers
mailing list