Ask / Submit

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-09-28 20:38:36 +0300

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
sleep 1
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly.

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
sleep 1
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly.

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
sleep 1
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly.correctly. (Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there is no more black covers. I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276)

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
sleep 5
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
sleep 1
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly. (Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there is no more black covers. I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276)

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
sleep 5
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly. (Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there is no more black covers. I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276)

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
sleep 5
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly. (Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there is no more black covers. I've found that this bug may not be related to the symlinks, it appears when doing several actions, I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276)https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
sleep 5
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly. Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there is are no more black covers. I've found that this bug may not be related to the symlinks, it appears when doing several actions, I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.

Warning: with this solution, I later noticed that the videos were not very smooth. Writing to SD card in real time may be slower depending on your SD card (I tested with SanDIsk Ultra microSDHC I 32GB class 10). A safer solution would be to write photos / videos to the internal memory by default and when you need to free space, you move the content from the internal memory (/home/nemo/Pictures/ and /home/nemo/Videos/) to the SD card (/media/sdcard/3638-3338/Pictures/ and /media/sdcard/3638-3338/Videos/). The SD card photos and videos will be listed in the Gallery app also.

You can create a symlink from phone memory to microSD card but you will see a duplicate of photos/videos in the Gallery app, like someone said.

In fact, you need to create hidden folders in the SD card, for example ".Pictures" and ".Videos" and then you can save these commands as a shell script camera_sdcard.sh:

#!/bin/sh

rm Pictures Videos
sleep 5
ln -s /media/sdcard/3638-3338/.Pictures/ /home/nemo/Pictures
ln -s /media/sdcard/3638-3338/.Videos/ /home/nemo/Videos

If you run commands as a script, you need a delay like sleep 1 between symlinks creation, otherwise the Gallery app will not load all file thumbnails correctly. Update: I've found that the sleep is necessary after the rm command only and since current Jolla update 1.1.1.27, I have got black covers on the Messages and Phone app after using these symlinks with "sleep 1" or no delay at all. With a greater delay like "sleep 5", there are no black covers. I've found that this bug may not be related to the symlinks, it appears when doing several actions, I shared some screenshots here: https://together.jolla.com/question/2893/bug-double-tap-did-not-unlock-properly/#79276

When you shutdown your phone, you will have to create symlinks again. Even if they still exist, the Gallery app doesn't show SD card content until you create symlinks after the phone operating system startup. I tried to use systemd to autostart the script but it didn't work, it looks like the system hasn't finished starting to load files from SD card into Jolla's Gallery app (starting script after SD card mount or as the last service didn't work for me).

So you can manually start the script after startup but an easier way to do this is to create a .desktop shortcut file that you can start from a file manager or even better, as a shortcut in the phone applications:

[Desktop Entry]
Type=Application
Name=SD card
Exec=/home/nemo/camera_sdcard.sh

This desktop shortcut assume that you have the camera_sdcard.sh file in /home/nemo/ folder. Now you can save the shortcut as camera_sdcard.desktop in /home/nemo/.local/share/applications/ and you will have a shortcut to load pictures and videos from the SD card after phone startup! When you take a picture or video, they are automatically saved to the SD card and appear on the Gallery application.

I will share another trick here, if you move all pictures/videos from your phone memory or SD card to a computer (so files on your phone have been removed) and you want to copy files again to your phone, you will see that the Gallery app files are not sorted in the original order they were created. This is due to the copy process (cp command doesn't respect any order), files copied first appear first in the Gallery app and the last files copied are the one you can see at the beginning. I already shared this on Twitter (https://twitter.com/baptx/status/494989666408345602), at the moment, Jolla Gallery pictures and videos can only be sorted by date (when pictures/videos were taken or copied), so if you want keep the original order, you can mount Jolla filesystem with MTPFS (jmtpfs on Linux) or SSHFS and use these commands:

for i in `ls Jolla/* | sort -r`; do \cp $i Jolla; sleep 1; done
for i in `ls Camera/*`; do \cp $i Camera; sleep 1; done

The first command is for copying the Jolla pictures that come pre-installed in the phone, files are named "Jolla_01.jpg", "Jolla_02.jpg", ...,"Jolla_30.jpg" so you copy alphabetically starting from the end and the second one is for the pictures/videos taken, named "YYYYMMDD_001.jpg", "YYYYMMDD_002.jpg" and so on. The \cp backslash will omit cp alias, for example cp -i, you will not be asked if you want to overwrite an existing file. The sleep 1 delay is necessary for the Gallery to respect your copy order.