Giter Club home page Giter Club logo

cinnamon-applet's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cinnamon-applet's Issues

Fix HamsterBox appearance in Cinnamon default theme

The HamsterBox in the Cinnamon applet menu has some appearance problems, particularly with the default Cinnamon them used in Linux Mint (probably the most-used theme!).

  • Highlighting of text in the "what are you doing now", highlight white on white, which is unreadable
  • Padding/margin on some menu elements is missing so the menu looks cramped.
  • The "what are you doing now" box is not cleared each time the menu is toggled. Instead it displays the previous entry. This is likely because the applet is listening for the wrong event (using an event that was correct for Gnome shell but not for Cinnamon applets).

Update to Cinnamon 1.8 settings API

The Cinnamon settings API was made available in Cinnamon 1.8. We should use it...

A good example/tutorial can be found on LinuxMint Segfault:
http://segfault.linuxmint.com/2013/05/applet-desklet-extension-settings-api-a-brief-example/

Using the new API gives us:

  • Direct integration into cinnamon settings application
  • Auto-generation of settings editing form (we can drop prefs.js)
  • Ability to react to settings changes dynamically via callbacks
  • Using the more stable applet API, which the Cinnamon devs try to keep stable (more stable than general Gnome stuff, not that Gsettings API is likely to go anywhere fast!)

The downside is that is is only available in Cinnamon >= 1.8. This shouldn't be a really big deal since Cinnamon 1.8 is available in most current distributions, is packaged with the current Linux Mint 15 and is even being backported to earlier versions of Linux Mint (13, 14 and LMDE) although I'm not sure when that will happen. I don't really want to make this change until 1.8 has been made widely available

Questionable licensing

* Portions originate from the gnome-shell source code, Copyright (c)

  • Portions originate from the gnome-shell source code, Copyright (c)
  • its respectives authors.
  • This project is released under the GNU GPL License.
  • See COPYING for details.

Please provide a valid COPYING file. Can you add this header to all javascript files (also prefs.js and stuff.js)?

Applet label sometimes glitches when updating

The applet icon and label are redrawn every 1 minute or on an activity update.

Due to the way the update currently works the label may be set to "" before being set the the correct string. This can cause a short "glitch" where the "" label is seen. It is especially noticeable since this glitch changes the size of the applet causing surrounding applets to move too.

Should be easy to fix by re-ordering the label update code so that the label is never set to "" if it is about to be set to something else afterwards

Updating from cinnamon spices fails

When updating the applet from cinnamon spices using cinnamon applet settings application I get the following message.

An error occurred during installation or updating.  You may wish to report this incident to the developer of [email protected].

If this was an update, the previous installation is unchanged

Details:  Cannot call rmtree on a symbolic link

I think it something to do with updating the gsettings schema...

Get translations working again

When I did the initial port of the shell extension, I disabled translations until I figured out how to get them working properly in Cinnamon.

It shouldn't be to hard to get them working again....

Include icon.png in root dir of applet

The current applet icon will only display correctly in CInnamon's applet settings form if the user already has installed hamster (since it uses the hamster-time-tracker icon).

This means that users browsing the applets via Cinnamon settings and who don't already have hamster installed will get the "default applet" icon.

This can be addressed by including a icon.png file in the root dir of the the applet

Tweak menu spacing and appearance

Whilst issue #3 made the menu readable again using the default cinnamon menu styles it's still not quite there.

  • Too much spacing around the "HamsterBox" Entry element
  • Text Entry element could have a slightly different background
  • When "Todays activities" is empty, it still takes up space
  • Add some nicer styling to the activity tags in "Todays activities"
  • Make today's totals right-aligned

We'll probably need to go back to an applet-specific stylesheet.css to get these right. This should be a minimal as possible to make sure that the applet plays nicely with different themes.

Maintenance

@jonbrett With the Cinnamon applets now being hosted by Linux Mint on Github, we're trying to clean things up and get them working again. It seems like the current version here is more functional than the one we have from the spices site, and I'd like to update your applet to reflect the more recent changes here, if that's OK with you.

I was also wondering what your intentions are for this applet long term. I know you passed off development of the feeds applet. Are you planning to do the same with this one as well, or do you want to maintain it yourself still?

Create a develop branch

Projecthamster/cinnamon-applet need a develop branch to push the PR at. But I dont have sufficient permissions to crate it.

Current Repository Maintainer

@jonbrett I am sorry to misuse the tracker like this, but I wanted to make sure to reach you :)
I do not mean to bother you but as my mail a month ago went unanswered I was not sure if that was deliberate or not. So I do hope you can overlook this rather drastic way to get in touch...
So i guess my question is: Did my mail get to you?

Thanks for your time, Eric.

Problem with schema not visible

My platform:

  • Mint 17.1 "Rebecca"
  • hamster from dylanmccall's "daily" PPA
  • cinnamon-applet from git

According to the docs it is enough to clone the repo into ~/.local/share/cinnamon/applets. However, when doing so, I'm able to see the applet on the list, but adding it to the panel results in the error. The corresponding lines in the log:

error t=2015-05-07T11:56:43Z Schema "org.cinnamon.hamster-applet" not found.
error t=2015-05-07T11:56:43Z [Applet "[email protected]"]: Failed to evaluate 'main' function on applet: [email protected]/28
error t=2015-05-07T11:56:43Z Could not load applet [email protected]

After digging a bit, looks like this results from the lines in convenience.js:

function getSettings(schema) {
    /* Try getting a schema from the schemas path, fallback to default
     * schema */
    schema = schema || HAMSTER_APPLET_SCHEMA;
    if (Gio.Settings.list_schemas().indexOf(schema) == -1)
        throw _("Schema \"%s\" not found.").format(schema);
    return new Gio.Settings({ schema: schema });
}

Indeed, running gsettings list-schemas doesn't show org.cinnamon.hamster-applet. Only after doing what is normally done by proper package, i.e. dropping schemas/org.cinnamon.hamster-applet.gschema.xml into /usr/share/glib-2.0/schemas and running glib-compile-schemas . inside, the applet is able to see the schema, installs and runs correctly.

Is this some specificity of my platform, or is it supposed to work that way? If so, the README is oversimplifying things...

Maybe adding some detection of the schema in applet's local dir would be helpful? I see that Gio.SettingsSchema describes exactly this use case. If you think it is the way to go, I can hack some PR from this...

Get applet settings working

In the initial port of the cinnamon applet, the applet preferences were disabled. These should be re-enabled using suitable Cinnamon APIs.

In Cinnamon 1.6.x we will need to use gsettings and can port the prefs.js from the shell extension in order to provide a GUI form to change these.

Ultimately we should move to the new Cinnamon settings API, since this will integrate nicely into the cinnamon settings generates the GUI for us. Unfortunately that is not available until Cinnamon 1.8.
Example here:
http://segfault.linuxmint.com/2013/05/applet-desklet-extension-settings-api-a-brief-example/
Also useful info here:
http://segfault.linuxmint.com/2013/05/cinnamon-1-8-settings-api-some-lesser-known-bits/

The shell extension had three settings. The Cinnamon applet should initially support these:

  • Hotkey for toggling menu (there is a nice keymanager api for this in Cinnamon 1.8, not sure about 1.6.x)
  • Appearance (icon only, icon + time, label only)
  • Swap with calendar (this doesn't make sense in Cinnamon, so won't be ported)

It gives me error on Linux Mint 17.2

<----------------
@/home/maria/.local/share/cinnamon/applets/[email protected]/applet.js:22
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:180
Extension@/usr/share/cinnamon/js/ui/extension.js:138
loadExtension@/usr/share/cinnamon/js/ui/extension.js:468
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:207
---------------->
error t=2015-09-29T13:41:00.334Z [Applet "[email protected]"]: Error importing applet.js from [email protected]
error t=2015-09-29T13:41:00.335Z Could not load applet [email protected]

Unable to add activity

OS: Linux Mint 20.1 Cinnamon (4.8.6)

When I add text in the "Activity" and press enter, the applet just closes without adding anything.

Not working in Mint 17.1

info t=2014-12-03T02:08:39.707Z Adding systray: mintupdate.py
error t=2014-12-03T02:09:07.834Z No JS module 'dbus' found in search path
trace t=2014-12-03T02:09:07.834Z
<----------------
@/home/vagif/.local/share/cinnamon/applets/[email protected]/applet.js:22
Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:152
Extension@/usr/share/cinnamon/js/ui/extension.js:119
loadExtension@/usr/share/cinnamon/js/ui/extension.js:383
onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:192
---------------->
error t=2014-12-03T02:09:07.834Z [Applet "[email protected]"]: Error importing applet.js from [email protected]
error t=2014-12-03T02:09:07.835Z Could not load applet [email protected]

Update strings in po files

The current strings in the translation .po files are from the shell extension (from which this applet was forked).

Whilst most, if not all, of the strings currently used in the applet match those in the .po files, the comments about where the string was generated don't make sense (extension.js doesn't even exist!).

The .po files should be re-generated from the current applet source and any strings that have already been translated can be copied across.

I remembered this when merging #9

Cinnamon 3.4 fails to load the applet

Using master.
Trying to add the applet to the panel i'm getting this error:

error t=2017-05-17T16:15:08Z redeclaration of let fact trace t=2017-05-17T16:15:08Z <---------------- Extension.prototype._init@/usr/share/cinnamon/js/ui/extension.js:155:13 Extension@/usr/share/cinnamon/js/ui/extension.js:116:5 loadExtension@/usr/share/cinnamon/js/ui/extension.js:449:25 onEnabledAppletsChanged@/usr/share/cinnamon/js/ui/appletManager.js:236:13 ----------------> error t=2017-05-17T16:15:08Z [Applet "[email protected]"]: Error importing applet.js from [email protected] error t=2017-05-17T16:15:08Z Could not load applet [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.