View Full Version : USP SVN Repository
chanders
August 7th, 2006, 02:35 PM
I have setup an SVN repository. Use this command to checkout the current (pre-alpha ;))
svn checkout http://ubuntu-system-panel.googlecode.com/svn/trunk/ ubuntu-system-panel
If you want to be added as a developer, pm me..
chanders
January 15th, 2007, 02:36 PM
SVN now available for USP2Alpha! Get it while it's hot!!
Again, If you want to be added as a developer, pm me, and I'll speak to Malac about it also..
delfick
January 15th, 2007, 05:47 PM
cool :D
thnx :D
:D
i'm confused though, how do we install it.... ??
deadlydeathcone
January 15th, 2007, 08:38 PM
cool :D
thnx :D
:D
i'm confused though, how do we install it.... ??
Download the file I attached, decompress it and replace the <edit> part in the third line with the path where the svn version was downloaded, then copy it to the correct location with the command:
sudo cp usp-dev.server /usr/lib/bonobo/servers/
You may have to log out or refresh the gnome panel, but for me gnome picked up the change after a minute or two. When it does just add it to the panel; all of your plugins will be detected and all that.
delfick
January 17th, 2007, 08:47 PM
sry it took me so long to answer.....
thnx for your help :D
where can i find a list of changes that are made ??
thnx :D
Malac
January 18th, 2007, 11:23 AM
where can i find a list of changes that are made ??
From a terminal in the ubuntu-system-panel folder on your system. svn logOr install kdesvn. (Lots of stuff available in there.) :)
delfick
January 18th, 2007, 05:59 PM
From a terminal in the ubuntu-system-panel folder on your system. svn logOr install kdesvn. (Lots of stuff available in there.) :)
cool thnx :D
though i use gnome.....kde apps are ugly in gnome :P....i'll just stick with svn log :D
deadlydeathcone
January 18th, 2007, 07:42 PM
cool thnx :D
though i use gnome.....kde apps are ugly in gnome :P....i'll just stick with svn log :D
You should check out the svn nautilus scripts; you can just right click on usp's folder and check the log, update it and all of that good stuff if you don't want to use the terminal.
delfick
January 19th, 2007, 06:27 AM
You should check out the svn nautilus scripts; you can just right click on usp's folder and check the log, update it and all of that good stuff if you don't want to use the terminal.
cool :D
please tell more :D
chanders
January 19th, 2007, 07:08 AM
You should check out the svn nautilus scripts; you can just right click on usp's folder and check the log, update it and all of that good stuff if you don't want to use the terminal.
Where do we get the goodies?? :)
Malac
January 19th, 2007, 07:19 AM
Where do we get the goodies?? :)
sudo apt-get install nautilus-script-collection-svn
Puts the scripts in /usr/share/nautilus-scripts/Subversion
groggyboy
January 19th, 2007, 07:12 PM
ok, just to make sure I'm doing things right:
1. I download the svn version by running this in the terminal: "svn checkout http://ubuntu-system-panel.googlecode.com/svn/trunk/ ubuntu-system-panel" It appears in a new folder in my home folder.
2. I download the attached script in deadlydeathcone's script.
3. I replace the third line (where it says "<edit>") with the location of the svn folder (in my case, that would be "~/ubuntu-system-panel/ubuntu-system-panel")
4. I copy the file to /usr/lib/bonobo/servers
5. I add the panel to gnome menu (which is now called "Ubuntu System Panel Development Version").
6. To update it to the latest revision, I run the command from the first step in the terminal.
7. To check what changes were made, I can run "svn-log" from the terminal in the USP svn folder ("~/ubuntu-system-panel") or I can download install the package "nautilus-script-collection-svn" which lets me check the log among other things by right-clicking the svn folder within nautilus.
Am I missing anything? Do I need to uninstall the original (non-svn) 0.91? I don't mind running beta (or alpha) software, but I'm not usually one to install things from cvs or svn (hence this post...). It's just that i love USP sooooo much! :biggrin: I noticed malac had mentioned that the HideSidePane bug had been fixed in the latest svn (here (http://www.ubuntuforums.org/showpost.php?p=2032000&postcount=105)), but it still hasn't changed for me. I thought I'd just double check to make sure I'm doing things correctly.
Over christmas, I showed my Ubuntu laptop to my sister (who has an older macbook running OS X). She's not really big into computers, but she was quite impressed by how slick things looked with beryl and USP. thanks for the applet!
chanders
January 20th, 2007, 07:52 AM
Yup everything looks good. However as a precaution
1. I would remove any older versions of USP
2. Un-set the old gconf settings (see first post in alpha thread)
3. Copy the svn files to their appropriate directories on your system (anyone with good scripting abilities to whip up a script to do this? ;-) DBO?)
4. When you update from svn again, you just need to do step 3
You are good to go!
Malac
January 20th, 2007, 07:59 AM
I noticed malac had mentioned that the HideSidePane bug had been fixed in the latest svn (here (http://www.ubuntuforums.org/showpost.php?p=2032000&postcount=105)), but it still hasn't changed for me. I thought I'd just double check to make sure I'm doing things correctly.
Sorry groggyboy I had forgotten to update the svn repo. I have done it now.
delfick
January 20th, 2007, 09:21 AM
Yup everything looks good. However as a precaution
1. I would remove any older versions of USP
2. Un-set the old gconf settings (see first post in alpha thread)
3. Copy the svn files to their appropriate directories on your system (anyone with good scripting abilities to whip up a script to do this? ;-) DBO?)
4. When you update from svn again, you just need to do step 3
You are good to go!
cool....now i think the svn version actually works for me :D (before i don't think it was)
so now we just need an "update" script in the svn folder that updates svn and moves the files :D
PsyberOneZero
January 20th, 2007, 06:07 PM
I've attached an update script.
It checks your local revision against the remote revision, if it needs to be updated the script will automatically update and install usp.
Just download the attached file and place it in the first ubuntu-system-panel directory
i.e. <your dir>/ubuntu-system-panel/ubuntu-system-panel/<usp stuff>
then rename usp_update.txt to usp_update.sh and run
chmod a+x usp_update.sh
chanders
January 20th, 2007, 06:17 PM
Thank you PsyberOneZero (http://ubuntuforums.org/member.php?u=33096) ! SVN made easy ;-)
delfick
January 20th, 2007, 06:38 PM
thankyou PsyberOneZero :D :D
you're a legend :D !
PsyberOneZero
January 20th, 2007, 06:54 PM
So I take it the script works ok?
I just figured I'd give back a little to such an awesome project.
rai4shu2
January 22nd, 2007, 07:21 AM
Will this work with Python 2.5?
chanders
January 22nd, 2007, 07:51 AM
It should. Give it a try and let us know how it goes ;-)
rai4shu2
January 22nd, 2007, 09:03 AM
So far so good. Just a couple things:
/usr/bin/usp:
changed line 22 to: sys.path.append( '/usr/lib/python2.5/site-packages/usp/plugins' )
deselected uspuser plugin (I don't have a ~/.face folder)
Malac
January 22nd, 2007, 10:40 AM
So far so good. Just a couple things:
/usr/bin/usp:
changed line 22 to: sys.path.append( '/usr/lib/python2.5/site-packages/usp/plugins' )
deselected uspuser plugin (I don't have a ~/.face folder)
Right click and choose preferences to open uspconfig add uspuser back to your plugins list and then go to the User tab and put in the path to a picture you would like to use instead. Gif's work as an animated image if entered using uspconfig. Not sure about other formats.
I have updated SVN with a check whether the .face file exists.
rai4shu2
January 22nd, 2007, 11:36 AM
Cool. This is coming along nicely.
Malac
January 24th, 2007, 04:38 AM
updated svn with new uspconfig which now does backups and restores of usp settings to/from a file.
-fin
January 24th, 2007, 04:11 PM
lookin' good!
what are the easy*-plugins doing, btw?
(checking the shortcut-stuff now ... can't promise anything tho)
chanders
January 24th, 2007, 04:33 PM
lookin' good!
what are the easy*-plugins doing, btw?
(checking the shortcut-stuff now ... can't promise anything tho)
Thanks!
The easy* aren't plugins per se, they are actually helper files for the real plugins ;-)
delfick
January 24th, 2007, 04:55 PM
updated svn with new uspconfig which now does backups and restores of usp settings to/from a file.
awsome :D
unabatedshagie
January 24th, 2007, 05:19 PM
My brain cells must be taking a holiday but I can't seem to get this to work.
I have downloaded the svn.
Now do I still have to edit and copy the file from the fourth post?
Also what about the file that PsyberOneZero made? It looks to me like it's included now? Am I correct?
If so how do I run it? ./usp_update.sh ?
The script is supposed to copy the files to the system so I can delete the folder in the home directory?
chanders
January 24th, 2007, 06:09 PM
My brain cells must be taking a holiday but I can't seem to get this to work.
I have downloaded the svn.
Now do I still have to edit and copy the file from the fourth post?
Also what about the file that PsyberOneZero made? It looks to me like it's included now? Am I correct?
If so how do I run it? ./usp_update.sh ?
The script is supposed to copy the files to the system so I can delete the folder in the home directory?
OK here are the easy steps..
1. Download the SVN
2. In a terminal, cd into the directory with usp_update.sh
3. run the command like so
./usp_update.sh4. This should install usp svn on your system
5. For safety logout of gnome
6. Log back in, right click on a panel and add USP..
7. Thats it!
You can safely ignore the fourth post. That was before we had PsyberOneZero's script.
Yup. PsyberOneZero's script is now included in the SVN repository.
You shouldnt delete the folder in your home directory because you will need it everytime you want to update usp svn via step 3..
unabatedshagie
January 25th, 2007, 12:50 AM
Strange, thats what I was doing yesterday and in the terminal it said that USP is up-to-date, although even after numerus logouts USP wouldn't show up in the add panel window.
Now I started the computer this morning and ran through the commands you have posted (which were exactly the same as I was doing yesterday) and it updated, I'm guessing that the SVN was updated?
Now after a logout USP shows up in the add panel window but doesn't get added to the bar.
I used to have the older non-svn version which I uninstalled and ran the command gconftool-2 --recursive-unset /apps/usp and emptied the plugins folder but I just can't get it to add to the panel.
Any ideas?
Malac
January 25th, 2007, 06:08 AM
Strange, thats what I was doing yesterday and in the terminal it said that USP is up-to-date, although even after numerus logouts USP wouldn't show up in the add panel window.
Now I started the computer this morning and ran through the commands you have posted (which were exactly the same as I was doing yesterday) and it updated, I'm guessing that the SVN was updated?
Now after a logout USP shows up in the add panel window but doesn't get added to the bar.
I used to have the older non-svn version which I uninstalled and ran the command gconftool-2 --recursive-unset /apps/usp and emptied the plugins folder but I just can't get it to add to the panel.
Any ideas?
There has been a problem with the uspuser plugin causing USP to "hang", thanks to a Python code update breaking popen().
To check if this is what you are suffering from open gconf-editor and navigate to /apps/usp and remove uspuser from the plugins_list value and try restarting usp. If usp works then you are suffering from this bug, leave out uspuser until you have updated to todays revision.
I have uploaded a fixed copy of uspuser to the svn today at about 11-00am GMT. Revision 93.
unabatedshagie
January 25th, 2007, 07:33 AM
I must have royally screwed something up :) because I don't have an entry in gconf-editor for usp.
http://img262.imageshack.us/img262/3840/screenshot69bq.png
I have also updated to the newest build.
Any ideas on what I could have done to mess this up?
Strange thing is if I add it to the panel and move the panel from the bottom to any other side I can see the button just not click on it.
Malac
January 25th, 2007, 09:30 AM
I must have royally screwed something up :) because I don't have an entry in gconf-editor for usp.
http://img262.imageshack.us/img262/3840/screenshot69bq.png
I have also updated to the newest build.
Any ideas on what I could have done to mess this up?
Strange thing is if I add it to the panel and move the panel from the bottom to any other side I can see the button just not click on it.
That's a new one on me :)
Try running usp run-in-window and paste the output here.
Also have you done a reboot since you updated the files. I know the instructions say just logout but I always feel happier doing a reboot if logout doesn't work.
unabatedshagie
January 25th, 2007, 11:36 AM
I have done a full reboot a couple of time.
Here's the output for the command(usp:5843): libglade-WARNING **: could not find glade file '/usr/share/usp/usp2.glade'
Traceback (most recent call last):
File "/usr/bin/usp", line 677, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 667, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 456, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 39, in __init__
self.wTree = gtk.glade.XML( self.gladefile, "window1" )
RuntimeError: could not create GladeXML object
Malac
January 25th, 2007, 12:17 PM
I have done a full reboot a couple of time.
Here's the output for the command(usp:5843): libglade-WARNING **: could not find glade file '/usr/share/usp/usp2.glade'
Traceback (most recent call last):
File "/usr/bin/usp", line 677, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 667, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 456, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 39, in __init__
self.wTree = gtk.glade.XML( self.gladefile, "window1" )
RuntimeError: could not create GladeXML object
If you are running this from the svn update script then something has gone wrong and it hasn't copied the usp2.glade file to that folder.
Try going to <where you put the svn>/ubuntu-system-panel/ubuntu-system-panel/usr/share/usp and manually copy the usp2.glade file to /usr/share/usp.
then run usp run-in-window again.
PsyberOneZero
January 25th, 2007, 01:55 PM
I've attached an updated script, that fixes the /usr/share/usp bug. I should have another version out tonight that will do the same as this version just a smaller file.
Malac
January 25th, 2007, 03:02 PM
Excellent :)
groggyboy
January 25th, 2007, 05:04 PM
PsyberOneZero: thanks for the script! it makes life sooo much easier! :D
However, I'm having a problem with your updated script. after updating from svn, i downloaded your new script to the proper folder, removed the ".txt" and made it executable, and this is what it returned:groggyboy@ono-sendai:~/ubuntu-system-panel$ ./usp_update
bash: ./usp_update: /bin/bash^M: bad interpreter: No such file or directory
groggyboy@ono-sendai:~/ubuntu-system-panel$
I'm not very good with scripts, so I can't help you any further, sorry!
Keep up the good work, folks!
PsyberOneZero
January 25th, 2007, 05:54 PM
PsyberOneZero: thanks for the script! it makes life sooo much easier! :D
However, I'm having a problem with your updated script. after updating from svn, i downloaded your new script to the proper folder, removed the ".txt" and made it executable, and this is what it returned:groggyboy@ono-sendai:~/ubuntu-system-panel$ ./usp_update
bash: ./usp_update: /bin/bash^M: bad interpreter: No such file or directory
groggyboy@ono-sendai:~/ubuntu-system-panel$
I'm not very good with scripts, so I can't help you any further, sorry!
Keep up the good work, folks!
It's wierd I downloaded the one I just uploaded and it doesn't want to work, so I'll upload it again from a script that I know works.
groggyboy
January 25th, 2007, 11:19 PM
Thanks PsyberOneZero, that's fixed it
unabatedshagie
January 26th, 2007, 01:39 AM
Thanks for updating the script PsyberOneZero, I have finally got usp working now :)
Thanks for the help everyone.
~LoKe
January 31st, 2007, 02:07 AM
For starters, I'm running Feisty, perhaps this is the reason.
Anyways, running USP shows completely empty menus (no places, applications, etc).
Tried unsetting the gconf keys.
usp run-in-window gives:
Loading plugin 'uspuser' : sucessful
Loading plugin 'system_management' : sucessful
Loading plugin 'applications' : sucessful
No recent applications
Loading plugin 'recent' : sucessful
No recent applications
/usr/bin/usp:618: GtkWarning: Invalid icon size 0
main_window.show_all()
/usr/bin/usp:619: GtkWarning: Invalid icon size 0
gtk.main()
Static User Image Used
Malac
January 31st, 2007, 02:51 AM
For starters, I'm running Feisty, perhaps this is the reason.
Anyways, running USP shows completely empty menus (no places, applications, etc).
Tried unsetting the gconf keys.
usp run-in-window gives:
open gconf-editor and set icon_size to something other than 0
And you may have to set width and height keys for each plugin this is a known bug which is fixed in the svn version.
From the mis-spelled "sucessful" it looks like you are not using the latest svn. :)
zekopeko
January 31st, 2007, 04:17 PM
how to add a custom applet icon without deleting distributor-logo? i want to add apple logo next to the text.
thnx in advance
Malac
February 15th, 2007, 04:46 AM
I've added the ability to have icons on the tabs as well as or instead of the text.
This is done by putting the icon name in square brackets '[]' either before or after the text.
e.g.
newtab=Standard Plugins[gnome-settings.png]
<some plugins and newpanes here>
newtab=[add.png]Extra/Add-On Plugins
<some plugins and newpanes here>
newtab=Internet
<some plugins and newpanes here>
newtab=[tux]
<some plugins and newpanes here>
Would give this :
25333
As you can see from the example you can mix and match icons and text.
As before if you just use 'newtab' it will be given a number.
Also full paths to icons can be used too.
e.g.
newtab=Extra/Add-On Plugins[/home/dave/add.png]
delfick
February 15th, 2007, 05:10 AM
I've added the ability to have icons on the tabs as well as or instead of the text.
This is done by putting the icon name in square brackets '[]' either before or after the text.
e.g.
newtab=Standard Plugins[gnome-settings.png]
newtab=[add.png]Extra/Add-On Plugins
newtab=Internet
newtab=[tux]
Would give this :
25333
As you can see from the example you can mix and match icons and text.
As before if you just use 'newtab' it will be given a number.
awsome !! :D
thnx :D
Malac
February 15th, 2007, 05:27 AM
You're Welcome.
Forgot to mention absolute paths can be used if you want an icon that's not in your current theme.
e.g.:
newtab=Internet[/home/dave/.icons/glass-icons/scalable/apps/firefox-icon.svg]
gives me:
25336
chanders
February 15th, 2007, 07:12 AM
Sweet! (can we get the icon bigger ;-))
Malac
February 15th, 2007, 08:32 AM
Sweet! (can we get the icon bigger ;-))
Just committed the change (now rev 123)
As per requests added icon size adjustment and as a pre-emptive strike added font size adjustment . :)
25343
EDIT: oh yeah, I can't remember whether I mentioned that the tabs can now be placed at the top, left, right or bottom of the menu.
25344
delfick
February 15th, 2007, 08:38 AM
Just committed the change (now rev 123)
As per requests added icon size adjustment and as a pre-emptive strike added font size adjustment . :)
EDIT: oh yeah, I can't remember whether I mentioned that the tabs can now be placed at the top, left, right or bottom of the menu.
cool thnx :D
though it doesn't appear right for me ..... (see screenshot)
o ye, and thnx for making items in the pluginlist and compactlist editable via double click :D
Malac
February 15th, 2007, 08:49 AM
cool thnx :D
though it doesn't appear right for me ..... (see screenshot)
o ye, and thnx for making items in the pluginlist and compactlist editable via double click :D
You have your Tab Font Size set to 2: so the text is tiny. :)
EDIT: oops my bad I had set the default at 2. :)
Okay rev 124.
delfick
February 15th, 2007, 09:13 AM
You have your Tab Font Size set to 2: so the text is tiny. :)
EDIT: oops my bad I had set the default at 2. :)
Okay rev 124.
hehehe...thnx :D
much better :D
sweetthdevil
February 15th, 2007, 09:15 AM
ok, i getting frustrated now!
I can't seem to install USP_svn
i run into the terminal:
svn checkout http://ubuntu-system-panel.googlecode.com/svn/trunk/ ubuntu-system-panel
which download the svn version into /home/sweetth/ubuntu-system-panel
i download the usp_update, which i renome on .sh and also did the chmod
then i run into the terminal cd to go to the folder which contain the usp_update.sh, the ./up_date.sh
and then i've got a error:
sweetth@sweetth-desktop:~/ubuntu-system-panel$ ./usp_update.sh
./usp_update.sh: line 15: ((: > : erreur de syntaxe : opérande attendu (error token is "> ")
USP is up-to-date
First it's telling me usp is up to date! i used synaptic to un-install it, i did
gconftool-2 --recursive-unset /apps/usp
and empty your ~/.usp/plugins folder before installing
so where am i doing wrong?
thanks so much for your help.:roll:
delfick
February 15th, 2007, 09:28 AM
i thought usp_update was already in svn ??
just checkout the svn again, cd into the newly created folder and do "./usp_update".....
:D
sweetthdevil
February 15th, 2007, 09:44 AM
same as before!
i don't get it!
and if i run usp run-in-window
bash: usp : commande introuvable
sweetthdevil
February 15th, 2007, 10:01 AM
i erase the folder, and did it again!
sweetth@sweetth-desktop:~$ svn checkout http://ubuntu-system-panel.googlecode.com/svn/trunk/ ubuntu-system-panel
A ubuntu-system-panel/ubuntu-system-panel
A ubuntu-system-panel/ubuntu-system-panel/usr
A ubuntu-system-panel/ubuntu-system-panel/usr/share
A ubuntu-system-panel/ubuntu-system-panel/usr/share/usp
A ubuntu-system-panel/ubuntu-system-panel/usr/share/usp/usp2.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/share/usp/dotted.png
A ubuntu-system-panel/ubuntu-system-panel/usr/share/usp/uspconfig.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/uspuser.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/places.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/shortcuts.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/computer.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/__init__.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/execute.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/system_management.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/recent.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/usp_util.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/uspuser.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/places.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/applications.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/easygconf.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/system_management.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/easybuttons.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/recent.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/computer.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/shortcuts.glade
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/easyfiles.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/applications.py
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/bonobo
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/bonobo/servers
A ubuntu-system-panel/ubuntu-system-panel/usr/lib/bonobo/servers/usp.server
A ubuntu-system-panel/ubuntu-system-panel/usr/bin
A ubuntu-system-panel/ubuntu-system-panel/usr/bin/usp
A ubuntu-system-panel/ubuntu-system-panel/usr/bin/uspconfig
A ubuntu-system-panel/usp_update
U ubuntu-system-panel
Révision 124 extraite.
sweetth@sweetth-desktop:~$ cd /home/sweetth/ubuntu-system-panel/
sweetth@sweetth-desktop:~/ubuntu-system-panel$ ./usp_update
./usp_update: line 15: ((: > : erreur de syntaxe : opérande attendu (error token is "> ")
USP is up-to-date
sweetthdevil
February 15th, 2007, 10:44 AM
all right got it!
i simply did all the command from the script... :KS
anyway, just a question, the search box seem to have a problem, what's the command to able to search for application?
PsyberOneZero
February 15th, 2007, 04:37 PM
OK, I fixed up the script. It may have a few bugs in it but it works fine on my machine.
To Install:
./usp_update install ( or Install)
this is for first time
To Update
./usp_update update ( or Update)
or
./usp_update
I will work on having it remove the old gconf entries but that could get fun.
Mateo
February 17th, 2007, 12:44 AM
installation doesn't work for me. not sure why:
matthew@matthew-desktop:~/ubuntu-system-panel$ usp run-in-window
Using Standard Menu
Traceback (most recent call last):
File "/usr/bin/usp", line 846, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 836, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 625, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 58, in __init__
self.PopulatePlugins()
File "/usr/bin/usp", line 384, in PopulatePlugins
if pos == gtk.POS_LEFT:
UnboundLocalError: local variable 'pos' referenced before assignment
unabatedshagie
February 17th, 2007, 01:06 AM
Thats the exact same error I getalex@mysterymachine:~$ usp run-in-window
Using Standard Menu
Traceback (most recent call last):
File "/usr/bin/usp", line 846, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 836, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 625, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 58, in __init__
self.PopulatePlugins()
File "/usr/bin/usp", line 384, in PopulatePlugins
if pos == gtk.POS_LEFT:
UnboundLocalError: local variable 'pos' referenced before assignment
Malac
February 17th, 2007, 05:51 AM
@ unabatedshagie and mateo
I have fixed this but I am away from my machine until 2-00pm (GMT) so I will update the SVN.
This is my bad and is the result of too late a night, sorry.
Malac
February 17th, 2007, 09:22 AM
@ unabatedshagie and mateo
I have fixed this but I am away from my machine until 2-00pm (GMT) so I will update the SVN.
This is my bad and is the result of too late a night, sorry.
FIXED:
Revision 128.
This only happened if tabs were not being used.
Sorry I should have tested all the possibilities.
Mateo
February 17th, 2007, 12:25 PM
no need to apologize, I'm glad that it was a problem with the code because if it was something I was doing wrong I would probably never figure it out! i'll try it out in a bit and let you know if it works now.
Mateo
February 17th, 2007, 12:36 PM
sorry to say, still not working. here's my latest output:
matthew@matthew-desktop:~/ubuntu-system-panel$ usp run-in-windowUsing Standard Menu
Loading plugin 'uspuser' : successful
Loading plugin 'system_management' : successful
Loading plugin 'applications' : successful
Traceback (most recent call last):
File "/usr/bin/usp", line 846, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 836, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 625, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 58, in __init__
self.PopulatePlugins()
File "/usr/bin/usp", line 241, in PopulatePlugins
MyPlugin = X.pluginclass( self )
File "/usr/lib/python2.4/site-packages/usp/plugins/recent.py", line 70, in __init__
self.RegenPlugin()
File "/usr/lib/python2.4/site-packages/usp/plugins/recent.py", line 93, in RegenPlugin
self.GetGconfEntries()
File "/usr/lib/python2.4/site-packages/usp/plugins/recent.py", line 110, in GetGconfEntries
self.RebuildPlugin()
File "/usr/lib/python2.4/site-packages/usp/plugins/recent.py", line 121, in RebuildPlugin
self.do_recent_applications_file()
File "/usr/lib/python2.4/site-packages/usp/plugins/recent.py", line 239, in do_recent_applications_file
TestForFiles( ".usp/recentapps.list" )
File "/usr/lib/python2.4/site-packages/usp/plugins/easyfiles.py", line 18, in TestForFiles
file = open(os.path.join(os.path.expanduser("~"), filename),"w")
IOError: [Errno 2] No such file or directory: '/home/matthew/.usp/recentapps.list'
I checked and I don't have a .usp directory. I uninstalled USP1 and deleted the .usp directory. maybe I shouldn't have done it that way. i'll try to install USP1, then only delete the plugins and try to install uspSVN.
by the way, there is something wrong with the install script. It doesn't create the /usr/share/usp directory, so the files it tries to copy there don't get copied. I did that manually to get past that problem.
Mateo
February 17th, 2007, 12:44 PM
Installing USP, making sure the plugin directory is empty, clearing the gconf stuff, then installing the SVN gets the job done. Looking good.
sweetthdevil
February 17th, 2007, 12:56 PM
two quick question if i may
How do i update the svn? do i need to erase the gconf setting? or any thing special, or do i need simply to run the script?
And my search box doesn't work, I can't type in it, and when i can it doesn't search any things.? :confused:
Mateo
February 17th, 2007, 01:05 PM
to update the SVN you should probably clear your gconf with this:
gconftool-2 --recursive-unset /apps/usp
then run the command
./usp_update update
Mateo
February 17th, 2007, 01:07 PM
how do you change the button icon? I tried changing by putting in the entire location of the image (in my case /usr/share/icons/mandrake.png) but that didn't work. are there size restrictions maybe?
kobewan
February 17th, 2007, 01:33 PM
Alright, I've gotten the SVN version now (which is excellent I must add...I love tabs!) and the gap between my menu and panel is still there. I've also found out that this only occurs when it is on the bottom panel. If I move USP to the top panel, or drag my panel to a different side of the screen, then 'usp_offset' works perfectly.
And my search box doesn't work, I can't type in it, and when i can it doesn't search any things.? :confused:
Heh, just had the same problem (I think). Open up gconf-editor, to apps->usp->plugins->applications. Make sure that the 'do_not_filter' box is unchecked. Then, goto the field that says 'search_command' and make sure that it isn't empty. If it is, then find out what it used to say as the default.
I don't know why, but if you uncheck that box in USPConfig, it automatically clears the search command. I assume that this is a bug, since I can't think of any good reason for this. Mine is gone now too, and I'm missing my search until somewhat posts the default....
sweetthdevil
February 17th, 2007, 01:52 PM
sweetth@sweetth-desktop:~/ubuntu-system-panel$ ./usp_update update
./usp_update: line 17: ((: > : erreur de syntaxe : opérande attendu (error token is "> ")
USP is up-to-date
same trouble with the update script! :(
chanders
February 17th, 2007, 01:52 PM
^^ If you are running beryl, make sure focus stealing is set to 'None' !! ;-)
Malac
February 17th, 2007, 01:57 PM
Search command fixed rev 129:
Actually clicking anything in the applications section of USPconfig was wiping the search command, but hopefully now fixed.
Any probs let me know.
sweetthdevil
February 17th, 2007, 02:21 PM
ok, i update it now, could you tell me which command to put for the search box, i restore the setting and the search box command is still empty. :/
And also, i read about tabs? i don't seem to have them, or don't know how to produce them, could i get some info please.
And last question, how do i get my firefox bookmarks to be available in ups, ups doesn't seem to read the file produce by firefox
Many thanks for your great work...
kobewan
February 17th, 2007, 02:52 PM
Yeah, I also want that default search command. Could you please post it?
To find out how to make tabs, look here : http://ubuntuforums.org/showthread.php?t=361376
I think (but am not sure) that you can read the Firefox bookmarks by downloading the extra plugins here:
http://www.ubuntuforums.org/showpost.php?p=1981614&postcount=2
and setting up the internet plugin.
Oh yeah, and another bug report: USPConfig doesn't allow opening of folders that have a space in them when saving/loading backups. For example, if I'm trying to save to ~/Assorted Junk/USP , then it will save it as ~/Assorted.xml. It also won't load the xml file if you manually copy it the same folder above.
sweetthdevil
February 17th, 2007, 03:04 PM
no need of the internet pluggin the places one form the svn version does it staight away.
but don't know wich kind of file usp need :/
Mateo
February 17th, 2007, 03:04 PM
I think I need the default search command too, it doesn't appear for me (though when I press the search button, it does work.
My only problem is that it searches my ~ folder, instead of the entire filesystem, so it's really no use. anyway to fix that?
sweetthdevil
February 17th, 2007, 03:12 PM
well, that the command i've got "gnome-search-tool --named=SEARCH_STRING --start"
But doesn't seem to work,
and for the bookmarks USP read the file produce by Firefox, my mistake.
But from the latest svn, if you use the "places" item, you will see, a choice between places and bookmarks, but i couldn't find where to show USP where to get the actual bookmarks, probably a next feature.
But I must say, USP is a great tools!
Many many thanks to you guys!!
PsyberOneZero
February 17th, 2007, 03:24 PM
@ sweetthdevil: Are you still having that error with the update script?
if so try running
svn up
./usp_update update
if that's still giving you problems then try running
usp_update install
Malac
February 17th, 2007, 03:29 PM
@Mateo et al
the search command is:
gnome-search-tool --named=SEARCH_STRING --start
Here is an explanation of what you can do with the tabs with examples:
http://ubuntuforums.org/showpost.php?p=2159324&postcount=46
Hope this helps.
Strash
February 17th, 2007, 03:41 PM
sweetth@sweetth-desktop:~/ubuntu-system-panel$ ./usp_update update
./usp_update: line 17: ((: > : erreur de syntaxe : opérande attendu (error token is "> ")
USP is up-to-date
same trouble with the update script! :(
Same problem here... on Ubuntu Edgy
kobewan
February 17th, 2007, 04:09 PM
I think I need the default search command too, it doesn't appear for me (though when I press the search button, it does work.
My only problem is that it searches my ~ folder, instead of the entire filesystem, so it's really no use. anyway to fix that?
I think that it's supposed to search the home folder when you click on the search button.
Anyways, to fix it, uncheck the do_not_filter key in gconf-editor under plugins-->applications. For some reason, unchecking it doesn't work if you do it in USPConfig, so make sure that USPConfig is not open first.
and for the bookmarks USP read the file produce by Firefox, my mistake.
But from the latest svn, if you use the "places" item, you will see, a choice between places and bookmarks, but i couldn't find where to show USP where to get the actual bookmarks, probably a next feature.
I'm pretty sure that's supposed to be only for your Nautilus bookmarks, not your Firefox ones.
Also, I can't figure out how to add anything to the Shortcuts plugin. Anybody care to explain what it does? (couldn't find any useful information with some searching)
chanders
February 17th, 2007, 04:42 PM
To add to the shortcuts plugin, just pin USP and drag and drop items in the shortcuts plugin ;-)
Malac
February 17th, 2007, 04:51 PM
I think that it's supposed to search the home folder when you click on the search button.
Anyways, to fix it, uncheck the do_not_filter key in gconf-editor under plugins-->applications. For some reason, unchecking it doesn't work if you do it in USPConfig, so make sure that USPConfig is not open first.
I'm pretty sure that's supposed to be only for your Nautilus bookmarks, not your Firefox ones.
Also, I can't figure out how to add anything to the Shortcuts plugin. Anybody care to explain what it does? (couldn't find any useful information with some searching)
For anyone who needs it the default search is :
gnome-search-tool --named=SEARCH_STRING --start
Fixed Do Not filter in uspconfig Rev 131.
To add something to the shortcuts plugin click the pin menu button top left of sidepane then drag a launcher/shortcut towards just below the Shortcuts title (this is tricky for the first one as the target area is really thin at this point) then let it go. Further shortcuts are easy as you can drop them on the first button.
Bookmarks is for the Nautilus bookmarks not Firefox. This was why I created the Internet plugin. This reads your default firefox bookmarks or you can point it at another file so long as it is in the same format.
Hope this helps.
PsyberOneZero
February 17th, 2007, 05:11 PM
For those having problems with the update script, I just updated it (minor formatting stuff) but it might fix it. :?
Is everyone on Edgy having problems with the script?
kobewan
February 17th, 2007, 05:20 PM
Worked flawlessly for me. I installed it at revision 128 using
./usp_update install
Right after you posted this, I checked to see if it worked using:
./usp_update update
and it worked without any problem. Told me that the latest version was 132, showed what had changed and then told me that installation was successful.
sweetthdevil
February 17th, 2007, 05:25 PM
Bookmarks is for the Nautilus bookmarks not Firefox. This was why I created the Internet plugin. This reads your default firefox bookmarks or you can point it at another file so long as it is in the same format.
Is there any chance, in a near future to be able to use firefox bookmarks with the places plugins?
Mateo
February 18th, 2007, 12:37 AM
where can I find a list of all of the plugins that are available by default with the svn? not anything you have to install, just the ones you can type in uspconfig.
kobewan
February 18th, 2007, 05:26 AM
Try looking at which files are in:
/usr/lib/python2.4/site-packages/usp/plugins
Or at the post here (http://ubuntuforums.org/showpost.php?p=1967430&postcount=1).
The default plugins should be:
uspuser
system_management
applications
shortcuts
places
computer
recent
Mateo
February 18th, 2007, 11:20 AM
The application plugin doesn't seem to like anything but normal launchers. My experience is that launchers which are supposed to run in terminal, run in the background. And applications that run off wine don't load. I think this feature needs major work, as it's possibly the most important in the program.
kobewan
February 18th, 2007, 01:05 PM
Actually, I think that these are all because USP doesn't run anything off of bash. I don't know what it does run off of, and I don't have enough knowledge and experience with Linux to know if what I just said even made any sense :D.
Anyways, most problem are caused because USP isn't able to properly detect spaces in folder names (not even if you use quotation marks, or the '\' character). This screws with wine big time, since most programs that you want to launch are in "Program Files". I got around this by making a small script:
#/bin/bash
wine "C:\Program Files\uTorrent\uTorrent.exe" &
exit
Make it executable, and point USP at it by putting this in the exec field of the Favorites launcher:
"bash /script path/script"
Maybe not the best workaround, but it does its job. If you have problem with any other launchers, run "usp run-in-window" in a terminal and click on the launcher from the pop-up window. It should print some feedback about why the launcher isn't working.
Mateo
February 18th, 2007, 09:27 PM
That solves wine (or is a workaround), but what about terminal programs? Neither hellanzb or rtorrent will launch for me. Hellanzb launches in the background, but I don't think rtorrent launches at all.
edit: actually it does. both launch in the background.
Malac
February 19th, 2007, 04:38 AM
That solves wine (or is a workaround), but what about terminal programs? Neither hellanzb or rtorrent will launch for me. Hellanzb launches in the background, but I don't think rtorrent launches at all.
edit: actually it does. both launch in the background.
I will be looking into the launching with terminal/wine problems.
I'll post back as soon as it is fixed.
Malac
February 19th, 2007, 02:23 PM
.Scratch
ADRez
February 19th, 2007, 02:31 PM
In latest svn version there is still a glitch: in system management control center is not aligned as install software, lock screen and quit. Can you solve it?
It's in system_management.glade file, after line 63 add this:
<property name="width_request">40</property>
kobewan
February 19th, 2007, 03:00 PM
Wow, how'd you even notice it? The difference is pretty hard to see...
Also, just wondering, is there any way to use full paths for normal icons (i.e. not the icons for tabs)? Or is it not implemented (yet)?
Malac
February 19th, 2007, 03:22 PM
In latest svn version there is still a glitch: in system management control center is not aligned as install software, lock screen and quit. Can you solve it?
It's in system_management.glade file, after line 63 add this:
<property name="width_request">40</property>
Done in SVN Revision 140.
ADRez
February 19th, 2007, 04:08 PM
Thanks!
Wow, how'd you even notice it? The difference is pretty hard to see...
Well, I didn't see it so hard to see, and it annoyed me a little... now it's OK :cool:
Malac
February 19th, 2007, 05:48 PM
Updated SVN to Revision 141 with a fix for launchers that need to launch in a terminal from applications, recent apps and shortcuts.
I have tested this with all my launchers (and I do mean all :) ) but let me know if one of yours won't launch, or launches missing arguments, or errors in any other way.
Mateo
February 19th, 2007, 06:44 PM
nope, not for me :( . This is the first time I tried upgrading, so maybe I did it wrong, but I just downloaded the trunk and then ran ./usp_update update and it said it was now up to date. But the launchers still launch in the background. I think reset my gconf info and reran the install hoping that I updated incorrectly but the result is the same.
I can't exactly give you an error message either. If I run usp run-in-window, the programs launch in the same terminal window that USP is running in. not sure if that helps.
chanders
February 19th, 2007, 07:22 PM
Make sure to remove USP from the panel and re-add when you update ;-)
Mateo
February 19th, 2007, 11:14 PM
now none of the launchers work. here's what I get when I try to run Calculator:
TypeError: ButtonReleased() takes exactly 5 arguments (4 given)
i will reinstall USP1 and then upgrade it and hopefully it at least goes back to launching X based apps!
Mateo
February 19th, 2007, 11:26 PM
I'm not sure which files to delete. I tried just installing USP1 but USPsvn still showed up.
Mateo
February 20th, 2007, 12:29 AM
So, I deleted every file that the script installs. Deleted the ~/.usp directory. Ran the command to clear the gconf. Reinstalled usp1, then uninstalled it with apt-get (basically this just left the .usp directory I guess). Then installed the latest SVN. No go, same error message no matter which program I try to launch.
Malac
February 20th, 2007, 03:02 AM
So, I deleted every file that the script installs. Deleted the ~/.usp directory. Ran the command to clear the gconf. Reinstalled usp1, then uninstalled it with apt-get (basically this just left the .usp directory I guess). Then installed the latest SVN. No go, same error message no matter which program I try to launch.
Have you rebooted or killall gnome-panel?
Revision 141 is the correct one for terminal launchers.
Can you please check that you have the revised execute.py file by running this in the first ubuntu-system-panel directory.
svn info ./ubuntu-system-panel/usr/lib/python2.4/site-packages/usp/plugins/execute.py | grep RevYou should get:
Revision: 141
Last Changed Rev: 141If not your update hasn't worked.
I've tried this on Edgy with beryl and metacity and it works on both.
Are you running Feisty?
Also there seems to be a bug. I'm not sure at what stage it is getting introduced whether it is a gnome bug or a USP one but I opened up some of my favourite app launchers in gedit and found the line that should read "Terminal=true", actually read "Terminal=Terminal=True".
It should be single word Terminal (capital T) with true (or false) all lowercase. Can you check this also?
roberTO
February 20th, 2007, 05:19 AM
Same problem here...
"TypeError: ButtonReleased() takes exactly 5 arguments (4 given)"
Uninstall, clear all usp related stuff, install, rev: 141, but not working....
Also not work the right click menu (add favs...)
Output:
"TypeError: ButtonReleased() takes exactly 5 arguments (4 given)"
Run in Ubuntu Feisty, updated today 10.00 AM...
:(((
:confused:
roberTO
February 20th, 2007, 05:49 AM
DELETED...
Not bug...
kobewan
February 20th, 2007, 06:14 AM
Same problem here...
"TypeError: ButtonReleased() takes exactly 5 arguments (4 given)"
Uninstall, clear all usp related stuff, install, rev: 141, but not working....
Also not work the right click menu (add favs...)
Yep, same thing here as well. I'm running on Edgy. The applications in "Favorites" launch, but not the ones in All Applications. When running, for example, Firefox in Favorites, it gives this message:['firefox']
False
['firefox']
(It doesn't give firefox in all the errors, e.g. for Gedit it puts 'gedit' in between the quotes). When running something that's in All Applications, it gives the same error about 5/4 arguments. It's been giving me the same error since I updated to rev. 137. I've tried restarting my computer, killall gnome-panel, remove and readd USP etc.
EDIT: Alright, I confirmed that the problem is in rev. 137 and after. If I run svn update -r 136 and then ./usp_update install USP starts working again. Installing rev. 137 (and after) again brings the problems back.
Malac
February 20th, 2007, 07:46 AM
Okay it looks like I broke the All Applications section of the applications plugin, sorry.:redface:
I'll get on it right away.
Malac
February 20th, 2007, 08:13 AM
^^ Fixed in Revision 142.
Mateo
February 20th, 2007, 09:19 AM
Ok, back to where we were at least. ;) Still no terminal apps are launching for me though.
Also there seems to be a bug. I'm not sure at what stage it is getting introduced whether it is a gnome bug or a USP one but I opened up some of my favourite app launchers in gedit and found the line that should read "Terminal=true", actually read "Terminal=Terminal=True".
It should be single word Terminal (capital T) with true (or false) all lowercase. Can you check this also?
I tried to look but couldn't find where the launchers were. Most of them are in /usr/share/applications/ but these terminals apps I made manually. I'm not sure if a .desktop file is created for launchers you make manually... I can't find a .desktop file for any of my terminal apps. Maybe this is the problem!
Malac
February 20th, 2007, 09:27 AM
Ok, back to where we were at least. ;) Still no terminal apps are launching for me though.
I tried to look but couldn't find where the launchers were. Most of them are in /usr/share/applications/ but these terminals apps I made manually. I'm not sure if a .desktop file is created for launchers you make manually... I can't find a .desktop file for any of my terminal apps. Maybe this is the problem!
The ridiculous part is that you have to open them in gedit to change the Terminal=False part or unless you use ls in a terminal you can't even see that they are called <something>.desktop .
As I say there was a bug in either gnome or usp which was making the Terminal line read Terminal=Terminal=False instead of Terminal=false perhaps you are suffering from this.
But this is definitely working for me now.
Here is an example of one of mine which launches firefox in a terminal:
[Desktop Entry]
Encoding=UTF-8
Name=Firefox Web Browser
Comment=Browse the World Wide Web
Exec=firefox %u
Icon=/usr/share/pixmaps/firefox.png
GenericName=Web Browser
Terminal=true
And the only difference to the one that doesn't is the last line changed to Terminal=false
Malac
February 20th, 2007, 09:29 AM
SVN Revision is now 143.
I have added hotkey opening to USP.
Alterations to uspconfig/Preferences to take this into account. Added _keybinder.so to plugins folder at the moment.
The default is set to <Ctrl><Alt>U at the mo as this didn't seem to be bound to anything already on my system. :)
This should open and close USP.
If you want to use the "Windows" keys then Meta_L or Meta_R without the <> symbols should do it.
Or if you use the word Menu without the <> symbols then the right hand key with a menu symbol and arrow on it (between the Alt Gr and Ctrl keys on the right) works to open USP.
If the demand is there I can add one key to open and one to close if you like.
EDIT: Tested with metacity and beryl, both work fine.
kobewan
February 20th, 2007, 10:27 AM
Excellent update :D.
Just a note though; when you open it with the hotkey, it opens pinned (regardless of your settings). You can close it by hitting the hotkey again, or by clicking on the menu button. Is this supposed to happen or is it a bug? I imagine that it could be either...
Malac
February 20th, 2007, 10:33 AM
Excellent update :D.
Just a note though; when you open it with the hotkey, it opens pinned (regardless of your settings). You can close it by hitting the hotkey again, or by clicking on the menu button. Is this supposed to happen or is it a bug? I imagine that it could be either...
Okay it doesn't seem to do this on mine, hmmmm.:confused:
It should follow the pin menu settings regardless of how it is called as all I've done is hook into the button's open menu function.
Most strange, I'll see if I can replicate it.
Mateo
February 20th, 2007, 10:47 AM
Malac:
I can't check to see if mine says Terminal=true or not because I can't find the .desktop files. I even looked in terminal using ls and they aren't in the /usr/share/applications folder. I created them using Alacarte... Is there any other place they could be? I even searched for all of the desktop files on my computer and couldn't find any of my terminal apps among them.
Malac
February 20th, 2007, 11:38 AM
Malac:
I can't check to see if mine says Terminal=true or not because I can't find the .desktop files. I even looked in terminal using ls and they aren't in the /usr/share/applications folder. I created them using Alacarte... Is there any other place they could be? I even searched for all of the desktop files on my computer and couldn't find any of my terminal apps among them.
Unfortunately if you call your shortcut Firefox this is not necessarily what alacarte calls the actual .desktop file.
Seems daft to me but there you go. e.g. my Firefox .desktop file is actually called "-home-dave-.local-share-applications-firefox.desktop" even though what I see in nautilus is just "Firefox Web Browser".
You could try looking in <your-home-folder>/.usp/applications this is where usp stores your favourites.
Open gedit then open one of those files from inside gedit.
I'm not sure but I think alacarte may use /usr/share/app-install/desktop for files it creates.
Create this script in <your-home-folder>/.gnome2/nautilus-scripts
and call it "Open With GEdit" or something similar
#!/bin/sh
for uri in $NAUTILUS_SCRIPT_SELECTED_URIS; do
gedit $uri &
donemake it executable chmod +x
It should then appear in your right-click menu under Scripts.
25767
I find this saves time when editing .desktop files.
Mateo
February 20th, 2007, 12:24 PM
You know what, I'm using a newer version of gnome-panel, perhaps this is somehow involved. I'll try reinstalling the version in the repos.
also, still can't find the .desktop file. checked both directories and they're simply not there. I added the terminal programs to favorites and they work fine that way. i guess i'll use that for now.
Malac
February 20th, 2007, 02:15 PM
You know what, I'm using a newer version of gnome-panel, perhaps this is somehow involved. I'll try reinstalling the version in the repos.
also, still can't find the .desktop file. checked both directories and they're simply not there. I added the terminal programs to favorites and they work fine that way. i guess i'll use that for now.
Which version of gnome were you using just out of curiosity. As if it was a newer one then we will probably come across this in the future.
Mateo
February 20th, 2007, 02:38 PM
I think this is it:
https://launchpad.net/ubuntu/+source/gnome-panel/2.16.1-0ubuntu4
chanders
February 20th, 2007, 10:28 PM
@Mateo - .desktop files don appear with their extension in Nautilus. They look like an actual application and the only way to really know is to open them up in gedit.
I find the easiest way is to drag a 'suspect' .desktop file directly in an open gedit window. If you get an error it wont show up but if it is a bonafide .desktop file it will open up ;-)
Also I think files created by Alacarte is in ~./local
Mateo
February 20th, 2007, 10:54 PM
I never had a problem recognizing .desktop files in nautilus. My problem was that they weren't in the /usr/share/applications/ or /usr/share/app-install/ directories. I see that they are in the ~/.local folder though, along with a lot of old .desktop files. I moved the relevant ones to /usr/share/applications. No change in functionality. I'm going to try and reinstall the version of gnome-panel that's in the repos but that might be difficult. I'm not sure how to remove the one I installed from source.
chanders
February 20th, 2007, 11:38 PM
Ok, cool Any particular reason you are using a custom compilled panel?
Mateo
February 21st, 2007, 12:35 AM
I wanted to remove the arrow in the "Main Menu" applet. There is a line of source that you can comment out, then compile it and the arrows are gone. Don't need that anymore now that I'm using USP ;)
To no avail, though. I uninstalled the old panel by sudo make uninstall, then reinstalled the repo version. I can clearly see from a few features that this is the old gnome-panel now, but this didn't change the problem. I'm at the point where I think i'll give up and hope it miraculously gets fixed in a future svn version ;)
delfick
February 21st, 2007, 02:10 AM
thnx Malac for the hotkey support !! :D
though Meta_L doesn't work for me :(
even after "killall gnome-panel"
though "menu" worked :D
Malac
February 21st, 2007, 04:01 AM
thnx Malac for the hotkey support !! :D
though Meta_L doesn't work for me :(
even after "killall gnome-panel"
though "menu" worked :D
Think this depends on your keymap and keyboard variant, you could try Super_L instead. If you run xev from a terminal that can give a clue as to what the key is being recognised as.
delfick
February 21st, 2007, 05:29 AM
Think this depends on your keymap and keyboard variant, you could try Super_L instead. If you run xev from a terminal that can give a clue as to what the key is being recognised as.
hazaa!!!
I tried "Super" before which didn't work, adding the "_L" to it makes it magicly work :D
thnx :D
mikemn84
February 21st, 2007, 03:44 PM
Im not sure if this has been covered somewhere, but I recently downloaded the SVN USP and I can't get any border to display. Both the USPconfig dialog and border_width in configuration editor are set to 6. And usp run-in-window yields no errors. Is there a setting im missing?
chanders
February 21st, 2007, 05:00 PM
This was fixed in the last update to SVN. Try to update again ;-)
mikemn84
February 21st, 2007, 05:33 PM
One more thing,
When I go to my Places plugin under bookmarks the folder named 'School Stuff' opens one level beneath where it should. So when I click it, I get taken to its parent folder where I can see 'School Stuff' listed. The path listed in the title bar at this point is '/home/username/School Stuff' but it is actually showing '/home/username'. So if I click on School Stuff, which im supposedly already in, it causes issues. The other folders I have in bookmarks work fine, I'm thinking it could be because that 'School Stuff' has a space in it and the others dont.
Cheers and thanks for your hard work
PsyberOneZero
February 21st, 2007, 07:27 PM
Several updates to the script :) SVN Rev. 148
NOTE in 147 the script is broken (stupid error on my part) so if you already updated to 147 just type
svn up
./usp_update install
1st) Uninstall
./usp_update uninstall
2nd) Complete Uninstall
this will remove your .usp directory in home and unset the gconf keys.
./usp_update uninstall complete
3rd) First Time Install
this is for those upgrading from USP 0.41, this also removes the old .usp dir and the old gconf keys.
./usp_update install fresh
This should be all the needed cases, let me know if there's anything missing or needed in the script.
Malac
February 22nd, 2007, 04:02 AM
One more thing,
When I go to my Places plugin under bookmarks the folder named 'School Stuff' opens one level beneath where it should. So when I click it, I get taken to its parent folder where I can see 'School Stuff' listed. The path listed in the title bar at this point is '/home/username/School Stuff' but it is actually showing '/home/username'. So if I click on School Stuff, which im supposedly already in, it causes issues. The other folders I have in bookmarks work fine, I'm thinking it could be because that 'School Stuff' has a space in it and the others dont.
Cheers and thanks for your hard work
Fixed. SVN Revision 151. :)
sweetthdevil
February 22nd, 2007, 11:09 AM
Quick question, I want to use my mouse to open USP, got a MX518, so i kept the default shortcut <Ctrl><Alt>U and using xbindkeys to allow, the 8th boutton of my mouse using this shortcut, so i edit the file .xbindkeysrc like so:
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:6
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:7
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Control_L]\[u]""
m:0x0 + b:8
But obviously it doesn't work, anyone know what am I doing wrong?
kobewan
February 25th, 2007, 09:08 AM
Quick question, I want to use my mouse to open USP, got a MX518, so i kept the default shortcut <Ctrl><Alt>U and using xbindkeys to allow, the 8th boutton of my mouse using this shortcut, so i edit the file .xbindkeysrc like so:
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Left]""
m:0x0 + b:6
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Right]""
m:0x0 + b:7
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[Control_L]\[u]""
m:0x0 + b:8
But obviously it doesn't work, anyone know what am I doing wrong?
I've found xvkbd to be notoriously bad with handling many certain key presses (in particular, holding modifier keys). The -xsendevent option was supposed to fix it, but it never worked properly for me. I would recommend install, from the repositories, xautomation. It works muuuch better (IMO), and helped me configure my mouse properly. To use it, just edit your .xbindkeysrc file to include this:
"/usr/bin/xte 'keydown Control_R' 'keydown Alt_R' 'key u' 'keyup Alt_R' 'keyup Control_R'"
b:8
(Remember, the spacing and capitalization is very important!) After that, open up a terminal and restart xbindkeys by typing in killall -HUP xbindkeys That should definitely work, I just tried it with my mouse without a problem.
kobewan
February 25th, 2007, 09:21 AM
3rd) First Time Install
this is for those upgrading from USP 0.41, this also removes the old .usp dir and the old gconf keys.
./usp_update install fresh
This should be all the needed cases, let me know if there's anything missing or needed in the script.
What would happen if you used this but hadn't installed USP 0.41 before? Would it still work, or would it give an error message, or what?
PsyberOneZero
February 25th, 2007, 12:44 PM
What would happen if you used this but hadn't installed USP 0.41 before? Would it still work, or would it give an error message, or what?
It would just reset all of your options, and clear out any downloaded plug-ins in ~/.usp
It could also be used to do a clean re-install.
sweetthdevil
February 25th, 2007, 02:07 PM
I've found xvkbd to be notoriously bad with handling many certain key presses (in particular, holding modifier keys). The -xsendevent option was supposed to fix it, but it never worked properly for me. I would recommend install, from the repositories, xautomation. It works muuuch better (IMO), and helped me configure my mouse properly. To use it, just edit your .xbindkeysrc file to include this:
"/usr/bin/xte 'keydown Control_R' 'keydown Alt_R' 'key u' 'keyup Alt_R' 'keyup Control_R'"
b:8
(Remember, the spacing and capitalization is very important!) After that, open up a terminal and restart xbindkeys by typing in killall -HUP xbindkeys That should definitely work, I just tried it with my mouse without a problem.
Many thanks!!!!
Love you man, but just to let you know i had to change to:
"/usr/bin/xte 'keydown Control_R' 'keydown Alt_L' 'key u' 'keyup Alt_L' 'keyup Control_R'"
b:8
Note the Alt_L :)
Many many thanks!
kobewan
February 25th, 2007, 03:32 PM
It would just reset all of your options, and clear out any downloaded plug-ins in ~/.usp
It could also be used to do a clean re-install.
Alright, updated the guide.
Also, has the feature-freeze started? I was wondering if it was possible to include an option which makes the search show hits from your shortcuts as well your applications.
Just out of curiosity sweetthdevil, why Alt_L over Alt_R? Do you have Alt_R set as your third level chooser?
sweetthdevil
February 26th, 2007, 02:37 AM
Just out of curiosity sweetthdevil, why Alt_L over Alt_R? Do you have Alt_R set as your third level chooser?
what do you mean??
sweetthdevil
March 9th, 2007, 09:43 AM
so what's new?
Just update to 169..
ssteinbr
March 20th, 2007, 03:05 AM
Hello all,
I've been trying to get the USP svn running on my machine and have run into a few problems. The stable version (installed from the deb file) works fine, but I'd like to try out all the new goodies. Grabbing the svn and installing seems to go fine. After logging out, the applet shows up on the panel but nothin' happens when I click on it.
I've been browsing through the forums for awhile, but haven't been able to find a solution.
Here's the output of usp run-in-window
/usr/bin/usp:31: RuntimeWarning: Python C API version mismatch for module _keybinder: This Python has API version 1012, module _keybinder has version 1013.
from _keybinder import tomboy_keybinder_bind as bindkey
******** PLEASE IGNORE ANY API VERSION WARNING ***********
********** IT SHOULD NOT EFFECT USP OPERATION ************
Using Standard Menu
Loading plugin 'uspuser' : successful
Loading plugin 'system_management' : successful
Loading plugin 'applications' : successful
Loading plugin 'recent' : successful
Traceback (most recent call last):
File "/usr/bin/usp", line 916, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 901, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 663, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 70, in __init__
self.PopulatePlugins()
File "/usr/bin/usp", line 440, in PopulatePlugins
self.plugins[plugin].do_plugin()
File "/usr/lib/python2.4/site-packages/usp/plugins/applications.py", line 647, in do_plugin
self.Todos()
File "/usr/lib/python2.4/site-packages/usp/plugins/applications.py", line 411, in Todos
ItemButton.MyButtonName = path
UnboundLocalError: local variable 'path' referenced before assignment
Looking forward to figuring out how I can get USP svn working. BTW, ver 0.41 works great, awesome app.
Malac
March 20th, 2007, 04:36 AM
@ssteinbr
It looks like one of your .desktop files is corrupt or doesn't have a path statement.
Can you check the~/.usp/applications.list has no blank lines in it.
As a quick fix insert this line: path="Error"at line 370 just above for grandchild in child.get_contents():So it reads: path="Error"
for grandchild in child.get_contents():This should allow usp to launch but you may have a damaged menu entry, chanders would know better.
ssteinbr
March 20th, 2007, 12:21 PM
@Malac - Thanks for the quick reply. ~/.usp/applications.list seems tp be a blank file. I found
for grandchild in child.get_contents():
in the file usr/lib/python2.4/site-packages/usp/plugins/applications.py, and placed
path="Error"
above it as suggested. And now usp run-in-window gives
ssteinbr@dude:~$ usp run-in-window
/usr/bin/usp:31: RuntimeWarning: Python C API version mismatch for module _keybinder: This Python has API version 1012, module _keybinder has version 1013.
from _keybinder import tomboy_keybinder_bind as bindkey
******** PLEASE IGNORE ANY API VERSION WARNING ***********
********** IT SHOULD NOT EFFECT USP OPERATION ************
Using Standard Menu
Loading plugin 'uspuser' : successful
Loading plugin 'system_management' : successful
Loading plugin 'applications' : successful
Loading plugin 'recent' : successful
Traceback (most recent call last):
File "/usr/bin/usp", line 916, in ?
menu_factory(app, None)
File "/usr/bin/usp", line 901, in menu_factory
MenuWin(applet, iid)
File "/usr/bin/usp", line 663, in __init__
self.mainwin = MainWindow()
File "/usr/bin/usp", line 70, in __init__
self.PopulatePlugins()
File "/usr/bin/usp", line 440, in PopulatePlugins
self.plugins[plugin].do_plugin()
File "/usr/lib/python2.4/site-packages/usp/plugins/applications.py", line 648, in do_plugin
self.Todos()
File "/usr/lib/python2.4/site-packages/usp/plugins/applications.py", line 414, in Todos
ItemButton.connect( "button_release_event", self.ButtonReleased, "Favs", InTerm )
UnboundLocalError: local variable 'InTerm' referenced before assignment
Thanks again for the help!
Malac
March 20th, 2007, 01:46 PM
@ssteinbr
Can you download the latest SVN Revision 213, this should be fixed now, hopefully :).
ssteinbr
March 20th, 2007, 02:02 PM
Malac, Thank you thank you! Seems to be workin' fine now. Great work. Not that I know that much about programming/scripting, but I'm curious as to what the problem was.
Malac
March 20th, 2007, 05:48 PM
Malac, Thank you thank you! Seems to be workin' fine now. Great work. Not that I know that much about programming/scripting, but I'm curious as to what the problem was.
As Python doesn't use { } like C to denote program flow it use whitespace, either tabs or spaces.
e.g.
if this == that:
do-this
do-this-tooBoth statements get executed if this == that as they are both indented the same amount after the if staement.
However:
if this == that:
do-this
do-this-tooIn this example do-this-too gets executed always as it is outside the indented section.
C gets round this by using { }
e.g.
if (this == that){
do-this;
do-this-too;}C just executes the bit between the {}.
Unfortunately some of the older plugins suffer from a mix of tabs and spaces so the program flow can get a little confused. This was the case here. It took me a while to figure out that it was this with your problem.
You can illustrate the problem by opening applications.py in gedit and going to [Edit->Preferences] "Editor" tab and changing the Tab width value.
ssteinbr
March 20th, 2007, 06:00 PM
Thanks again for taking the time. One of my resolutions for the year is to learn a bit more about some these languages. That way, maybe I can fix somethings myself.
Malac
March 20th, 2007, 06:04 PM
Thanks again for taking the time. One of my resolutions for the year is to learn a bit more about some these languages. That way, maybe I can fix somethings myself.
Give python a try. It's really quite intuitive and you can be up and running really quickly.
http://docs.python.org/
PyGTK 2.0 Tutorial (http://www.pygtk.org/pygtk2tutorial/index.html)
ssteinbr
March 20th, 2007, 06:36 PM
Give python a try. It's really quite intuitive and you can be up and running really quickly.
http://docs.python.org/
PyGTK 2.0 Tutorial (http://www.pygtk.org/pygtk2tutorial/index.html)
Will do. Thanks for the links.
panicz
March 24th, 2007, 12:43 PM
im not able to add usp to panel
in console after 'usp run-in-window' command i got:
Traceback (most recent call last):
File "/usr/bin/usp", line 25, in <module>
from easygconf import *
File "/usr/lib/python2.4/site-packages/usp/plugins/easygconf.py", line 3, in <module>
from easybuttons import *
ImportError: No module named easybuttons
svn version 223
xpod
April 3rd, 2007, 06:38 AM
No joy with the .deb on my Edgy install but this one works a treat:)
All i need to do now is make it look as nice as some of the ones i`ve seen posted:-k
Good stuff!!
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.