Open a File in Seamonkey Composer
Posted: Mon 25 Dec 2017, 22:53
Create the short script
/usr/local/bin/composer
Now say I have a file called index.html. If I'm in that folder [1], I can type
to open the file. Next we would like to be able to right click an item and select open with composer.
If you copy the file
and rename it
and replace the part after the "=" sign where it says exec with "composer" as follows:
then one would think that we can just drag this file into the folder [2]
to make this script work when we right write click the file.
However, It doesn't quite work. I seem to get the path twice:
I'll try to fix this and report back.
Notes
---------------------
1. You can get a terminal to a local folder by pressing the tilda sign "~" when in that folder in the rox file manager.
2. As an alternative to navigating to the folder "~/.config/rox.sourcefordge.net/SendTo" one can right click on the file, then select "sent to" and then select customize. This will open a folder where you can put scripts that will be called when you right click on the file. Normally one would put a symbolic link to the script in this folder rather then the entire script in order to avoid duplication.
/usr/local/bin/composer
Code: Select all
#!/bin/sh
seamonkey -edit "`readlink -f $1`"
Code: Select all
composer index.html
If you copy the file
Code: Select all
/usr/share/applications/seamonkey.desktop
Code: Select all
/usr/share/applications/composer.desktop
Code: Select all
[Desktop Entry]
Name=Seamonkey
GenericName=Seamonkey Web Browser
X-GNOME-FullName=Seamonkey Web Browser
Exec=composer
Icon=/opt/seamonkey/chrome/icons/default/default48.png
Terminal=false
Type=Application
Categories=X-Internet-browser
Code: Select all
~/.config/rox.sourcefordge.net/SendTo
However, It doesn't quite work. I seem to get the path twice:
Code: Select all
The file /root/spot/PT/s243a/recomendations-old-hardware/item216383838%0A/root/-%0A/root/Recommendations%0A/root/For%0A/root/Old%0A/root/Hardware.html cannot be found. Please check the location and try again.
Notes
---------------------
1. You can get a terminal to a local folder by pressing the tilda sign "~" when in that folder in the rox file manager.
2. As an alternative to navigating to the folder "~/.config/rox.sourcefordge.net/SendTo" one can right click on the file, then select "sent to" and then select customize. This will open a folder where you can put scripts that will be called when you right click on the file. Normally one would put a symbolic link to the script in this folder rather then the entire script in order to avoid duplication.