Bug 233881 - installer script creates user write protected directory when installing to home directory
Summary: installer script creates user write protected directory when installing to ho...
Status: RESOLVED FIXED
Alias: None
Product: basket
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Debian testing Linux
: NOR normal
Target Milestone: ---
Assignee: Kelvie Wong
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-09 21:21 UTC by Martin Steigerwald
Modified: 2010-09-26 05:06 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
patch for the installer file. (2.50 KB, patch)
2010-04-23 00:58 UTC, Jeff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Steigerwald 2010-04-09 21:21:47 UTC
Version:           1.80 aka 2.0 Beta 1 (using KDE 4.4.2)
OS:                Linux
Installed from:    Debian testing/unstable Packages

installer script wants sudo rights and creates user write protected directory when installing into home directory (choice 2):

martin@shambhala:~/.kde/share/apps#1> LANG=C rm -r basket 
rm: descend into write-protected directory `basket/welcome'? y
rm: remove write-protected regular file `basket/welcome/Welcome_en_US.baskets'? y
rm: cannot remove `basket/welcome/Welcome_en_US.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_nn.baskets'? y
rm: cannot remove `basket/welcome/Welcome_nn.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_pt.baskets'? y
rm: cannot remove `basket/welcome/Welcome_pt.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_ru.baskets'? y
rm: cannot remove `basket/welcome/Welcome_ru.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_it.baskets'? y
rm: cannot remove `basket/welcome/Welcome_it.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_de.baskets'? y
rm: cannot remove `basket/welcome/Welcome_de.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_fr.baskets'? y
rm: cannot remove `basket/welcome/Welcome_fr.baskets': Permission denied
rm: remove write-protected regular file `basket/welcome/Welcome_ja.baskets'? y
rm: cannot remove `basket/welcome/Welcome_ja.baskets': Permission denied

martin@shambhala:~/.kde/share/apps> stat basket/welcome/Welcome_de.baskets
  File: „basket/welcome/Welcome_de.baskets“
  Size: 369269          Blocks: 728        IO Block: 4096   reguläre Datei
Device: 805h/2053d      Inode: 1339346     Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2010-04-09 20:54:32.937450937 +0200
Modify: 2010-02-13 04:36:34.000000000 +0100
Change: 2010-04-09 20:46:14.297497498 +0200

Expected results:

All files installed to the home directory are owned by the user. The installer script shouldn't require sudo password either when installing to home directory.
Comment 1 Jeff 2010-04-23 00:58:59 UTC
Created attachment 42976 [details]
patch for the installer file.
Comment 2 Jeff 2010-04-23 01:00:13 UTC
Comment on attachment 42976 [details]
patch for the installer file.

I had the same issue, so I modified the install file. It should now install to
the user's directory properly, and it should start/restart basket after the
install. Note: I never tested the system wide installation.
Comment 3 Robert Marmorstein 2010-05-28 02:34:09 UTC
Has this been applied?  Can it be closed?

(I don't use the installer -- I install by hand)
Comment 4 Matt Rogers 2010-09-26 05:06:45 UTC
Merge request containing the fix integrated. Closing.