~/.zekr directory shouldn't be owned by root!

Bug #685016 reported by MD
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
zekr (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: zekr

There is a problem in installing Zekr on Ubuntu 10.10.
When I was installing zekr using apt-get a message window poped up informing me that "Uthman-Taha experimental theme cannot be used.\nInstall ttf-me-quran to enable Uthman-Taha theme" and another message window poped up afterwards.
1. These information message windows should only be shown when a normal user launches zekr, not when zekr is getting installed using apt-get
2. The installation process creates ~/.zekr directory owned by the root in the current user's home directory! This will be troublesome for the current user.

The resolution:
I noticed that /usr/bin/zekr has been changed in the new version. The removal of the if [ -z "$*" ]; at the very beginning of the /usr/bin/zekr script has introduced this bug.
The creation of the ~/.zekr directory and showing the information messages should only be done when the script is called by a normal user not when it is called by apt-get installer with the indexing argument.

Related branches

Revision history for this message
Mohsen Saboorian (mohsens) wrote :

If ./zekr is owned by root, then Zekr cannot run properly. No resource (translation, recitation, etc.) can be added for a normal user.No HTML is created and shown. No search can be done, etc.

Mohsen

Revision history for this message
أحمد المحمودي (Ahmed El-Mahmoudy) (aelmahmoudy) wrote : Re: [Bug 685016] Re: ~/.zekr directory shouldn't be owned by root!

On Sat, Dec 04, 2010 at 04:28:04AM -0000, Mohsen Saboorian wrote:
> If ./zekr is owned by root, then Zekr cannot run properly. No resource
> (translation, recitation, etc.) can be added for a normal user.No HTML
> is created and shown. No search can be done, etc.
---end quoted text---

Ok, working on it.

--
 ‎أحمد المحمودي (Ahmed El-Mahmoudy)
  Digital design engineer
 GPG KeyID: 0xEDDDA1B7
 GPG Fingerprint: 8206 A196 2084 7E6D 0DF8 B176 BC19 6A94 EDDD A1B7

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package zekr - 1.0.0+repack-3

---------------
zekr (1.0.0+repack-3) experimental; urgency=low

  * debian/java_home: Add /usr to the top of the file, in order to first
    try the system's default java setting.
  * debian/zekr.sh: Do not create workspace dir when just running '-index all'
    or '-clean index-all', to avoid having user workspace dir created with
    root ownership during postinst/prerm. (LP: #685016)
 -- ALEFHAHMEEMDAL ALEFLAMMEEMHAHMEEMWAWDALYEH (Ahmed El-Mahmoudy) <email address hidden> Sat, 04 Dec 2010 14:23:37 +0200

Changed in zekr (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.