Ticket #43 (assigned defect)

Opened 5 years ago

Last modified 4 years ago

Mark activity as favorite when it's installed as a deb, rpm, etc

Reported by: erikos Owned by: erikos
Priority: major Milestone: 0.86
Component: sugar Version: 0.82.x
Severity: Critical Keywords:
Cc: bkearney@… Distribution/OS: Fedora
Bug Status: New

Description

issue1: if we install an activity using yum the activity is not a favourite by default - and therefore does not show up in the favoritesview, but as well not in the activities list - only after a sugar restart.

issue2: we can not erase an activity from the menu, since they are placed in /usr/share/sugar/activities

Change History

  Changed 5 years ago by bkearney

  • cc bkearney@… added

  Changed 5 years ago by mungewell

Issue 1: Can't the ability be set the in the activity.info file.

ie.
--
[Activity]
name = Chat
bundle_id = org.laptop.Chat
class = pippy_app.Chat
icon = activity-icon
activity_version = 60
mime_types =
show_launcher = yes <------------------- HERE
host_version = 1
update_url =  http://dev.laptop.org/~morgan/bundles/chat
license = GPLv2+
--

Issue 2:

Having 'immutable' applications might be useful, certain things that can't be removed may be an advantage.

The question is whether they can be 'un-favourited' or cloned to provide a working/editable personal copy without removing the original from the system

Mungewell.

  Changed 4 years ago by bkearney

Even if that is set, the files will not show up in this use case:

1) Start up sugar
2) Start terminal
3) Install RPM (which puts new activities into /usr/share/sugar/activities/
4) Go back to main desktop
5) Use activities as list.

I would like for 4 to work without a restart, but can live with 5. Today, I have to restart (reboot or ctrl-alt-delete) after step 3.

-- bk

follow-up: ↓ 6   Changed 4 years ago by mungewell

How does the browse activity notify the journal that a activity has downloaded? I'm guessing it sends a D.Bus message.

This could be done by a small script in the POST_INSTALL stage.

If the sugar session is not activity at the time the Journal should check for new activities on start up. We would want to ensure that the remove+install/replace process didn't override a user's choice to [un-]favourite an activity.

Mungewell.

  Changed 4 years ago by marcopg

We should really split this bug. 2 is really tricky and 1 is something we should urgently address.

in reply to: ↑ 4   Changed 4 years ago by tomeu

Replying to mungewell:

How does the browse activity notify the journal that a activity has downloaded? I'm guessing it sends a D.Bus message.

No, the journal is listening for new entries in the DataStore and, among other things, install it if it's a bundle.

This could be done by a small script in the POST_INSTALL stage.

If the sugar session is not activity at the time the Journal should check for new activities on start up. We would want to ensure that the remove+install/replace process didn't override a user's choice to [un-]favourite an activity.

I would write a small python script that adds the activity to this json file: ~/.sugar/default/favorite_activities

  Changed 4 years ago by tomeu

  • distribution set to Unspecified
  • status_field set to Unconfimed
  • summary changed from handle installation/uninstall of activities on systems where we use rpms/deps to Mark activity as favorite when it's installed as a deb, rpm, etc
  • severity set to Blocker
  • milestone set to 0.84

  Changed 4 years ago by marcopg

  • distribution changed from Unspecified to Fedora
  • version set to 0.82.x
  • status_field changed from Unconfimed to New

  Changed 4 years ago by erikos

  • owner changed from marcopg to erikos
  • status changed from new to assigned
  • milestone changed from 0.84 to 0.86

  Changed 4 years ago by tomeu

  • severity changed from Blocker to Critical

don't see much interest in fixing this in 0.86, please comment

follow-up: ↓ 12   Changed 4 years ago by alsroot

In my mind, its a downstream filed. If distro packages activities then it could use something like soas does:
 http://git.sugarlabs.org/projects/soas/repos/mainline/blobs/master/soas-sugar.ks#line63

in reply to: ↑ 11   Changed 4 years ago by tomeu

Replying to alsroot:

In my mind, its a downstream filed. If distro packages activities then it could use something like soas does:
 http://git.sugarlabs.org/projects/soas/repos/mainline/blobs/master/soas-sugar.ks#line63

But that wouldn't work while Sugar is running, so perhaps we still need to do something in Sugar before we can pass it to distros?

Note: See TracTickets for help on using tickets.