-
Notifications
You must be signed in to change notification settings - Fork 732
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
Conversation
… meant to be a helper script to aid in applet development.
4819a2f
to
168d23c
Compare
files/usr/bin/cinnamon-install-spice
Outdated
quit() | ||
|
||
if spice_type is 'theme': | ||
theme_file = os.path.join(source_dir, 'Cinnamon/cinnamon.css') |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
import argparse | ||
|
||
import gi | ||
gi.require_version('Gtk', '3.0') |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
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
… meant to be a helper script to aid in applet development.