Hello,
I’m trying to decrease my reliance on Android apps, which of course means disabling AppSupport.
But quite often I find myself accidentally starting an Android app out of pure habit/muscle memory, which inadvertently triggers an AppSupport start.
Would it be possible to completely hide my folder of Android apps in the app grid when AppSupport is not running?
Thanks in advance.
In essence it should be enough to remove (not delete) all apkd_launcher desktop files in ~/.local/share/applications, and restore them once appsupport is started.
1 Like
I put all Android apps in a folder on the second launcher page at the bottom.
1 Like
@Matias , If you add a line NoDisplay=true to the desktop file, then it disappears from the app starter screen.
Example:
[Desktop Entry]
Type=Application
NoDisplay=true <--- here is a good place
Name=Tutorial
X-MeeGo-Logical-Id=tutorial-ap-name
X-MeeGo-Translation-Catalog=tutorial
Icon=icon-launcher-tutorial
Exec=invoker -s --type=silica-qt5 /usr/bin/sailfish-tutorial
Comment=Sailfish tutorial
Name[en_US]=sailfish-tutorial
X-Desktop-File-Install-Version=0.26
[X-Sailjail]
Sandboxing=Disabled
(This way I could make the tutorial unvisible, thanks to @Edz , who gave me the hint years ago
)
But: this is permanent, until you again remove the line.
4 Likes
Wouldn’t a simple ‘Android Apps’ folder in the App Drawer resolve your issue?
Just move all your Android app icons there and done.
4 Likes
Yeah that is what I have currently, but I would like to hide it completely. I know that the icons get removed when uninstalling AppSupport, but that is perhaps a step too far
.
Imho this is a very good idea, to make the Android apps only visible if Appsupport is running.
On the other hand, this costs the ability to start Appsupport by starting an Android app while Appsupport is not runnung.
Behavior should be selectable!
2 Likes
Why not simply add two very basic shell scripts with a looped one-liner sed command -exchanging the visibility- into
/opt/appsupport/init/start-post-hook.d/
/opt/appsupport/init/stop-post-hook.d/
2 Likes
This is exactly what I was looking for, thank you!!
First I tried it with @ohnonot’s suggestion of moving the apkd_launcher_* desktop entries. This works but does not preserve the folder when restoring them.
I’ll try the sed method tomrrow.