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 02 Apr 2020, 18:29
All times are UTC - 4
 Forum index » House Training » Beginners Help ( Start Here)
Rox Bookmarks As Entry On JWM Pipe Menu [Solved]
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Author Message
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Tue 15 Apr 2014, 11:31    Post subject:  Rox Bookmarks As Entry On JWM Pipe Menu [Solved]
Subject description: (as menu button also solved, but both being developed further...)
 

it'd be cool and convenient and make the desktop feel better integrated. can it be done? if so, how?

thanks in advance.

edit: "Rox Bookmarks As Menu Button on JWM Tray/Entry on Pipe Menu" has been renamed and declared solved.

Last edited by Puppus Dogfellow on Wed 07 May 2014, 03:50; edited 4 times in total
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Tue 15 Apr 2014, 12:17    Post subject:  

It is possible. Bookmarks are stored in:
Code:

/root/.config/rox.sourceforge.net/ROX-Filer/


folder as .xml file. This file has to be parsed and links to your locations added to menu etc. I will try to make a rox-app that will use your locations as menu entries when you click on home icon.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Tue 15 Apr 2014, 12:20    Post subject:  

puppy_apprentice wrote:
It is possible. Bookmarks are stored in:
Code:

/root/.config/rox.sourceforge.net/ROX-Filer/


folder as .xml file. This file has to be parsed and links to your locations added to menu etc. I will try to make a rox-app that will use your locations as menu entries when you click on home icon.



wow. cool. and thanks.
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Thu 17 Apr 2014, 17:48    Post subject:  

Ok, app is ready. But important!!! Sometimes Rox saves bookmarks that my script can't parse bookmarks file correctly (bookmarks are stored in two lines, should be stored line by line, i've noticed this behavior only once so far). So if u choose "Update bookmarks" option and after you click right mouse button on file icon u don't see anything, open rox-filler from bar menu and use option "Edit bookmarks", don't edit anything, just close edit options, Rox should now save boomarks better. Next go to app file folder (use rox from bar menu), open console (via: Window>Terminal here) and write
Code:

./AppRun --update

You can make a script wit this command and save it in
Code:

/root/my-applications/bin/

#!/bin/bash
/usr/local/apps/file/AppRun --update

and run it when file app is broken.
Or the simplest metod:
Click right mouse button on file icon and choose "Edit item", next write in Argumments field
Code:

--update

click "OK" and click on file icon. If bookmarks were added to menu open "Edit item" again an make Arguments field empty.
file_app.png
Description 
png

 Download 
Filename  file_app.png 
Filesize  92.17 KB 
Downloaded  353 Time(s) 
app_file.tar.gz
Description 
gz

 Download 
Filename  app_file.tar.gz 
Filesize  1003 Bytes 
Downloaded  180 Time(s) 

Last edited by puppy_apprentice on Fri 18 Apr 2014, 01:39; edited 5 times in total
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Thu 17 Apr 2014, 18:31    Post subject:  

thanks, puppy-apprentice. looking forward to testing it out.
Very Happy

where does it go and does it go there unzipped? which app folder?

what command activates it? do i just click on it or is it being the proper location enough for puppy to pick it up?


sorry for the questions and thanks again...

Last edited by Puppus Dogfellow on Thu 17 Apr 2014, 19:02; edited 1 time in total
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Thu 17 Apr 2014, 18:53    Post subject:  

Everything is on the screenshot Wink

But:

1) extract app

2) copy whole folder to:
Code:

/usr/local/apps/


3) click right mouse button on file icon, and choose "Edit item", next in first field write:
Code:

/usr/local/apps/file


4) next click right mouse button on file icon and choose option "Update bookmarks"
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Thu 17 Apr 2014, 19:16    Post subject:  

puppy_apprentice wrote:
Everything is on the screenshot Wink

But:

1) extract app

2) copy whole folder to:
Code:

/usr/local/apps/


3) click right mouse button on file icon, and choose "Edit item", next in first field write:
Code:

/usr/local/apps/file


4) next click right mouse button on file icon and choose option "Update bookmarks"


it works. thanks yet again for this. (tested in precise 571, fwiw. will put it on my 561 and 55 machines as well...)

is there any way to make it (the new right click on home behavior) a JWM entry?
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Thu 17 Apr 2014, 19:25    Post subject:  

I will try to save all links to puppy menu. But maybe after holidays. Maybe somebody will take my script and rewrite it. It is normal bash script (GPL Licence).
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Thu 17 Apr 2014, 22:06    Post subject:  

having a bit of trouble with it on a 561 machine...so far from two separate locations (usr/local/apps; usr/share/apps) i can't get it to update/show the whole list on right click...tried both methods and will mess around with it some more later.

edit: working well now on 561 as well; 5.5 was an instant install, bookmarks update at a click first try, second try,...

nicely done!

puppy_apprentice wrote:
I will try to save all links to puppy menu. But maybe after holidays. Maybe somebody will take my script and rewrite it. It is normal bash script (GPL Licence).


thanks, cool, and enjoy the holidays.

[i'm upping your script to my repo's Utilities, etc folder. i may eventually add it to two others (file managers and desktop) as well. again, thanks.]
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Fri 18 Apr 2014, 01:32    Post subject:  

Puppus Dogfellow wrote:
having a bit of trouble with it on a 561 machine...so far from two separate locations (usr/local/apps; usr/share/apps) i can't get it to update/show the whole list on right click...tried both methods and will mess around with it some more later.

edit: working well now on 561 as well; 5.5 was an instant install, bookmarks update at a click first try, second try,...

nicely done!


I've rewrited info about problems in former post, now should be more clear what to do when Rox save bookmarks (it's could happen when you add new location to Rox bookmarks) in the format that my Sed command doesen't understand (maybe somebody will write better Sed formula to parse xml data).



Quote:
thanks, cool, and enjoy the holidays.


You too.

Quote:
i'm upping your script to my repo's Utilities, etc folder. i may eventually add it to two others (file managers and desktop) as well. again, thanks.]


My app should work on every distro with Rox-Filer as a file/desktop manager (simillar to Puppy). Puppy developers could try to make applet called "Places" or "Lcations".
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Fri 18 Apr 2014, 05:13    Post subject:  

update: failing on three computers all in the same way: it shows the book marks on right click, attempts to go to the correct location, fails and goes to ~.

...one in five at best works.

anyway, here's your appfileupdate script to save someone a copy/paste.

(rainman out)
Embarassed Smile
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Fri 18 Apr 2014, 14:46    Post subject:  

Puppus Dogfellow wrote:
update: failing on three computers all in the same way: it shows the book marks on right click, attempts to go to the correct location, fails and goes to ~.

...one in five at best works.

anyway, here's your appfileupdate script to save someone a copy/paste.

(rainman out)
Embarassed Smile


Please check if those bookmarks are point to real folders, maybe someone made bookmark but later deleted folder or names of those folders have chars that my parser doesn't extract (i've used ".*" pattern so it should extract letters/numbers and more). In my script there is a "if" block that check if folder exists if not it will open home directory (~):
Code:

   *) if [ -d $option ]
           then
             /usr/local/bin/rox $option #browse folder if exists
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Another posibility is that those folders have "space" in name. So try to change above lines in AppRun to:

Code:

   *) if [ -d $option ]
           then
             /usr/local/bin/rox "$option" #browse folder if exists, maybe "" help for folders which names have spaces
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Could you post AppInfo.xml file from those computers where my app doesen't work corectly. It is stored in app folder (/usr/local/apps/file). Thanks.
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Fri 18 Apr 2014, 15:20    Post subject:  

puppy_apprentice wrote:
Puppus Dogfellow wrote:
update: failing on three computers all in the same way: it shows the book marks on right click, attempts to go to the correct location, fails and goes to ~.

...one in five at best works.

anyway, here's your appfileupdate script to save someone a copy/paste.

(rainman out)
Embarassed Smile


Please check if those bookmarks are point to real folders, maybe someone made bookmark but later deleted folder or names of those folders have chars that my parser doesn't extract (i've used ".*" pattern so it should extract letters/numbers and more). In my script there is a "if" block that check if folder exists if not it will open home directory (~):
Code:

   *) if [ -d $option ]
           then
             /usr/local/bin/rox $option #browse folder if exists
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Another posibility is that those folders have "space" in name. So try to change above lines in AppRun to:

Code:

   *) if [ -d $option ]
           then
             /usr/local/bin/rox "$option" #browse folder if exists, maybe "" help for folders which names have spaces
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Could you post AppInfo.xml file from those computers where my app doesen't work corectly. It is stored in app folder (/usr/local/apps/file). Thanks.


the locations are real (nearly all, anyway) and nobody but me messes around with these machines. another error has started to occur on one of the machines (the one i'm at now): it pops up saying the location doesn't exist then goes to the folder (that in fact exists) anyway. figured maybe this could clue you in on what's going wrong...

here's the appinfo.xml for this one:
Code:

<?xml version="1.0"?>
<AppInfo>
  <Summary>Browse for files</Summary>
  <Summary xml:lang="pl">Przeglądaj pliki</Summary>
  <Summary xml:lang="ru"></Summary>
  <Summary xml:lang="ja"></Summary>
  <Summary xml:lang="zh_CN"></Summary>
  <About>
    <Purpose>Manage Rox-Filer</Purpose>
    <License>GPL: /usr/share/doc/legal</License>
    <Version>2014-04-15</Version>
    <Authors>puppy_apprentice</Authors>
    <Homepage>http://puppylinux.org/</Homepage>
  </About>
  <AppMenu>
      <Item option="/mnt/sda2/Downloads/DWNLDSFFF">
    <Label>/mnt/sda2/Downloads/DWNLDSFFF</Label>
    </Item>
      <Item option="/mnt/sda4/all pets">
    <Label>/mnt/sda4/all pets</Label>
    </Item>
      <Item option="SpiderOak Hive">
    <Label>SpiderOak Hive</Label>
    </Item>
      <Item option="/root/my-documents/Text">
    <Label>/root/my-documents/Text</Label>
    </Item>
      <Item option="mycopy">
    <Label>mycopy</Label>
    </Item>
      <Item option="/mnt/home">
    <Label>/mnt/home</Label>
    </Item>
      <Item option="Puppy Linux Mini Repository">
    <Label>Puppy Linux Mini Repository</Label>
    </Item>
      <Item option="/mnt/sda3/copyonsda3/Copy">
    <Label>/mnt/sda3/copyonsda3/Copy</Label>
    </Item>
      <Item option="/mnt/home/precise-5.6.1">
    <Label>/mnt/home/precise-5.6.1</Label>
    </Item>
      <Item option="Dropbox">
    <Label>Dropbox</Label>
    </Item>
      <Item option="0UTSIDEjamonSDA3">
    <Label>0UTSIDEjamonSDA3</Label>
    </Item>
      <Item option="DBmy-documents">
    <Label>DBmy-documents</Label>
    </Item>
      <Item option="RTmy-documents">
    <Label>RTmy-documents</Label>
    </Item>
      <Item option="SOHmy-documents">
    <Label>SOHmy-documents</Label>
    </Item>
      <Item option="/usr/share/applications">
    <Label>/usr/share/applications</Label>
    </Item>
      <Item option="/">
    <Label>/</Label>
    </Item>
      <Item option="/mnt">
    <Label>/mnt</Label>
    </Item>
      <Item option="/ANCN">
    <Label>/ANCN</Label>
    </Item>
      <Item option="/usr/share/themes">
    <Label>/usr/share/themes</Label>
    </Item>
      <Item option="/usr/local/lib/X11/themes/Neon">
    <Label>/usr/local/lib/X11/themes/Neon</Label>
    </Item>
      <Item option="/mnt/sda1">
    <Label>/mnt/sda1</Label>
    </Item>
      <Item option="/mnt/sda1/MUSIC">
    <Label>/mnt/sda1/MUSIC</Label>
    </Item>
      <Item option="/mnt/sda2/MUSIC">
    <Label>/mnt/sda2/MUSIC</Label>
    </Item>
      <Item option="/mnt/home/precise-5.6.1/Dropbox/Puppy Linux">
    <Label>/mnt/home/precise-5.6.1/Dropbox/Puppy Linux</Label>
    </Item>
      <Item option="/usr/share/backgrounds">
    <Label>/usr/share/backgrounds</Label>
    </Item>
      <Item option="/initrd/mnt/dev_save/precise-5.6.1/Dropbox">
    <Label>/initrd/mnt/dev_save/precise-5.6.1/Dropbox</Label>
    </Item>
      <Item option="/root/.config/xpad">
    <Label>/root/.config/xpad</Label>
    </Item>
      <Item option="/usr">
    <Label>/usr</Label>
    </Item>
      <Item option="/usr/local/bin">
    <Label>/usr/local/bin</Label>
    </Item>
      <Item option="/root/Startup">
    <Label>/root/Startup</Label>
    </Item>
      <Item option="/root/puppy-reference">
    <Label>/root/puppy-reference</Label>
    </Item>
      <Item option="/usr/bin">
    <Label>/usr/bin</Label>
    </Item>
      <Item option="/mnt/sda3/copyonsda3">
    <Label>/mnt/sda3/copyonsda3</Label>
    </Item>
      <Item option="/tmp">
    <Label>/tmp</Label>
    </Item>
      <Item option="/usr/local/lib">
    <Label>/usr/local/lib</Label>
    </Item>
      <Item option="/root/my-documents/Screenshots">
    <Label>/root/my-documents/Screenshots</Label>
    </Item>
      <Item option="/mnt/sda3/copyonsda3/Copy/My Documents-20gigsync/Software/custon icons">
    <Label>/mnt/sda3/copyonsda3/Copy/My Documents-20gigsync/Software/custon icons</Label>
    </Item>
      <Item option="/usr/share/applications/kde4">
    <Label>/usr/share/applications/kde4</Label>
    </Item>
      <Item option="/opt/libreoffice4.1/share/config">
    <Label>/opt/libreoffice4.1/share/config</Label>
    </Item>
      <Item option="/mnt/home/precise-5.6.1/Dropbox/Puppy Linux/LO4configsettings">
    <Label>/mnt/home/precise-5.6.1/Dropbox/Puppy Linux/LO4configsettings</Label>
    </Item>
      <Item option="/root/.icons/rox-toolbar/rfl">
    <Label>/root/.icons/rox-toolbar/rfl</Label>
    </Item>
      <Item option="/usr/share/midi-icons">
    <Label>/usr/share/midi-icons</Label>
    </Item>
      <Item option="/root/SpiderOak Hive/my-documents/Software">
    <Label>/root/SpiderOak Hive/my-documents/Software</Label>
    </Item>
      <Item option="/usr/share/apps">
    <Label>/usr/share/apps</Label>
    </Item>
      <Item option="/usr/local/apps">
    <Label>/usr/local/apps</Label>
    </Item>
    <Item option="--update">
    <Label>Update bookmarks</Label>
    <Label xml:lang="pl">Odśwież zakładki</Label>
    <Label xml:lang="ru"></Label>
    <Label xml:lang="ja"></Label>
    <Label xml:lang="zh_CN"></Label>
    </Item>
  </AppMenu>
</AppInfo>


in the meantime i'll try the code change you suggested.

edit: tried it and it worked. if the location is real, it goes to it. if not, it opens the home folder.


thanks yet again.

Last edited by Puppus Dogfellow on Fri 18 Apr 2014, 15:29; edited 1 time in total
Back to top
View user's profile Send private message 
puppy_apprentice


Joined: 07 Feb 2012
Posts: 300

PostPosted: Fri 18 Apr 2014, 15:23    Post subject:  

Yep names have spaces eg.:

Code:

  <Item option="/root/SpiderOak Hive/my-documents/Software">
    <Label>/root/SpiderOak Hive/my-documents/Software</Label>
    </Item>


If again without success try this code (more ""):
Code:

   *) if [ -d "$option" ]
           then
             /usr/local/bin/rox "$option" #browse folder if exists, maybe "" help for folders which names have spaces
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Have you checked this location with "SpiderOak Hive"?
Back to top
View user's profile Send private message 
Puppus Dogfellow


Joined: 07 Jan 2013
Posts: 1658
Location: nyc

PostPosted: Fri 18 Apr 2014, 15:42    Post subject:  

puppy_apprentice wrote:
Yep names have spaces eg.:

Code:

  <Item option="/root/SpiderOak Hive/my-documents/Software">
    <Label>/root/SpiderOak Hive/my-documents/Software</Label>
    </Item>


If again without success try this code (more ""):
Code:

   *) if [ -d "$option" ]
           then
             /usr/local/bin/rox "$option" #browse folder if exists, maybe "" help for folders which names have spaces
           else
             /usr/local/bin/rox #if not just start rox
           fi;;


Have you checked this location with "SpiderOak Hive"?


doesn't work for the hive link and left clicking on it gives the error message File Does Not Exist or similar...

will try the newer code...

did. more links seem to work, many of the one under ~ are still not working...error message is gone from regular rox usage...home icon as a direct link still gives error message.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 3 [42 Posts]   Goto page: 1, 2, 3 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Beginners Help ( Start Here)
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.1143s ][ Queries: 13 (0.0095s) ][ GZIP on ]