Changing Default Folders
Since my phone is not rooted can I change the default startup directory and the directory termux downloads packages to that way I can be able to access those folders whenever needed to?
59 Replies
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Main reason I'm asking is cause I want to use a python script that grabs stuff for me yet I would need to edit a config.toml file to have my login cookies info and so I can set the desired download location
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
python tool that allows me to download music while using my quobuz account
this to be more specific:
https://github.com/nathom/streamrip
GitHub
GitHub - nathom/streamrip: A scriptable music downloader for Qobuz,...
A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer - GitHub - nathom/streamrip: A scriptable music downloader for Qobuz, Tidal, SoundCloud, and Deezer
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
i know about that rule
I kinda achieve such bit by bit everywhere with some handy scripts, I think you should be able to move things onto internal storage when needed or smth
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
youre talking about changing whole prefix though, right?
ye
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
its possible, but is it comfortable and worth the effott? Im not sure
Im talking about moving the whole prefix
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
i have this set up on my pc just want to have it set up on my phone also for on the go ripping for my server
that can be done without moving prefix
like
you know theres the downloads folder made by Termux right?
you dont even have to use it
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
for example, here's my
termux-url-opener
, so its triggered by sharing links to Termux:
https://github.com/INFU-AV/ChaosCode/blob/main/scripts/termux-url-openerGitHub
ChaosCode/scripts/termux-url-opener at main · INFU-AV/ChaosCode
Organised chaos of dotfiles and handy scripts of Audio-Visual Zealot - ChaosCode/scripts/termux-url-opener at main · INFU-AV/ChaosCode
ye but it's having the stuff being stored in /data that needs root access to be able to access the python packages and edit the config.toml file with my account info
hmmm
unless python packages are stored in a non froot location
well in Termux you dont have root
unless you like
root your phone
... huh
wait shouldnt it be opposite?
IK
like
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
They just wanna download shit on Termux, where's breaking the law?
unless I missed it - Im bit sleep deprived and stuff lol
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
wtf is qobuz first time hearing bout it
is it like spotify?
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
technically it is illegal but meh. it's like when i rip my blurays to my pc for backup, sure i break the copyright protection added to the disc but i ain't doing any harm to anyone
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
Im in a tough place cause Im very "no piracy" person here ( I gotta be, as admin 😩 ) buuuuuut my inner archive/hoarder instinct tells me to help here
i still have the account with quobuz so as long as i still have that account
so youre just risking your account, hope you know that, blah blah okay so why you need root for
you shouldnt need that
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
like, Termux doesnt need root access in most cases have you noticed
cause i thought the python source i downloaded via the
pip3 install streamrip --upgrade
command wouldv'e gotten stored in the same root folder the termux packages are downloaded to. and if it is i need to access to be able to edit the config file with my account infocompared to your usual WSL, that begs for sudo everytime you sneeze
even if it does, you should have perms to edit it
Unknown User•12mo ago
Message Not Public
Sign In & Join Server To View
check with the package you downloaded where they store configs
usually its somewhere in the home folder
but if not, you should be still easily able to edit it no matter where it is
only thing you cant fiddle with is Android built-in stuff
unless you got actually rooted phone, then its different talk, but you get me
Isn't this where most termux stuff gets added to?
Can't see termux folder cause non root obviously
hmmm can you check it using Termux?
cause thats the usual recent Android bullshit, where apps cannot easily access another apps data
scoped storage
If you wanna edit stuff in Termux, I recommend some Termux app for it
like, Im using Emacs myself
NGL i'm setting up a bluestack instance with root access to do some digging around. (probably should've done this first before comming here tbh)
uhhhh
That sounds like fuckton of extra work
Checking it up online, looks like your app is looking for
config.toml
you should be able to access it using this command
@AIMW is that what you were looking for?
ye thx
In Linux there's usually more than one way to do things - Glad you didnt have to redo entire system to get to your solution 👌
that would be waste of time and energy lol
no i'm still doing that lol
lol why
cause am bored anyway lol
I thought thats all you wanted
oh alrighty
cant stop you there
Have fun lol
oh it is but neede to check some other things from apps that download/store files in the root of the device
you can access phone's storage no problem
its the apps data its difficult
bit a rooting i should be able to see everything anyway
oh ive used this before and had the same issue
putting this in config should fix it
theres still an archive of my old config if you wanna check it out
https://github.com/nathom/streamrip/issues/195
GitHub
[BUG] Video download failed · Issue #195 · nathom/streamrip
Describe the bug this only happens with all tidal videos, meanwhile songs are working fine Command Used rip url https://tidal.com/video/48204106 -vvv Debug Traceback DEBUG:streamrip:Config loaded D...