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 Fri 29 Aug 2014, 08:08
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Icepipes - my pipe menus collection for icewm
Post new topic   Reply to topic View previous topic :: View next topic
Page 2 of 3 [35 Posts]   Goto page: Previous 1, 2, 3 Next
Author Message
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 23 Jul 2013, 13:26    Post subject:  

OK, good ideas. This is supposed to be fairly distro-agnostic, but I can add in support for the ~/.trash location if the directory exists...and the user is using Rox-Filer to open directories.

The network:// uri is available in Nautilus and in Thunar when gvfs support is enabled. If you set the filemanager to rox or pcmanfm it's not supposed to display.

I'm seriously considering moving the preferences out of the script and into a separate config file, that all of these pipe menu scripts would source. That makes setup easier. I could also add in some logic, I suppose, to enable only existing programs. Maybe as part of an installation script or Makefile.

Anyway, even if I keep it distro-agnostic that doesn't mean there couldn't be a puppy-specific package at some point, with all of the appropriate configurations for Puppy already selected.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 23 Jul 2013, 15:51    Post subject:  

Just realized I never implemented the code to hide the network:// uri in rox. Anyway, here's the relevent section of the new implementation.
Code:
case $filemanager in
rox)
  if [ -d "$HOME/.trash" ] ; then
    TRASH="prog "Trash" "user-trash.png" $filemanager $HOME/.trash"
  fi
;;
nautilus|thunar)
  TRASH="prog \"Trash\" \"user-trash.png\" $filemanager trash:///"
  NETWORK="prog \"Network\" \"network-workgroup.png\" $filemanager network:///"
;;
pcmanfm)
  TRASH="prog \"Trash\" \"user-trash.png\" $filemanager trash:///"
;;
esac


# Static places menu
echo "prog \"Filesystem\" \"drive-harddisk.png\" $filemanager file:///"
if [ "$BROWSE_HOME" = "true" ] ; then
  echo "menuprogreload Home user-home 0 icefb.sh $HOME"
else
  echo "prog \"Home\" \"user-home.png\" $filemanager file://$HOME"
fi
cat << EOF
$NETWORK
$TRASH

separator

EOF

That should hide the "trash:///" and "network:///" uri's in rox but display and entry for ~/.trash, and use the appropriate entries in Nautilus, Thunar, and Pcmanfm. I'll post an update sometime in the next couple days. Work is keeping me busy.

I have another project going that adds networking support via sshfs and/or curlftpfs. Once it reaches a higher state of maturity I may make it available in the places pipemenu as an alternative to "network://", which is based on gvfs and has to be compiled into a program.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 23 Jul 2013, 16:10    Post subject:  

Caught another bug just now. Rox doesn't handle file:/// or file://$HOME. That's fine, the other filemanagers do just fine without the "file://" portion. It's only there to distinguish between local and remote files in the pathbar.

I updated the pekwm and openbox versions of the places menu. I'll add in support for rox bookmarks soon and move the config for all the menus out into a separate file.

Incidentally, are you getting icons in the menus? I chose the icon names based on the gnome/tango naming scheme which is supposed to be standard now but don't know what Puppy actually has available. I'd like to make it all work on Puppy without any loss of function.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 23 Jul 2013, 17:22    Post subject:  

Found it!

My own take on openbox's "Recent Documents" pipemenu is at http://murga-linux.com/puppy/viewtopic.php?p=662351&sort=lastpost&search_id=784598484#662351
To work properly, it needs aemenu, replaceit and an activated /root/.recently-used.xbel (now at ~/.local/.recently-used.xbel, in newer Puppies).

Care to comment? (Or not is ok too!) Smile

You'll see that the script has an international section, both to translate in utf8 code the XML characters present in the .xbel file AND to be able to use correct language strings as much as possible for a wide range of European Union languages in the menu. (No discrimination implied, I can only do so much.)

Currently finding translations for new "erase" line/function -- which your own script made me think of adding. Thanks for that.

Bye for now.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 23 Jul 2013, 17:41    Post subject:  

Nathan F wrote:
Caught another bug just now. Rox doesn't handle file:/// or file://$HOME. That's fine, the other filemanagers do just fine without the "file://" portion. It's only there to distinguish between local and remote files in the pathbar.

Yeah, I tried to tell you in one of my edits.

Nathan F wrote:
I updated the pekwm and openbox versions of the places menu. I'll add in support for rox bookmarks soon and move the config for all the menus out into a separate file.

ROX bookmarks support would be great, because 1) they can greatly speed up access to any point of the Linux hierarchy; 2) most users don't know / don't care that they exist.
Killing two birds with one stone, maybe you could make it reversible, like from the pipemenu to the ROX bookmars?

Nathan F wrote:
Incidentally, are you getting icons in the menus? I chose the icon names based on the gnome/tango naming scheme which is supposed to be standard now but don't know what Puppy actually has available. I'd like to make it all work on Puppy without any loss of function.


Didn't notice first time around. I'll double-check.

BFN.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Tue 23 Jul 2013, 17:45    Post subject:  

Nope, no icons...
_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 23 Jul 2013, 18:01    Post subject:  

I will take a peek at your script of course. Internationalisation is a good thing, and I always try to provision for it eventually. For now I've just been working on basic function.

Gotta run. @work...

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Tue 23 Jul 2013, 18:43    Post subject:  

Two more thoughts occurred to me.

1) It would be great to have a tool to automatically sync ROX bookmarks and gtk bookmarks.

2) I'm annoyed about the d**n icons. I'll investigate it, but it would be nice to have standard icon names in Puppy someday.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Wed 24 Jul 2013, 03:04    Post subject:  

Sorry, everyone.

I've removed the script and contribution that I had previously put here, since it appears that outside contributions are not needed or are swallowed into the "Nathan F" corpus.

Regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)

Last edited by musher0 on Wed 24 Jul 2013, 16:34; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 24 Jul 2013, 06:42    Post subject:  

On the subject of icons...

I've been examining what Puppy includes for icons by default. A lot of it is just what I remember from years back. Even the old fvwm95 icons that I remember from Puppy 101 or so, when I first started fooling with it.

The good news is that the cut-down "themes" in /usr/local/lib/X11/themes have a good, workable selection. The bad news is that the naming conventions are non-standard. But I have thoughts for how to fix it (fix it from my perspective anyway).

A "normal" icon theme for gtk+ or for KDE/QT for that matter, has subdirectories for the different sizes of icons, and inside are more subdirectories for categories (apps, actions, places, mimetypes to name a few). This could be mimiced in Puppy by creating skeleton directories inside the icon "themes" and symlinking the icons into the appropriate directories, with the more "official" names that most apps expect. It would be fairly straightforward to script.

That would probably be enough to cover the missing menu icons, and it might even make it possible to use the icons that Puppy includes to theme gtk apps somewhat, although I doubt there's enough there for full coverage.

What I really want to avoid doing is making any of my scripts "Puppy Only" by adopting Puppy naming conventions for the icons. No offense intended.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 24 Jul 2013, 14:32    Post subject:  

Question, since I've got rox bookmark support implemented now.

Would it make better sense to have the ROX-Filer bookmarks always open in ROX-Filer, or use whatever the default filemanager is set to?

Going to stop working for the rest of the day, and take my son out to spend some time together.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
musher0


Joined: 04 Jan 2009
Posts: 4231
Location: Gatineau (Qc), Canada

PostPosted: Wed 24 Jul 2013, 16:29    Post subject:  

Nathan F wrote:
Question, since I've got rox bookmark support implemented now.
(...)


"You've got bookmark support implemented now"? Therefore it seems that you do not need outside contributions.

I will therefore remove the script I contributed earlier and let you lure other fishes.

Good luck doing things on your own.

Regards.

musher0

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 24 Jul 2013, 17:27    Post subject:  

OK, that was an unexpected response. Maybe I'm oblivious?

I will give it one shot at placating you. I meant no offense. If you're upset because you think I took your code without credit, I didn't. I implemented my own. If you're upset that I didn't use your contribution, I'm sorry. I'm writing this and reserve the right to implement things my own way.

I'd rather not leave it thinking I just made an enemy though. If I come off as insensitive please understand that I live a busy and stressful life, as I'm sure a lot of other people do. I usually have a number of other things on my mind while typing and hitting send. So maybe I went wrong somewhere, and if so please feel free to enlighten me, but for the most part I'm just puzzled at the moment.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
simargl

Joined: 11 Feb 2013
Posts: 572

PostPosted: Wed 24 Jul 2013, 18:13    Post subject:  

.
_________________
The Arch Way

Last edited by simargl on Sun 01 Sep 2013, 11:24; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
Nathan F


Joined: 08 Jun 2005
Posts: 1760
Location: Wadsworth, OH (occasionally home)

PostPosted: Wed 24 Jul 2013, 21:12    Post subject:  

Quote:
I don't understand why you bother at all

I didn't for quite some time. Kinda missed it.

I get everything you're saying. I've also been around long enough to know reasons for a lot of what you may only have guesses for.

ROX-Filer is a pretty old app. It's gtk+1xx ported over to gtk+2xx. It doesn't really re-implement anything. It had implementations of it's own for things that other apps didn't have at the time, or hadn't been standardised yet. That's why it has it's own internal mechanisms for bookmarks, mime-handling, and whatnot. It makes it quirky, but it also has features I miss in -every- other filemanager.

Similarly, the icons weren't "moved" to /usr/local/lib/X11. When I started using Puppy it had fvwm95 and jwm was a new experimental option. Fvwm95 had it's icons in /usr/local/lib/X11, and since Barry was re-using the icons all over the place he kept them there when fvwm left. It looks like a major kludge now I agree.

It's all quirky, but it's still useful.

_________________
Bring on the locusts ...
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger 
Display posts from previous:   Sort by:   
Page 2 of 3 [35 Posts]   Goto page: Previous 1, 2, 3 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.0893s ][ Queries: 12 (0.0064s) ][ GZIP on ]