How to open the / directory from a menu entry?

Moderator: BarryK

Post Reply
Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

How to open the / directory from a menu entry?

Post by Caramel »

Trying to create a entry menu for the command "rox /home/vscode/vscode/AppRun" (related to viewtopic.php?p=128491#p128491), I realizes that i do not know how to create a menu entry with an argument.

For opening the / directory via a menu entry , I tried

Exec=rox /

and

Exec="rox /"

in /usr/share/applications/ROX-Filer.desktop without success

(I used fixmenus, relaunch of JWM, relaunch of X and reboot)

EDIT :

Problem with Menumanager ( tab Menu in EasyJWM )

capture11193.png
capture11193.png (64.56 KiB) Viewed 472 times

The "processing" (Traitement in French) never ends

User avatar
rockedge
Site Admin
Posts: 6551
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2628 times
Contact:

Re: How to open the / directory from a menu entry?

Post by rockedge »

@Caramel Try:

Code: Select all

/usr/local/apps/ROX-Filer/AppRun /

Code: Select all

rox -d /

or use a start script:

Code: Select all

#!/bin/sh
rox -d /

Code: Select all

root@pedge210:~$ rox -h
Usage: ROX-Filer/AppRun [OPTION]... [FILE]...
Open each directory or file listed, or the current working
directory if no arguments are given.

  -b, --border=PANEL	open PANEL as a border panel
  -B, --bottom=PANEL	open PAN as a bottom-edge panel
  -c, --client-id=ID	used for session management
  -d, --dir=DIR		open DIR as directory (not application)
  -D, --close=DIR	close DIR and its subdirectories
  -h, --help		display this help and exit
  -l, --left=PANEL	open PAN as a left-edge panel
  -m, --mime-type=FILE	print MIME type of FILE and exit
  -n, --new		start new copy; for debugging the filer
  -p, --pinboard=PIN	use pinboard PIN as the pinboard
  -r, --right=PANEL	open PAN as a right-edge panel
  -R, --RPC		invoke method call read from stdin
  -s, --show=FILE	open a directory showing FILE
  -S, --rox-session	use default panel and pinboard options, and -n
  -t, --top=PANEL	open PANEL as a top-edge panel
  -u, --user		show user name in each window 
  -U, --url=URL		open file or directory in URI form
  -v, --version		display the version information and exit
  -x, --examine=FILE	FILE has changed - re-examine it

Report bugs to <rox-devel@lists.sourceforge.net>.
Home page (including updated versions): http://rox.sourceforge.net/
Caramel
Posts: 476
Joined: Sun Oct 02, 2022 6:25 pm
Location: France
Has thanked: 100 times
Been thanked: 78 times

Re: How to open the / directory from a menu entry?

Post by Caramel »

rockedge wrote: Sat Aug 10, 2024 6:18 pm

@Caramel Try:

Code: Select all

/usr/local/apps/ROX-Filer/AppRun /

Code: Select all

rox -d /

or use a start script:

Code: Select all

#!/bin/sh
rox -d /

Code: Select all

root@pedge210:~$ rox -h
Usage: ROX-Filer/AppRun [OPTION]... [FILE]...
Open each directory or file listed, or the current working
directory if no arguments are given.

  -b, --border=PANEL	open PANEL as a border panel
  -B, --bottom=PANEL	open PAN as a bottom-edge panel
  -c, --client-id=ID	used for session management
  -d, --dir=DIR		open DIR as directory (not application)
  -D, --close=DIR	close DIR and its subdirectories
  -h, --help		display this help and exit
  -l, --left=PANEL	open PAN as a left-edge panel
  -m, --mime-type=FILE	print MIME type of FILE and exit
  -n, --new		start new copy; for debugging the filer
  -p, --pinboard=PIN	use pinboard PIN as the pinboard
  -r, --right=PANEL	open PAN as a right-edge panel
  -R, --RPC		invoke method call read from stdin
  -s, --show=FILE	open a directory showing FILE
  -S, --rox-session	use default panel and pinboard options, and -n
  -t, --top=PANEL	open PANEL as a top-edge panel
  -u, --user		show user name in each window 
  -U, --url=URL		open file or directory in URI form
  -v, --version		display the version information and exit
  -x, --examine=FILE	FILE has changed - re-examine it

Report bugs to <rox-devel@lists.sourceforge.net>.
Home page (including updated versions): http://rox.sourceforge.net/

Thanks.

I tested

Code: Select all

rox -d /

and it works.

Post Reply

Return to “EasyOS”