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

[SDK feature request] - integrate an ssh shell to the mer sdk

asked 2018-01-14 16:48:03 +0300

tortoisedoc gravatar image

updated 2018-01-16 13:51:10 +0300

ossi1967 gravatar image

It would help to have the possibility to have an ssh shell open directly in qtcreator.

edit: even better if we could have one to the device

edit retag flag offensive close delete

Comments

2

I second this. I always forget how to do this so usually do a grep in the history and if I have not used it recently I have to use my google fu.

martonmiklos ( 2018-01-14 17:19:48 +0300 )edit

why? if you dont know how to ssh probaby yopu dont need this.

coderus ( 2018-01-15 22:51:26 +0300 )edit

Especially if you dont know how to ssh you need it.

tortoisedoc ( 2018-01-16 09:06:32 +0300 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2020-05-15 09:42:49 +0300

martyone gravatar image

It's been for some time that this can be done conveniently with sfdk:

sfdk engine exec [<command> [<arg>...]]
sfdk emulator exec [<name-or-idx>] [--] [<command> [<arg>...]]
sfdk device exec [<name-or-idx>] [--] [<command> [<arg>...]]

Emulators are devices too, so obviously the device exec command can be used with emulators too. The notable difference between emulator exec and device exec is the default behavior when <name-or-idx> is omitted: in the former case the emulator at index '0' is assumed, in the latter case the device selected with the device configuration option will be used.

Pass --help to each of those subcommands for more information.

edit flag offensive delete publish link more

Comments

Can we have this directly from SFOSCreator?

tortoisedoc ( 2020-05-23 00:36:23 +0300 )edit

For devices (incl. emulators), it is possible to open a shell from Options > Devices > Open Remote Shell.... It should be possible to make a shortcut using Tools > External > Configure... which would launch your preferred terminal emulator and sfdk inside. This could be applied to the build engine too. In case of build engine our aim is to eliminate the need to SSH into (more features become available directly from host throughsfdk), so integrating a build engine shell into Qt Creator would be retrograde. My recommendation for most flexible solution would be to create yourself a desktop-wide shortcut to open a terminal emulator.

martyone ( 2020-05-25 15:13:20 +0300 )edit

Well; considering qtcreator is a toolkit, it doesnt sound too unnatural to have sfdk command line to a terminal hooked in with a widget. Afaik there's other qtcreator widgets which do the same.

tortoisedoc ( 2020-05-31 18:30:34 +0300 )edit
Login/Signup to Answer

Question tools

Follow
2 followers

Stats

Asked: 2018-01-14 16:48:03 +0300

Seen: 324 times

Last updated: May 15 '20