Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

إضافة خاصية تغير مكان ملف التحميلات #88

Closed
ahmadmourad opened this issue Jul 16, 2024 · 1 comment · Fixed by #92
Closed

إضافة خاصية تغير مكان ملف التحميلات #88

ahmadmourad opened this issue Jul 16, 2024 · 1 comment · Fixed by #92
Assignees
Labels
enhancement New feature or request

Comments

@ahmadmourad
Copy link

ahmadmourad commented Jul 16, 2024

The feature request

أريد خاصية اختيار مكان التحميلات

Proposed solution

لتوفير المساحة في الـ root directory

@0xzer0x 0xzer0x added the enhancement New feature or request label Jul 16, 2024
@0xzer0x 0xzer0x self-assigned this Jul 16, 2024
@0xzer0x
Copy link
Owner

0xzer0x commented Jul 26, 2024

Assalamualaikum,

As a temporary solution, symbolic links can be used to move the downloads directory to another location. Here is a bash script that does so.

#!/bin/bash
set -euo pipefail

declare old_location="$HOME/.local/share/QuranCompanion"
# NOTE: Modify this. Data will be in /path/to/new/dir/QuranCompanion
declare new_location="/path/to/new/dir"

[[ -L "$old_location" ]] && echo "'$old_location' is a symlink already!" && exit 1
[[ ! -d "$old_location" ]] && echo "'$old_location' is not a directory!" && exit 1

mv "$old_location" "$new_location"
ln -s "$new_location/QuranCompanion" "$old_location"

@0xzer0x 0xzer0x mentioned this issue Aug 24, 2024
@github-project-automation github-project-automation bot moved this from Todo to Done in Quran Companion Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

2 participants