yangguilong/smart-highlighting-gedit

repackage smart_highlighting-2.0.0.tar.gz with proper permissions

GoogleCodeExporter opened this issue · 2 comments

What steps will reproduce the problem?
1. download and extract the smart_highlighting-2.0.0.tar.gz package by executing
1a. tar zxf smart_highlighting-2.0.0.tar.gz
2. install the plugin for all users by executing
2a. sudo cp -rf smart_highlighting-2.0.0/smart_highlight* 
/usr/lib/gedit-2/plugins
3. start gedit as regular user (i.e. not as root user), navigate to plugins tab
4. tick the Smart Highlighting box to enable plugin


What is the expected output?
That the plugin is enabled.


What do you see instead?
The plugin it become grey, like disable.  Additionally, the following error is 
written to stdout (or stderr?):
ImportError: No module named smart_highlight

** (gedit:16206): WARNING **: Error loading plugin 'Smart Highlighting'



What version of the product are you using? On what operating system?
* smart_highlighting-2.0.0.tar.gz
* gnome Version: 2.32.0
* Ubuntu 10.10 - the Maverick Meerkat 


Please provide any additional information below.
* Another user seems to have the same issue, see comments on wiki Install page: 
http://code.google.com/p/smart-highlighting-gedit/wiki/Installation


Suggested solution:
* repackage smart_highlighting-2.0.0.tar.gz with proper folder permissions, by 
executing
** tar zxf smart_highlighting-2.0.0.tar.gz
** find smart_highlighting-2.0.0 -type d -exec chmod 0755 '{}' \;
** rm -f smart_highlighting-2.0.0.tar.gz
** tar zcf smart_highlighting-2.0.0 smart_highlighting-2.0.0.tar.gz
* I uploaded a "repackaged" tar.gz with proper folder permissions.  For 
security reasons, I doubt you'll use it, but fwiw.

Original issue reported on code.google.com by tdo...@gmail.com on 12 Jan 2012 at 5:00

Attachments:

I have released v2.0.1 and v3.0.2 that solved the privilege issue and add 
several scripts to install/remove the plugin.

Thanks for your information.

Original comment by swatch.c...@gmail.com on 15 Jan 2012 at 7:45

  • Changed state: Done
No problem, thanks for your work! :)

Original comment by tdo...@gmail.com on 16 Jan 2012 at 5:53