Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a script to install 3rd party spices from a local folder. This is… #7420

Merged
merged 4 commits into from
Apr 23, 2018

Conversation

collinss
Copy link
Member

… meant to be a helper script to aid in applet development.

… meant to be a helper script to aid in applet development.
quit()

if spice_type is 'theme':
theme_file = os.path.join(source_dir, 'Cinnamon/cinnamon.css')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be cinnamon/cinnamon.css all in lower case?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, probably. I wrote this pretty late last night, and haven't really done a lot of testing yet (part of the reason it's labeled WIP :) ). I'll fix it later when I get the chance.

@linuxmint linuxmint deleted a comment Apr 20, 2018
@collinss collinss changed the title [WIP] Add a script to install 3rd party spices from a local folder. This is… Add a script to install 3rd party spices from a local folder. This is… Apr 20, 2018
import argparse

import gi
gi.require_version('Gtk', '3.0')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You don't seem to be using the gi import in this file.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those lines prevent a warning when Spices.py is imported.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, then, shouldn't these lines be added to Spices.py?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. They weren't there before because Spices.py was always only imported from cinnamon-settings, which already had those lines. Another option could be to see if we can refactor it so that we don't need to use Gtk as an import in Spices.py.

@clefebvre clefebvre merged commit dbbf75b into linuxmint:master Apr 23, 2018
@collinss collinss deleted the install-xlet-script-add branch April 23, 2018 14:34
Curly060 pushed a commit to Curly060/Cinnamon that referenced this pull request Jan 2, 2019
linuxmint#7420)

* Add a script to install 3rd party spices from a local folder. This is meant to be a helper script to aid in applet development.

* Spices.py: only show an update if the current version is less than the available one

* cinnamon-install-spice: fix typo

* Add argument parsing and usage to the xlet install script, and fix some bugs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants