Not sure how you’re defining “Favorites,” there are directories(folders) and locations and devices within Dolphin.
If I want to create a folder pointing to a remote resource, I simply rt-click within an existing directory or location and select “Create New (Link to Location)”
If I want to add an additional item to item in Dolphin’s left navigational pane, I click “Add Entry” and point to an existing folder which can be a network folder.
AFAIK these things can be done from within Dolphin and not require a command line (which might have mistakes).
If you set these up in Dolphin and then wonder what the underlying code to accomplish might be, that can be easily viewed after the fact.
is a) correct syntax and b) working at all at your system. Remind that the expression in your screenshot is different from the one in your first post above. Also in your first post you have “…” in your expression, and these are not in your screenshot.
I see now you are actually trying to create a KDE Menu “Favorite” using a connection to a network location defined by Dolphin.
Not as I originally thought, that you are trying to create a dolphin object.
So, at this point I’m not entirely clear whether the URI you’re using for that network location is copied <exactly> from an existing <working> Dolphin connection or not. In fact, if you execute this connection URI in a console, what is the result?
So I can imagine that the syntax use by dolphin ( in the location bar “sftp://user@192.168.123.123:12345/folder_1/folder_2/folder_3” ) is just suitable for the underlying code.
In addition , you can copy the dolphin syntax from location bar to different dolphin instantiated objects.
It is perhaps not possible to do what I am trying.
One additional note though:
The -caption parameter will not work with current (KF5-based) dolphin versions any more, it would need to be replaced with -qwindowtitle if you ever upgrade.
Or remove the “-caption %c” completely, it’s not necessary anyway (it only sets the window title to the name of the application menu entry, if you omit it it will be “Dolphin”).
And you could remove the %i too, that sets the window icon to the one in the application menu, but that should be done automatically anyway.