Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 18 Nov 2019, 09:22
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
ocd-Dock - a dock written for Puppy
Post new topic   Reply to topic View previous topic :: View next topic
Page 5 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Author Message
torm


Joined: 07 Mar 2015
Posts: 183

PostPosted: Wed 18 May 2016, 14:19    Post subject:  

Works nice in PekWM Wink
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Fri 05 Aug 2016, 10:34    Post subject: Release 4.0  

Release 4.0 contains:

    Introduction of desklets - a means of putting launchers and widgets onto the desktop using the same theme as the dock
    New external widget, deskcalendar, which is best displayed on the desktop as a desklet, but is an attractive way of displaying the results of the Linux cal command
    Additional widget commands: textblock and endblock - force groups of text to all have the same font size; and arc - used to draw arcs (including pie slices, circles, donut rings, etc), either as a drawing or driven by a stream value
    Some more skins for the clock widget and the symonitor widget
    Some bug fixes
    Improved the look of the documentation, converted to odt format (though it doesn't open in Microsoft Word, for some reason) and reduced the file size.


Screen shot showing the desklets



Thank you!
Back to top
View user's profile Send private message 
mow9902

Joined: 26 Nov 2008
Posts: 173

PostPosted: Sun 07 Aug 2016, 02:57    Post subject: Understanding format of desklet command
Subject description: I cannot seem to make it work
 

Firstly - thank you for this application which I am running on my tahr 6.0.2 system.
It has many many configuration options and I have been steadily working my way through the documentation experimenting with each of them. All good with pinning an item, creating launch items in the pin file, pinning a widget etc...but cannot seem to understand how to make the desklets work.

The documentation says that a desklets file needs to be created in .config and this file should have a separate line for each required desklet. The command format is size x y <command>

Let's assume I want to have the clock show in a desklet. Can someone please give me an example of the correct format for this line - assuming I want a size for the desklet of
500 pixels high x 200 pixels wide
positioned at 20 pixels from top and 40 pixels from left of screen
clock with no skin.

Thanks heaps in anticipation.
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Mon 08 Aug 2016, 04:11    Post subject:  

Hi Mow9902,

Firstly, thanks for the feedback.

The main problem is that desklets MUST be square so it is not possible create (at least at present) rectangular desklets.

If you wanted, though a clock (with no skin) 200 pixels by 200 pixels at the position you specify then the desklets file should contain the command:

200 40 20 clock


Hope that helps and sorry for the delay in replying but it has been a busy weekend!

Rob
Back to top
View user's profile Send private message 
Ghost Dog


Joined: 27 Jan 2012
Posts: 164

PostPosted: Tue 16 Aug 2016, 06:03    Post subject:  

Hi again,

I must have messed something up installing or removing packages, because your dock isn't working as awesome as it was before. For some reason, I seem to "lose" icons for the file manager and geany after I open the programs. The icons get replaced by little photos with x's on them. I don't know why.

Any ideas on how to fix this minor irritation?

Thanks
capture26788.png
 Description   
 Filesize   5.63 KB
 Viewed   358 Time(s)

capture26788.png


_________________
The Way of the Samurai
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Tue 16 Aug 2016, 11:32    Post subject:  

Hi Ghost Dog.

Very interesting problem. Firstly, I don't recognise the icons so they don't come with ocd-Dock. They may be, I suspect, the Gtk icons for missing images. So you get these when ocd-Dock is looking for an icon that it cannot find.

Secondly, you say that this only occurs when you open Geany or File Manager. I presume you mean it is ok before you open either of those two programs. Not only that I assume that all other programs seem to work fine. Therefore the only way I can see that this could happen is when you have specified a -icon1 option in the pinned file. So my questions would be:

1. Which version of Puppy are you running?
2. Have you loaded a specific Gtk theme?
3. Does your pinned file make use of the -icon1 option for Geany or File Manager?
4. Can you tell me the path to the icon that you expect to see?
5. Do other programs work fine?
6. Do Geany and File manager look ok before you open them?

Thanks,
Rob
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Wed 17 Aug 2016, 04:19    Post subject:  

ProgRob,

ocd-Dock works quite well except for the pinned file. When I right click on a loaded app and add it to the dock, it creates a pinned file as expected. If I then kill ocd-Dock and start it again, it crashed with a segmentation fault. It also segfaults when I do: ocd-Dock -s

I'm using slacko-632. Any ideas?

Is there going to be a 64bit version?

Thanks

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 17 Aug 2016, 06:36    Post subject:  

Thanks Smokey01 for the feedback. I have no idea why it is doing that as it works perfectly on my test - there again I am not using slacko-632.

To help me diagnose, is there any chance you could upload:

- your pinned file before pinning the extra app
- your pinned file after pinning the extra app (after it crashed loading)
- your error.log file after the crash

They're all small files so should be ok as attachments or even simply as a message.

Also, can you advise if it works without the -s switch? Unlikely to make a difference but will help eliminate it from the enquiries!


As for a 64bit version, I am currently compiling on a 32bit version of Precise Puppy. I will investigate how to create 64bit versions which I assume should be an easy alternative compile.

Thanks,
Rob
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Wed 17 Aug 2016, 08:04    Post subject:  

There is no pinned file before or after the app is initially run (is there meant to be?). The only way I get a pinned file is after I right-click on a running app on the bar.

This is the error after I first run ocd-Dock:
"No pinned file found - starting with empty dock"

This is the pinned file after I add with right-click:
"launcher /usr/share/applications/seamonkey.desktop
insertionpoint"

After killing the app and restarting, it segfaults and it doesn't produce an error file.

If I delete the pinned file then it runs again.

ocd-Dock -s or -e segfaults no error log files produced.

ocd-Dock -v or -m works.

Grant



ProgRob wrote:
Thanks Smokey01 for the feedback. I have no idea why it is doing that as it works perfectly on my test - there again I am not using slacko-632.

To help me diagnose, is there any chance you could upload:

- your pinned file before pinning the extra app
- your pinned file after pinning the extra app (after it crashed loading)
- your error.log file after the crash

They're all small files so should be ok as attachments or even simply as a message.

Also, can you advise if it works without the -s switch? Unlikely to make a difference but will help eliminate it from the enquiries!


As for a 64bit version, I am currently compiling on a 32bit version of Precise Puppy. I will investigate how to create 64bit versions which I assume should be an easy alternative compile.

Thanks,
Rob

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Wed 17 Aug 2016, 12:19    Post subject:  

Thanks Grant.

Firstly, it should be robust to not having a pinned file. A pinned file is created for you if you pin something to the dock. So no problem there.

Secondly the pinned file you've quoted is absolutely fine and would be what I would have suggested you write if you wanted it hand craft one. So again, no problem.

Thirdly, if I have understood you correctly, the program runs if you have the pinned file and you run a command such as:
ocd-Dock -v
or
ocd-Dock -m

If so, then that tells me there is a problem in the error handling code.

So to crack this, if you're up to help me, can you:

1. Confirm that with the pinned file in place, a command such as:
ocd-Dock
works (no switches, nothing, just the command on its own)
2. If it does work, can you let me know if you see what you expect on the dock (i.e. the application you pinned should be there)?
3. If it works but the dock is empty, despite having a pinned file like the one you stated, can you see if an error.log file has been created and let me know its contents if so?
4. Can you try pinning a different app and see if you get the same problem? Try something like mtPaint

My theory is there is something odd about the seamonkey desktop file (or probably more accurately, something about the file that my code is handling incorrectly) which is generating an error. That error is then being mishandled causing the segfault. My reason for thinking this is that the -s and -e switches cause the errors that should be being output to the error log to also be output to the window that pops up.

I have another minor release ready to go, but would like to track this bug down before releasing as it is not good to have known bugs. It would be good to know that it works if you don't use -e or -s as at least that gives an eminently sensible workaround.

Thanks,
Rob


smokey01 wrote:
There is no pinned file before or after the app is initially run (is there meant to be?). The only way I get a pinned file is after I right-click on a running app on the bar.

This is the error after I first run ocd-Dock:
"No pinned file found - starting with empty dock"

This is the pinned file after I add with right-click:
"launcher /usr/share/applications/seamonkey.desktop
insertionpoint"

After killing the app and restarting, it segfaults and it doesn't produce an error file.

If I delete the pinned file then it runs again.

ocd-Dock -s or -e segfaults no error log files produced.

ocd-Dock -v or -m works.

Grant
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 2811
Location: South Australia :-(

PostPosted: Wed 17 Aug 2016, 16:18    Post subject:  

I'm sorry for not being clear. The switches have nothing to do with the pinned file. Running ocd-Dock without switches works. It also works with -v and -m but not -s or -e without a pinned file. Lets forget about the switches now. I have geany open, run ocd-Dock from a terminal, right click and pin geany to the dock. It continues to work until I do a ctrl-c and kill the app. When I try to start it up again it segfaults. If I delete the pinned file it the runs again.

I don't think it's an issue with the seamonkey.desktop file as I get the same results with various desktop files. I also noticed that rox does not show an icon on the bar and an option to pin it to the bar is not provided. Rox is a roxapp, should that make a difference?

Cheers

_________________
Software <-> Distros <-> Tips <-> Newsletters
Back to top
View user's profile Send private message Visit poster's website 
Geoffrey


Joined: 30 May 2010
Posts: 2377
Location: Queensland

PostPosted: Wed 17 Aug 2016, 18:05    Post subject:  

smokey01 wrote:
I'm sorry for not being clear. The switches have nothing to do with the pinned file. Running ocd-Dock without switches works. It also works with -v and -m but not -s or -e without a pinned file. Lets forget about the switches now. I have geany open, run ocd-Dock from a terminal, right click and pin geany to the dock. It continues to work until I do a ctrl-c and kill the app. When I try to start it up again it segfaults. If I delete the pinned file it the runs again.

I don't think it's an issue with the seamonkey.desktop file as I get the same results with various desktop files. I also noticed that rox does not show an icon on the bar and an option to pin it to the bar is not provided. Rox is a roxapp, should that make a difference?

Cheers


I can confirm that smokey, when it reads a valid pinned file it segfaults and gives no errorlog, I'm running the dock in X-Slacko 4.2 which is based on slacko 6.3.2

Cheers Geoff

_________________
Carolina: Recent Repository Additions

Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 18 Aug 2016, 04:17    Post subject:  

Thanks guys - it seems to me that the common factor is Slacko - seems some more testing needed from me as it seems to work fine in TahrPup.

Very odd though why it is happening.

Rob


Geoffrey wrote:
smokey01 wrote:
I'm sorry for not being clear. The switches have nothing to do with the pinned file. Running ocd-Dock without switches works. It also works with -v and -m but not -s or -e without a pinned file. Lets forget about the switches now. I have geany open, run ocd-Dock from a terminal, right click and pin geany to the dock. It continues to work until I do a ctrl-c and kill the app. When I try to start it up again it segfaults. If I delete the pinned file it the runs again.

I don't think it's an issue with the seamonkey.desktop file as I get the same results with various desktop files. I also noticed that rox does not show an icon on the bar and an option to pin it to the bar is not provided. Rox is a roxapp, should that make a difference?

Cheers


I can confirm that smokey, when it reads a valid pinned file it segfaults and gives no errorlog, I'm running the dock in X-Slacko 4.2 which is based on slacko 6.3.2

Cheers Geoff
Back to top
View user's profile Send private message 
ProgRob

Joined: 13 Feb 2013
Posts: 65

PostPosted: Thu 18 Aug 2016, 11:28    Post subject:  

Thanks Grant and Geoff,

It looks as if it works if I compile in Slacko. I have uploaded a Slacko version as a separate upload - please see the first post. I have uploaded an executable which needs to be downloaded and moved into /usr/local/bin

I will try to come up with a better way of distributing for future releases but if you can see if that fixes things I'd be grateful.

The problems might be caused by different versions of the underlying libraries (particularly libgee). I'll do some more digging but what has worked on my test is:

1. Restarting after a pin
2. Rox filer has got an icon



Rob
Back to top
View user's profile Send private message 
UncleBaldie


Joined: 03 Feb 2008
Posts: 42
Location: Staffordshire, UK

PostPosted: Thu 18 Aug 2016, 17:56    Post subject:  

Good work, ProgRob.

Well, it probably is, but I can't get it going.
I am using TahrPup 6.0.5, with the standard JWM.
D/L Pet, installed, grabbed every libwnck-1 that I can find, and none of them work.

Is there a version anywhere that I can use ?

Regards,
Phil
error.png
 Description   
 Filesize   20.78 KB
 Viewed   161 Time(s)

error.png


_________________
Crackin' cheese, Gromit lad...


Woof-woof......oh yes !!
Back to top
View user's profile Send private message MSN Messenger 
Display posts from previous:   Sort by:   
Page 5 of 7 [104 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6, 7 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0732s ][ Queries: 12 (0.0155s) ][ GZIP on ]