Advice how to remove Camera app or change the default camera application

Hello everyone, I use the default camera app for photos, which is fine. But I find it takes a long time to launch.

Is there a way to remove the “Swipe down to access device settings” prompt to save a little time at startup?
I find this screen a bit annoying at startup.

Or perhaps, and this would be ideal, since I prefer Advanced Camera, is there a way to use it as the default camera? I mean, I want Advanced Camera to launch when I launch it without unlocking the home screen, for example.

Thanks for your advice.

You should be able to disable Hints (globally) in Settings->Guestures->Show Hints.

You can add Adv. Cam to the Pulley Menu on Lock Screen using Settings->Lock Screen->Add Shortcuts.

Not exactly what you’re asking for, but close.

For more advanced techniques, see:

7 Likes

Thank you for your quick reply. Not exactly, but close indeed. I’ll adjust that and see if it works on a daily basis.
I had completely forgotten about these editable pulley shortcuts.
Thanks also for the link, I hadn’t found it during my research. I’ll look into it.

1 Like

You can modify /usr/share/lipstick-jolla-home-qt5/layers/CameraLayer.qml
By replacing /usr/share/applications/jolla-camera-lockscreen.desktop
with another app name (found in /usr/share/applications/) , you’ll be able to will launch it from the lock screen, instead of the original camera app.
However, except if someone finds a trick, this new app will not launch from the appgrid anymore.

2 Likes

Checked this right now and found a delay in line 107. There is a transition with a duration of 500 milliseconds. I did set it to 50 ms. Camera acts faster now. I hope this may be helpful for you.

btw, SailfishOS is full of such delays that makes it slow. (But one can change this to make SailfishOS much more snappy and fast reacting)

5 Likes

Thanks, that would be perfect. I read that in the link shared by nephros, but the fact that I can no longer launch Advanced Cam normally is a deal breaker. I would really like to be able to use the same photo app in all situations. Even if the photo management isn’t amazing, I still want to use the same tool.
I’ll try the shortcut trick with the pulley menu to see if it works for me on a daily basis.

Thanks for the suggestion.
It sounds like a good thing to try.
And also a way to get my hands a little dirty with Sailfish.
I’ll try that in the next few days.
The idea is to edit the text in the “CameraLayer.qml” file? (I’m a newbie, and I haven’t set anything like that up on Sailfish yet.)
And of course, a question arises: why put a significant delay on opening an application?

Oops, sorry. I thought it was all about the pulley trick.

There might be a trick… there is a /usr/share/applications/harbour-advanced-camera-lockscreen.desktop
I have tried fiddling, by creating a lockscreen.desktop file for advanced camera, a second desktop file, another binary file… this is all dumb, without understanding the mechanism.
Sandboxing is also involved, as well as limiting storage access from within the lockscreen.

Yes.
First useful thing is to use the forum search tool and it’s extended search options.
You will find everything.
To edit files, you can connect to your phone with ssh and work from your PC into a terminal. Very handy!
For this, you need to enable developer mode in settings and allow remote connection.
If you don’t find how to do things after having searched, just ask, please.

Very good question. Does the app need to wait for another process to start or is it just aesthetic?
I’d say, if it works, it works :–)

2 Likes

Definitively not. It works fine and no problems with 50ms. Next I’ll try 5 or 10ms.

3 Likes

Oh great, thanks for all this information and for trying to find a trick.
I tried a little last night and found the cameraLayer.qml file.
Does cameraLayer.qml only concern the Camera app?
I can open it from Filebrowser and edit it, but I can’t save it, “save” remains grayed out.
I’ll try with developer mode enabled.
It would be perfect if I could edit all this from my computer, it would be more convenient. I’ll see how to do that with my Mac…
It’s very exciting to discover all this, even if every step forward generates four new questions.
It’s been a long time since I’ve dabbled in computer stuff.

you can use your computer to edit the file. (copy first with scp)
But you can also use ssh and use a text editor like nano or vim to edit the file on your phone (from your computer)

1 Like

You have to be ‘devel-su’, this is like root on SFOS, then you can save edited system files. Don’t forget to make a backup of the original file every time you tweak system files.

To enable it, go to Settings - System - Developer tools - enable Developer Mode and Remote connection and give a password.

Have a look at the LAN IP address of the phone. Then you can SSH from Computer to this address in your LAN.

edit: If you’re in, type devel-su and enter the same password again. Then the terminal prompt changes from defaultuser to devel-su and gives you root rights.

See here for a long list of tweaks:

3 Likes

Of course, see here or using the forum search tool:

Hahaha, exactly! That is what guarantees a steep learning curve :slight_smile:

2 Likes

Ohh, thanks for the “devel-su,” I hadn’t found it. I struggled a bit last night with my old Linux knowledge of ‘root’ and “su” without success, but now I know why.
I’ll take a look at this list of accelerators as soon as I’m more familiar with all this.
On the other hand, no problem connecting to WLAN with a Mac. It doesn’t work with USB yet, but it will soon.

1 Like

Thanks again for the usfull tips!

I was always left unsatisfied with the forum search; I rarely found what I was looking for, and the answers seemed too broad. But you’ve made me realize that we can also search the SFOS documentation, which is great :ok_hand:

2 Likes

Hello everyone,
I’m probably being a bit stupid, but despite your advice, my research, and multiple attempts, I can’t edit a file outside of /defaultuser.
I can browse through all the files and open them without difficulty outside of /defaultuser with an SFTP client, but I’m not allowed to save changes or change file names.
With the terminal, I can’t access folders other than those in /defaultuser; I get “access denied” every time I try.
However, with devel-su, I can switch from “[defaultuser@XperiaXA2Plus-DualSIM” to “[root@XperiaXA2Plus-DualSIM” in the terminal.
I’m worried about my intellectual ability to play with my phone :wink::upside_down_face:

It is endless! Just a vocabulary/syntax/time question :wink:

You are close: once you have used devel-su to become root, you can edit and save (backup first) the files in the terminal.

But it would be much easier from the PC.

I never used FTP since long. So, I can’t advise on that.
Have you found the way to connect to your phone through SSH?
I’d say this is the first step to achieve.

Are you on a Linux PC?

Instead of FTP, I’d mount my phone memory as a local directory witn sshfs, as root.
(no idea if this is good or bad regarding security)
Then, you’d be able to easily edit files, as root and with a real editor, allowing to copy/paste from where you want within your computer.

But you could also use the terminal on your computer to connect through SSH as root (devel-su) and edit the files with with vim, vi or nano.

If you need details on one of these aspect, just ask.

2 Likes

And also habits that I have lost for a while.

Yes, I can connect via ssh thanks to the doc you pointed. I can now navigate in the phone from my computer by the terminal of my mac and in SFTP (Cyberduck and Filezilla).
I’m installing SSHFS and trying it out that way.
Thanks again.

1 Like

I’ve always done all this in a terminal on a Linux machine, ssh into the phone, become devel-su, cd to the directories, cp to make the backups, vi to edit them.

And I enjoyed the 24" monitor instead of the tiny phone display :wink:

3 Likes