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 Thu 17 Apr 2014, 06:20
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
simple icon tray
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 8 [114 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
Author Message
seaside

Joined: 11 Apr 2007
Posts: 878

PostPosted: Sat 26 Jan 2013, 21:28    Post subject:  

jamesbond wrote:
Patch:
1. Remove default include files path (if this path doesn't exist, execution fails - bad)
2. change popen mode from "r" to "w" - otherwise no output
3. ensure pclose after popen so that we don't get zombie process
4. close pid from g_spawn_async
5 add version numbering so we know which version of sit this is.
6. modify build process so that it is 64-bit compatible (should still work on 32-bit)
7. modify build process so that it tests correctly


jamesbond,

Thank you for the improvements.
The original sit-master binary compiled by technosaurus runs in Puppy precise 5.4.1 and this one failed after patching.....

Code:
 ./build
/usr/bin/ld: /tmp/cckw5xNo.o: undefined reference to symbol 'g_file_monitor_file'
/usr/bin/ld: note: 'g_file_monitor_file' is defined in DSO /usr/lib/libgio-2.0.so.0 so try adding it to the linker command line
/usr/lib/libgio-2.0.so.0: could not read symbols: Invalid operation
collect2: ld returned 1 exit status


I added the link to -L/usr/lib/libgio-2.0.so.0 on the command line and that didn't make any difference.

I think it would be great to have this generally in Puppy and ideally one version for all, but I don't know enough about compiling.

Regards,
s
(EDIT: I just tried to compile the master-sit original and got the same error, so something must be different in Puppy Precise 5.4.1, even though the binary included works)
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 1875
Location: The Blue Marble

PostPosted: Sat 02 Feb 2013, 07:45    Post subject:  

I agree.

This is how to fix the compile it recent puppies (tested in my homebrew slackware-based 32-bit puplet). Do it after you apply the patch.

Change line 7 in "build" from
Code:
sit.c -o sit -lgtk-x11-2.0 && strip --strip-all -R .note -R .comment sit
To
Code:
sit.c -o sit -lgtk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 && strip --strip-all -R .note -R .comment sit
Note the addition of -lgio-2.0 -lgobject-2.0 -lglib-2.0.

The easier way to compile without having to remember all this thingamagic is
Code:
sit.c -o sit $(pkg-config --libs gtk+-2.0) && strip --strip-all -R .note -R .comment sit
but technosaurus will disapprove of it Laughing (because, although it does make it easier to compile, it causes the compile to pull in unnecessary dependencies and make it slightly larger).
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Sat 02 Feb 2013, 10:45    Post subject:  

I think I was adding the -Wl,--as-needed flag too, which tells the linker to look in the deps. Amazingly it builds and runs fine on windows, so I would guess its the hacky canonical patches. I cant' check the puppy build right now since my classes all require windows and/or a full java sdk.

-btw thanks for the patches

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
seaside

Joined: 11 Apr 2007
Posts: 878

PostPosted: Mon 04 Feb 2013, 13:46    Post subject:  

jamesbond wrote:


Change line 7 in "build" from
Code:
sit.c -o sit -lgtk-x11-2.0 && strip --strip-all -R .note -R .comment sit
To
Code:
sit.c -o sit -lgtk-x11-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 && strip --strip-all -R .note -R .comment sit
Note the addition of -lgio-2.0 -lgobject-2.0 -lglib-2.0.



jamesbond,

Thanks. It worked nicely.

In case anyone wants the compiled binary made in Precise 5.4.3, I've attached it here.

Regards,
s
sit-james-master-bin.tar
Description  James patch to technosaurus sit-master
tar

 Download 
Filename  sit-james-master-bin.tar 
Filesize  20 KB 
Downloaded  234 Time(s) 
Back to top
View user's profile Send private message 
eadmaster

Joined: 09 Feb 2013
Posts: 25

PostPosted: Sun 14 Apr 2013, 07:32    Post subject:  

is it possible to set the tooltip as a command instead of a fixed string?
So when the mouse is hovering, the cmd is executed and the output is displayed in the tooltip...
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Sun 14 Apr 2013, 11:54    Post subject:  

You can set something up in your control script to modify the tooltip file ... either by periodically running said command or running it based on some event.
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
eadmaster

Joined: 09 Feb 2013
Posts: 25

PostPosted: Sun 14 Apr 2013, 12:36    Post subject:  

oh, you're right... i didn't think about it!
Wink
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Sat 20 Jul 2013, 00:06    Post subject:  

I am reworking sit to also do the desktop ... Tentatively renaming to sdesk
New abilities will be desktop widgets that can be provided by using svg images... Like in pwidgets or gkrellm. Webcam shots, tv tuner captures, slideshows, graphs, text, possibly even desktop icons.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4133

PostPosted: Sun 21 Jul 2013, 15:13    Post subject:  

sdesk is now in a working alpha state with all of the sit parts still intact.
the usage has changed to the following format:
Code:

  -i   <include files>
  -b  <background imagge>
  -t  <status icon> <tooltip> <left click action> <right click action>
      the -t option can be used multiple times,
sdesk.tar.gz
Description 
gz

 Download 
Filename  sdesk.tar.gz 
Filesize  8.79 KB 
Downloaded  173 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 8 of 8 [114 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8
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.0603s ][ Queries: 13 (0.0073s) ][ GZIP on ]