StartAsRoot for FileCase

Rating: 
5
Your rating: None Average: 5 (2 votes)

It will create icon to start FileCase app as root. FileCase app should be installed on your device...

v0.1-4
- Changes in SPEC file. Obsoletes changed to Conflicts.

v0.1-3
- Should fix problem with root access.

v0.1-2
- Tablet version.

Beware, use it on your own risk !!!

Donation are welcome :)

Screenshots: 
Application versions: 
AttachmentSizeDate
File filecaseroot-0.1-2.armv7hl.rpm10.56 KB13/10/2015 - 00:24
File filecaseroot-0.1-2.i486.rpm10.54 KB07/02/2019 - 04:41
File filecaseroot-0.1-3.i486.rpm10.86 KB26/07/2017 - 03:08
File filecaseroot-0.1-3.armv7hl.rpm10.84 KB26/07/2017 - 03:08
File filecaseroot-0.1-4.i486.rpm15.43 KB06/02/2019 - 11:23
File filecaseroot-0.1-4.armv7hl.rpm15.16 KB06/02/2019 - 11:23
Changelog: 

- Changes in SPEC file. Obsoletes changed to Conflicts.

Comments

Schturman's picture

Thanks... You mean about this problem (terminal should be opened) after you setup pass for root ?

objectifnul's picture

Actually the issue is not related with terminal. Probably a matter of delays and/or conflicting background actions being performed by the filesystem. For example, at this moment cargodock has root privileges while filebrowser hasn't. Weird.

--EDIT-- Obviously, the SailfishX file system is not btrfs, with little technical information available, and its behaviour is far from predictable. Currently, filebrowser, cargodock, filetug and filecase in 'startasroot' mode have a completely erratic behaviour with about 30% of occurrences with root privilege successfully granted.

Schturman's picture

Thanks for report... I don't know how to fix it... For C, 1 and Tablet - I don't have any problem....

objectifnul's picture

Thx for trying. I think there is nothing you can do on your side, this appears to be a SailfishX issue so it's up to Jolla to address it (probably if and when they implement BTRFS like in Jolla One). In the mean time, what I do is this:

(1) open CargoDock in root mode, which will most probably fail (black background, not red).

(2) close it and wait for about one minute.

(3) open it again, check if the screen background is red.

(4) if yes, you are likely to launch other 'rootable' file managers (filebrowser, filetug, filecase) successfully.

Schturman's picture

hmmm... ok...

Schturman's picture

try to run it as root:

su -c 'invoker --type=silica-qt5 -n /usr/bin/filecase'

or just:

invoker --type=silica-qt5 -n /usr/bin/filecase

The source, just extract content from rpm file and do what you want...

Sailbook's picture

[root@Sailfish nemo]# invoker --type=silica-qt5 -n /usr/bin/filecase
invoker: Invoking execution: '/usr/bin/filecase'
invoker: error: Failed to initiate connect on the socket for type silica-qt5.
invoker: warning: Booster silica-qt5 is not available. Falling back to generic.
invoker: error: Failed to initiate connect on the socket for type generic.
invoker: warning: Can't try fall back to generic, already using it
invoker: warning: Connection with launcher process is broken.
invoker: error: Start application /usr/bin/filecase as a binary executable without launcher...
[root@Sailfish nemo]# error: XDG_RUNTIME_DIR not set in the environment.
[C] unknown:0 - Failed to create display (No such file or directory)

The command su -c 'invoker --type=silica-qt5 -n /usr/bin/filecase' dont do nothing.

About the source when you extract the rpm, you dont have the complete source code only a part oif it.

Sailbook's picture

Seems not to works anymore on Sailfish X ?

Schturman's picture

i don't have sailfish x and can't check it... you can try similar patch...

monkeyisland's picture

okay thank you.

monkeyisland's picture

Hi can you port it for the tablet?

Schturman's picture

Hi. I don't have tablet :( And I can't create package with binary file on my Jolla phone...

Pages