We have moved to a new Sailfish OS Forum. Please start new discussions there.
1

Start Script via UI Icon without loading an icon window

asked 2020-04-19 16:59:26 +0300

speefak gravatar image

updated 2020-05-25 15:24:59 +0300

Hi, i am writing a little script to switch the double tab display mode on and off. It works fine when using terminal command. Now i want to start the script by pressing the UI icon but the an Application windows starts try loading something ( the app ui ? ) and then closes after a few seconds.

How can i execute a terminal command by pressing the icon without starting anything else expect the terminal command.

Code available on: https://github.com/speefak/sfos-doubletab_display_configurator

edit retag flag offensive close delete

Comments

Related, maybe. But completely different direction of topic. ;)

peterleinchen ( 2020-04-19 18:02:28 +0300 )edit

Add

NoDisplay=true

to your desktop file.

SORRY, nonsense.
This is only for hiding from app drawer!

peterleinchen ( 2020-04-19 18:03:14 +0300 )edit
1

I'm pretty certain all this will do, is stop the icon from appearing in the app launcher, I don;t think it will prevent the cover from showing/closing as explained in the OP,I could also be wrong! :P

Spam Hunter ( 2020-04-19 18:23:47 +0300 )edit
1

@Edz: confirmed, you're right, XA2 3.3

A.Maretzek ( 2020-04-19 19:05:41 +0300 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2020-05-24 22:02:21 +0300

speefak gravatar image

any other suggestions ?

edit flag offensive delete publish link more

Comments

Unfortunately not.
Or see my answer below...

peterleinchen ( 2020-05-24 23:20:55 +0300 )edit
0

answered 2020-05-24 23:35:46 +0300

updated 2020-05-24 23:36:20 +0300

Or maybe:
but this is not a direct answer to your question, more a workaround (which should not lead to closing this question only if you accept the answer?).

I used this workaround and find it acceptable.
Install another terminal (be it toeterm or karin-console) and start your script via this 'application' like

karin-console -e path-to-script

You need another terminal to the one you are using as primary terminal as fingerterm does not start a new instance when already running and called this way.
In case your script is a longer running loop the terminal will stay open. But if it is a short running the console will close afterwards.
Try it out if it matches your needs/style/acceptance. :)

edit flag offensive delete publish link more
Login/Signup to Answer

Question tools

Follow
5 followers

Stats

Asked: 2020-04-19 16:59:26 +0300

Seen: 343 times

Last updated: May 25 '20