Opened 6 years ago

Last modified 6 years ago

#8817 new defect

Add a "sugar-open" application

Reported by: sayamindu Owned by: marco
Priority: normal Milestone: 9.1.0-cancelled
Component: sugar Version: not specified
Keywords: r- cjbfor9.1.0 Cc: bert, mstone, cscott
Blocked By: Blocking:
Deployments affected: Action Needed: review
Verified: no

Description

It might be a good idea to have a sugar-open application, similar to gnome-open or xdg-open

This may be useful for directly launching stuff from activities (eg: Browse from Read)

Attachments (2)

sugar-open (1.6 KB) - added by sayamindu 6 years ago.
First pass. It uses gnomevfs, since I did not find gio bindings for Python in our current builds
sugar-open.2 (1.8 KB) - added by sayamindu 6 years ago.
Second pass. Browse launches properly now, and the process forks to launch the acitivty from the child.

Download all attachments as: .zip

Change History (6)

Changed 6 years ago by sayamindu

First pass. It uses gnomevfs, since I did not find gio bindings for Python in our current builds

Changed 6 years ago by sayamindu

Second pass. Browse launches properly now, and the process forks to launch the acitivty from the child.

comment:1 Changed 6 years ago by bert

  • Cc bert mstone cscott added

This would launch an activity inside the container of another activity - the second activity would use the SUGAR_ACTIVITY_ROOT of the first.

Other than that it should work - until Rainbow enforces permissions (like, Browse needs P_NETWORK but the calling activity might not have that so Browse would break), which is scheduled to happen in 9.1.

comment:2 Changed 6 years ago by marco

  • Keywords r- added; r? removed

Can you describe the use case? Any reason to not fold this into sugar-launch?

comment:3 Changed 6 years ago by sayamindu

As soon as sugar-launch accepts uris to open, i think they can be merged.

comment:4 Changed 6 years ago by mstone-xmlrpc

  • Keywords cjbfor9.1.0 added
  • Milestone changed from 8.2.1 to 9.1.0

Pushing out to 9.1.0, per edmcnierney's request.

Note: See TracTickets for help on using tickets.