StartAsRoot for File-browser

Rating: 
4.5
Your rating: None Average: 4.5 (10 votes)

It will create icon to start file-browser app as root. File Browser app should be installed on your device...

v0.2-4
- Should fix problem with root access.

v0.2-3
* Tablet version

v0.2-3
* Adaptation for 1.1.1.27

v0.2-2
* fix for uninstallation

v0.2
* Inserting root pass not needed anymore ! :)

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
File filebrowserroot-0.1-1.armv7hl.rpm7.19 KB05/02/2014 - 13:03
File filebrowserroot-0.2-1.armv7hl.rpm6.76 KB07/02/2014 - 02:53
File filebrowserroot-0.2-2.armv7hl.rpm6.99 KB20/02/2014 - 03:29
File filebrowserroot-0.2-3.armv7hl.rpm7 KB30/12/2014 - 03:29
File filebrowserroot-0.2-3.i486.rpm6.95 KB01/10/2016 - 03:31
File filebrowserroot-0.2-4.i486.rpm7.28 KB26/07/2017 - 03:12
File filebrowserroot-0.2-4.armv7hl.rpm7.32 KB26/07/2017 - 03:12
Changelog: 

- Should fix problem with root access.

Comments

PizzaProgram's picture

Thank you VERY much for writing this app for SailFishOS!
It helped me to alter a file to be able to start OTA update on a Redmi (mido) device. :)

Schturman's picture

You are welcome ;)

Marold's picture

Hi thank You for Your work but I have returning problem, I dont use root privileges on file.browser very often but when I need to do it there is no icon and I have to first uninstall patch of yours (witch didnt work on sfos3) and install this again. This is getting very frustrating as it happened to me 3rd time today and now Im sure that I didn't gone mad and I had installed this on current device. Please fix this, how this is even possible? Thank You for Your hard work and time, best regards.

Schturman's picture

Hi.
What device you use ?
I don't have any problem with patch version or this app. Just now checked it on Tablet (SFOS3 + PM2) and Jolla1 (SFOS3 + PM3). On the both devices it instaled 3-4 weeks ago and icons still there and it work like it should.
Icon disappear only if patch unapplied.

Marold's picture

I want to use separate icon but it keeps getting uninstalled automatically. Im using XperiaX with SFOS3 . Thanks for helping me out :) Edit: Im using PM2

Schturman's picture

If you install patch of this app, it automatically uninstall this app. Before installing it, unapply and uninstall patch of this app. Try it and report. 

Marold's picture

i didnt installed by my will Your Patch even once but over the time it gets automatically switched and then I unapply Your patch and uninstall it (I cant install this without uninstalling patch version) then Im installing this once more and use it for some kind of Stuff. Next time I want to use it, lets say next day or two and puff its gone. I didn't even know that patch installed itself automatically and I was surprised that I had problem reinstalling this. Wandering through Patchmanager I spot that patch is installed. To be honest I've tried patch if its working (I still prefer this version tho) and it wasn't. Patch was applied but no root privileges were present. Hope I described it well. Thanks again for investigating this problem.

objectifnul's picture

"as root" patches don't work with Sfos v3. Non-patch "as root" apps may be installed, but only one of them. If you try to install a new one, it will destroy the existing one (or you just can't install it, depending on unclear circumstances)

pvcn's picture

Thanks for your instant answer, now i see that the app i had installed was outdated, but how can it be that it converts to a patch and installs patchmanager by itself?

Schturman's picture

My app shouldn't do this. The second one (patch) have dependency to patchmanager and you don't have it, you can't install it.

pvcn's picture

Strange Behaviour after update to SFOS3: I had the StartASRoot for Filebrowser APP installed, after the Update, it says, i had the PATCH installed. I didn't even have Patchmanager installed before the Update, seems like the APP converted to the PATCH and installed Patchmanager somehow.

Schturman's picture

This app is old one and it not patch.

objectifnul's picture

The red Nemo/Root indicator in cover no longer shows up with latest release of Filebrowser.

Schturman's picture

It never was in Filebrowser... It was and still exist on CargoDock root...

objectifnul's picture

This is how the Filebrowser cover (with startasroot) looks like on my Jolla phone (filebrowser not upgraded):

See HERE

On my Xperia (filebrowser just upgraded from Harbour), the "ROOT mode" warning is not displayed.

Schturman's picture

Ohhh, now I understand what you mean... From you screenshot you use patch: https://openrepos.net/content/schturman/patch-startasroot-file-browser and not this standalone app.

objectifnul's picture

Oops, you are right, it's your patch. It doesn't show the 'ROOT mode' warning anymore after recent Filebrowser upgrade.

ferlanero's picture

An absolute  must to in Sailfish OS. But unfortunately it doesn't seem to work Sailfish X. I can't access root privileges to modify "non home" places :(

Schturman's picture

I know, but don't know how to help... Read below....

objectifnul's picture

On Xperia X with SailfishX, I had to install sudo (pkcon install sudo) and to set root password (sudo passwd) to gain true root privileges with all "startasroot" file managers (filebrowser, cargodock, filetug, filecase)

Schturman's picture

Hmmm.. ok... but why you need install sudo for setting pass for root ? You can't do it with devel-su and sett pass for root ?

objectifnul's picture

I agree in principle, but that wasn't enough. Don't ask me why...

Schturman's picture

Weird , but ok, I will add it to description for Xperia users.

DarkTuring's picture

Great APP, please include ability to change permission in folder (directory) and run script recursively within the folder on subfolders amd files to change those permissions too, instead of having to edit each file, or going into the terminal

Schturman's picture

Hmmm... You need ask it the creator of File browser app (Jolla)... I just gave a possibility to start this app as root.

eson's picture

This don't work on SFOS 2.1.1.23. No root access.

Schturman's picture

Ok, for now I found solution... I can strat binary file with this content:
system( "su -c 'mkdir -p /run/user/0/dconf' && su -c 'invoker --type=silica-qt5 -n /usr/bin/harbour-file-browser'" );
instead of this:
system( "su -c 'invoker --type=silica-qt5 -n /usr/bin/harbour-file-browser'" );
And all work like before... and it weird, but /dconf folder now not deleted anymore...
I already packaged the patches for 3 file managers (FileTug, FileCase and File Browser), I will upload them soon. The separates apps, I will repackage later today and upload them too.

eson's picture

Thanks a lot. Great job!

Schturman's picture

If app starts as nemo instead as root, try this workaround. For some mysterious reasons the phone sometimes remove "dconf" folder, and you need to recreate it. Do it as root = or as "su" or as "devel-su", try both variations.
mkdir -p /run/user/0/dconf
It should stay here, but sometimes when you close fingerterm, the folder deleted again, why I don't know. For me it started from 2.1.1.12 sometimes...

eson's picture

Folder "0" is deleted as soon as I try to start app. Can't make it stay.

Pages