How to Manually Add a Program to the Menu
How to Manually Add a Program to the Menu
Hello,
I just downloaded Tor browser and unzip it.
How do I list the program in the "Internet" menu alongside other browsers?
Very much appreciated!
I just downloaded Tor browser and unzip it.
How do I list the program in the "Internet" menu alongside other browsers?
Very much appreciated!
- ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
How to Manually Add a Program to the Menu
by placing a .desktop file in either /usr/share/applications or /home/guest/.local/share/applications
maybe the tor bundle includes one?
if not, have a look at the .desktop files in /usr/share/applications to get an idea of the format ...
typically, something like this would do: (<parts> to be filled in)
torbrowser.desktop:(make sure there's a blank line at the end)
and then do (as root)
maybe the tor bundle includes one?
if not, have a look at the .desktop files in /usr/share/applications to get an idea of the format ...
typically, something like this would do: (<parts> to be filled in)
torbrowser.desktop:
Code: Select all
[Desktop Entry]
Name=Tor Browser
Icon=<some icon> or <path/to/some icon>
Exec=<path/to/executable> %u
Terminal=false
Type=Application
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;application/x-xpinstall;application/pdf;application/json;
Categories=Network;WebBrowser
and then do (as root)
Code: Select all
update-desktop-database
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
How to Manually Add a Program to the Menu
Thank you, ncmprhnsbl.
Porteus community never disappoints!
Porteus community never disappoints!
-
- Full of knowledge
- Posts: 2073
- Joined: 17 Jun 2013, 13:17
- Distribution: Porteus 3.2.2 XFCE 32bit
- Location: Germany
How to Manually Add a Program to the Menu
Regarding tor ... this could still be valid:
tor browser auto lanching desktop script dont work (Post by donald #57346)
tor browser auto lanching desktop script dont work (Post by donald #57346)
How to Manually Add a Program to the Menu
Thank you, Donald.
I simply did this to add "Tor Browser" to the menu:
Copy /tor-browser_en-US/Tor Browser" to /usr/share/applications
"Tor Browser will automatically be added to the menu under "Internet"
I simply did this to add "Tor Browser" to the menu:
Copy /tor-browser_en-US/Tor Browser" to /usr/share/applications
"Tor Browser will automatically be added to the menu under "Internet"
- Blaze
- DEV Team
- Posts: 3885
- Joined: 28 Dec 2010, 11:31
- Distribution: ⟰ Porteus current ☯ all DEs ☯
- Location: ☭ Russian Federation, Lipetsk region, Dankov
- Contact:
How to Manually Add a Program to the Menu
Use slackbuild for building tor-browser
https://slackbuilds.org/repository/14.2 ... r-browser/
and you will get tor-browser.desktop
https://slackbuilds.org/repository/14.2 ... r-browser/
and you will get tor-browser.desktop
Linux 6.6.11-porteus #1 SMP PREEMPT_DYNAMIC Sun Jan 14 12:07:37 MSK 2024 x86_64 Intel(R) Xeon(R) CPU E3-1270 v6 @ 3.80GHz GenuineIntel GNU/Linux
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
MS-7A12 » [AMD/ATI] Navi 23 [Radeon RX 6600] [1002:73ff] (rev c7) » Vengeance LPX 16GB DDR4 K2 3200MHz C16
How to Manually Add a Program to the Menu
Thank you for the tip, Blaze!
It is very much appreciated.
It is very much appreciated.
How to Manually Add a Program to the Menu
$BOOTDEV cannot be used in a .desktop file.
works:
Exec=/mnt/sdb1/browser/google-chrome_/chrome/google-chrome %U
doesn't work:
Exec=$BOOTDEV/browser/google-chrome_/chrome/google-chrome %U
That's not a good thing because $BOOTDEV isn't always /mnt/sdb1
works:
Exec=/mnt/sdb1/browser/google-chrome_/chrome/google-chrome %U
doesn't work:
Exec=$BOOTDEV/browser/google-chrome_/chrome/google-chrome %U
That's not a good thing because $BOOTDEV isn't always /mnt/sdb1
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
How to Manually Add a Program to the Menu
I'll bet this would work.
google-chrome.desktop file
home/guest/google-chrome.sh script
google-chrome.desktop file
Code: Select all
Exec=sh /home/guest/google-chrome.sh
Code: Select all
#!/bin/sh
Exec=$BOOTDEV/browser/google-chrome_/chrome/google-chrome %U
Ed
How to Manually Add a Program to the Menu
Hi Ed_P,
thanks for the idea. But it doesn't work.
Error message:
/home/guest/google-chrome.sh: line 2: fg: no job control
What does that mean? what does "fg" mean?
thanks for the idea. But it doesn't work.
Error message:
/home/guest/google-chrome.sh: line 2: fg: no job control
What does that mean? what does "fg" mean?
How to Manually Add a Program to the Menu
Hi Ed_P,
I found an answer here:
https://stackoverflow.com/questions/118 ... shell-mean
I added the script:
Still does not work:
/home/guest/google-chrome.sh: Zeile 3: fg: %U: no such job
Very complicated?
I found an answer here:
https://stackoverflow.com/questions/118 ... shell-mean
I added the script:
Code: Select all
#!/bin/sh
set -m
Exec=$BOOTDEV/browser/google-chrome_/chrome/google-chrome
/home/guest/google-chrome.sh: Zeile 3: fg: %U: no such job
Very complicated?
- ncmprhnsbl
- DEV Team
- Posts: 3941
- Joined: 20 Mar 2012, 03:42
- Distribution: v5.0-64bit
- Location: australia
- Contact:
How to Manually Add a Program to the Menu
i don't think you can use Exec= in a script like that... simply:
Code: Select all
#!/bin/sh
$BOOTDEV/browser/google-chrome_/chrome/google-chrome $@ &
Forum Rules : https://forum.porteus.org/viewtopic.php?f=35&t=44
- Ed_P
- Contributor
- Posts: 8374
- Joined: 06 Feb 2013, 22:12
- Distribution: Cinnamon 5.01 ISO
- Location: Western NY, USA
How to Manually Add a Program to the Menu
I agree ncmp. My error Kulle. Sorry, I just posted your whole copied desktop line.ncmprhnsbl wrote: ↑23 Feb 2021, 14:02i don't think you can use Exec= in a script like that... simply:Code: Select all
#!/bin/sh $BOOTDEV/browser/google-chrome_/chrome/google-chrome $@ &
Ed