Bug#254951: Reproducing bug #254951

2004-09-06 Thread Oliver Korpilla

Hello!

I've seen the following strange occurence in ~/.kde/share/config/kickerrc after
trying to reproduce your "special" behaviour for mozilla-firefox:

[ServiceButton_4]
DesktopFile=/var/lib/menu-xdg/applications/menu-xdg/wterm.desktop
FreeSpace=0
StorageId=wterm.desktop

[ServiceButton_5]
DesktopFile=/usr/share/applications/mozilla-firefox.desktop
FreeSpace=0
StorageId=:mozilla-firefox.desktop

[ServiceButton_6]
DesktopFile=/usr/share/applications/mozilla-thunderbird.desktop
FreeSpace=0
StorageId=mozilla-thunderbird.desktop

Note, that after the changes took effect and the session was saved,
:mozilla-firefox.desktop was put there instead of mozilla-firefox.desktop, same
goes for mozilla-thunderbird.desktop, if you change that. If you edit that file 
and exit KDE, contents will be the same on startup (so Kicker stores it kickerrc 
when you go down).


/var/lib/menu-xdg/applications/menu-xdg/ is treated differently in this respect 
than /usr/share/applications (where a lot of the KDE apps reside, too).


There seem to be no obvious reason, because both the .desktop files in the dirs 
have the same permissions and owner: root.root with -rw-r--r--.


With kind regards,
Oliver Korpilla



Bug#254951: Reproducing bug #254951

2004-08-08 Thread Andrew G. Luyt
On August 7, 2004 06:15 pm, Josh Metzler wrote:
> On Saturday 07 August 2004 02:30 pm, Andrew G. Luyt wrote:
> > I have encountered this bug as well, and it seems only to affect
> > non-KDE applications.  Reproducing the problem:
> >
> > Right click on the panel to bring up the context menu.  Select
> > Add->Application Button->Debian->Apps->Net->Gaim (any non-KDE
> > application will have the same problem)
> > Right click on the newly-created button to bring up its context menu
> > and select Properties.
> > Click the icon, select a new one and click OK
> > The error message will be
> > "Could not save properties. You do not have sufficient access to write
> > to /var/lib/menu-xdg/applications/menu-xdg/gaim.desktop"
> >
> > Other symptoms: chmod a+w
> > /var/lib/menu-xdg/applications/menu-xdg/*.desktop fixes the problem
> > temporarily, but the permissions are usually reset after an apt-get
> > update && apt-get upgrade and the problem reappears.
> >
> > Platform:
> > Debian Unstable i386 (updated August 7, 2004)
> > Kernel 2.6.7-1-k7
> > libc6 2.3.2.ds1-15
> > kicker 3.2.3-1
>
> I don't know what the correct behavior is here - should kicker make a copy
> of the files and edit the copy? (If so, this is a kicker bug) or should
> changes be made to the system wide file, in which case the menu-xdg package
> should set looser permissions?

It appears as though kicker should copy the file and edit it.  
The one successful icon change I made to a non-KDE application 
(Mozilla Firefox) has a corresponding .desktop file in
~/.kde/share/apps/kicker/mozilla-firefox.desktop
where the Icon=someIconName line is modified.  The only other
files in this directory are .desktop files for KDE applications
whose icons I have changed.

However, when I manually copied the gaim.desktop file into
the .kde directory as above and then changed the Icon=
line, the icon for Gaim did not change.  This behaviour seems to be
the same for most non-KDE applications, and the only one I have
found so far that I can change the icon for is Mozilla Firefox, which
incidentally shows up in KDE's Internet menu automatically.

Andrew



Bug#254951: Reproducing bug #254951

2004-08-07 Thread Josh Metzler
On Saturday 07 August 2004 02:30 pm, Andrew G. Luyt wrote:
> I have encountered this bug as well, and it seems only to affect
> non-KDE applications.  Reproducing the problem:
>
> Right click on the panel to bring up the context menu.  Select
> Add->Application Button->Debian->Apps->Net->Gaim (any non-KDE
> application will have the same problem)
> Right click on the newly-created button to bring up its context menu
> and select Properties.
> Click the icon, select a new one and click OK
> The error message will be
> "Could not save properties. You do not have sufficient access to write
> to /var/lib/menu-xdg/applications/menu-xdg/gaim.desktop"
>
> Other symptoms: chmod a+w
> /var/lib/menu-xdg/applications/menu-xdg/*.desktop fixes the problem
> temporarily, but the permissions are usually reset after an apt-get
> update && apt-get upgrade and the problem reappears.
>
> Platform:
> Debian Unstable i386 (updated August 7, 2004)
> Kernel 2.6.7-1-k7
> libc6 2.3.2.ds1-15
> kicker 3.2.3-1

I don't know what the correct behavior is here - should kicker make a copy 
of the files and edit the copy? (If so, this is a kicker bug) or should 
changes be made to the system wide file, in which case the menu-xdg package 
should set looser permissions?

As a more permanent workaround, to change permissions yourself in a way that 
will last across upgrades, see dpkg-statoverride.  Though, from the man 
page it looks like you might need to change them a file at a time.

Josh



Bug#254951: Reproducing bug #254951

2004-08-07 Thread Andrew G. Luyt
I have encountered this bug as well, and it seems only to affect
non-KDE applications.  Reproducing the problem:

Right click on the panel to bring up the context menu.  Select
Add->Application Button->Debian->Apps->Net->Gaim (any non-KDE
application will have the same problem)
Right click on the newly-created button to bring up its context menu
and select Properties.
Click the icon, select a new one and click OK
The error message will be
"Could not save properties. You do not have sufficient access to write 
to /var/lib/menu-xdg/applications/menu-xdg/gaim.desktop"

Other symptoms: chmod a+w /var/lib/menu-xdg/applications/menu-xdg/*.desktop
fixes the problem temporarily, but the permissions are usually reset 
after an apt-get update && apt-get upgrade and the problem reappears.

Platform:
Debian Unstable i386 (updated August 7, 2004)
Kernel 2.6.7-1-k7
libc6 2.3.2.ds1-15
kicker 3.2.3-1