Have multiple 'open with' applications in context menu

Multi tool use
Clash Royale CLAN TAG#URR8PPP
up vote
4
down vote
favorite
I work with a lot of csv files and I open them with either gedit or libreoffice at different times. I would like to have them both in the context menu to save time.
In the past, there was this sub-menu where I could select open with and it lists other applications, without opening a second menu. This new behaviour wastes several useful seconds.
Is there an option to bring this context menu entry back? Or any hacks to get a similar behaviour?
18.04 context-menu
add a comment |Â
up vote
4
down vote
favorite
I work with a lot of csv files and I open them with either gedit or libreoffice at different times. I would like to have them both in the context menu to save time.
In the past, there was this sub-menu where I could select open with and it lists other applications, without opening a second menu. This new behaviour wastes several useful seconds.
Is there an option to bring this context menu entry back? Or any hacks to get a similar behaviour?
18.04 context-menu
add a comment |Â
up vote
4
down vote
favorite
up vote
4
down vote
favorite
I work with a lot of csv files and I open them with either gedit or libreoffice at different times. I would like to have them both in the context menu to save time.
In the past, there was this sub-menu where I could select open with and it lists other applications, without opening a second menu. This new behaviour wastes several useful seconds.
Is there an option to bring this context menu entry back? Or any hacks to get a similar behaviour?
18.04 context-menu
I work with a lot of csv files and I open them with either gedit or libreoffice at different times. I would like to have them both in the context menu to save time.
In the past, there was this sub-menu where I could select open with and it lists other applications, without opening a second menu. This new behaviour wastes several useful seconds.
Is there an option to bring this context menu entry back? Or any hacks to get a similar behaviour?
18.04 context-menu
18.04 context-menu
asked Sep 10 at 6:17
tokyoCoder
234
234
add a comment |Â
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
5
down vote
accepted
I don't think you can bring the old behaviour back without adapting source code. However, clicking wise, the current behaviour is not that bad. As before, you need three clicks to launch a file/document with another application. The only difference is that the last step is a double-click rather than a single click. Yes, rather than clicking the application and then the "Select" button, you can double-click the application.
The first time, the "Recommended Applications" dialog will be empty. However, that list gets populated with the applications you designate. So in your case, "Text Editor" (gedit) and "Libreoffice Writer" will make it to that list. You select the program with a double click, whereas with the previous approach of the submenu, it would have been a single click.
Personally, I like the interface better, because the program icons are presented in a larger size and the dialog is not prone to closing when you hover the mouse a bit in the wrong direction.
Alternatively, you may workaround with nautilus script, but this is not sensitive to the file that you selected.
As a third option, you can configure fully context sensitive right-click menu items with the third party application nautilus-actions. Installation may nowadays be less straightforward, and if you get it working properly, you will face some learning curve. It is powerful but also a bit complex.
add a comment |Â
up vote
3
down vote
Instead of focusing trying to open multiple apps, let's have a single app that opens the file in multiple other apps. For that we can create a custom .desktop
file in ./.local/share/applications/
and lets call it open_dual.desktop
. Contents are as so ( Icon=
is optional, so not included; also note I don't have libre office, so using wps
in this example instead, but for you the command should be libreoffice --writer
):
[Desktop Entry]
Name=Dual Open
Exec=bash -c 'setsid gedit "$1" & setsid wps "$1" &' sh %F
Terminal=false
Type=Application
MimeType=text/plain;text/csv;
Once that is done you should be able to ad that to the "open with" menu.
Alternatively, as a Nautilus script. Save it in .local/share/nautilus/scripts/
and lets call it dual_open.sh
#!/usr/bin/env bash
setsid gedit "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
setsid libreoffice --writer "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
Make the script executable with chmod +x ~/.local/share/nautilus/scripts/dual_open.sh
. Now you should have a menu "scripts" when you right click on the file and dual_open.sh
should be available as an option.
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
5
down vote
accepted
I don't think you can bring the old behaviour back without adapting source code. However, clicking wise, the current behaviour is not that bad. As before, you need three clicks to launch a file/document with another application. The only difference is that the last step is a double-click rather than a single click. Yes, rather than clicking the application and then the "Select" button, you can double-click the application.
The first time, the "Recommended Applications" dialog will be empty. However, that list gets populated with the applications you designate. So in your case, "Text Editor" (gedit) and "Libreoffice Writer" will make it to that list. You select the program with a double click, whereas with the previous approach of the submenu, it would have been a single click.
Personally, I like the interface better, because the program icons are presented in a larger size and the dialog is not prone to closing when you hover the mouse a bit in the wrong direction.
Alternatively, you may workaround with nautilus script, but this is not sensitive to the file that you selected.
As a third option, you can configure fully context sensitive right-click menu items with the third party application nautilus-actions. Installation may nowadays be less straightforward, and if you get it working properly, you will face some learning curve. It is powerful but also a bit complex.
add a comment |Â
up vote
5
down vote
accepted
I don't think you can bring the old behaviour back without adapting source code. However, clicking wise, the current behaviour is not that bad. As before, you need three clicks to launch a file/document with another application. The only difference is that the last step is a double-click rather than a single click. Yes, rather than clicking the application and then the "Select" button, you can double-click the application.
The first time, the "Recommended Applications" dialog will be empty. However, that list gets populated with the applications you designate. So in your case, "Text Editor" (gedit) and "Libreoffice Writer" will make it to that list. You select the program with a double click, whereas with the previous approach of the submenu, it would have been a single click.
Personally, I like the interface better, because the program icons are presented in a larger size and the dialog is not prone to closing when you hover the mouse a bit in the wrong direction.
Alternatively, you may workaround with nautilus script, but this is not sensitive to the file that you selected.
As a third option, you can configure fully context sensitive right-click menu items with the third party application nautilus-actions. Installation may nowadays be less straightforward, and if you get it working properly, you will face some learning curve. It is powerful but also a bit complex.
add a comment |Â
up vote
5
down vote
accepted
up vote
5
down vote
accepted
I don't think you can bring the old behaviour back without adapting source code. However, clicking wise, the current behaviour is not that bad. As before, you need three clicks to launch a file/document with another application. The only difference is that the last step is a double-click rather than a single click. Yes, rather than clicking the application and then the "Select" button, you can double-click the application.
The first time, the "Recommended Applications" dialog will be empty. However, that list gets populated with the applications you designate. So in your case, "Text Editor" (gedit) and "Libreoffice Writer" will make it to that list. You select the program with a double click, whereas with the previous approach of the submenu, it would have been a single click.
Personally, I like the interface better, because the program icons are presented in a larger size and the dialog is not prone to closing when you hover the mouse a bit in the wrong direction.
Alternatively, you may workaround with nautilus script, but this is not sensitive to the file that you selected.
As a third option, you can configure fully context sensitive right-click menu items with the third party application nautilus-actions. Installation may nowadays be less straightforward, and if you get it working properly, you will face some learning curve. It is powerful but also a bit complex.
I don't think you can bring the old behaviour back without adapting source code. However, clicking wise, the current behaviour is not that bad. As before, you need three clicks to launch a file/document with another application. The only difference is that the last step is a double-click rather than a single click. Yes, rather than clicking the application and then the "Select" button, you can double-click the application.
The first time, the "Recommended Applications" dialog will be empty. However, that list gets populated with the applications you designate. So in your case, "Text Editor" (gedit) and "Libreoffice Writer" will make it to that list. You select the program with a double click, whereas with the previous approach of the submenu, it would have been a single click.
Personally, I like the interface better, because the program icons are presented in a larger size and the dialog is not prone to closing when you hover the mouse a bit in the wrong direction.
Alternatively, you may workaround with nautilus script, but this is not sensitive to the file that you selected.
As a third option, you can configure fully context sensitive right-click menu items with the third party application nautilus-actions. Installation may nowadays be less straightforward, and if you get it working properly, you will face some learning curve. It is powerful but also a bit complex.
edited 2 days ago
answered Sep 10 at 7:08
vanadium
2,3691721
2,3691721
add a comment |Â
add a comment |Â
up vote
3
down vote
Instead of focusing trying to open multiple apps, let's have a single app that opens the file in multiple other apps. For that we can create a custom .desktop
file in ./.local/share/applications/
and lets call it open_dual.desktop
. Contents are as so ( Icon=
is optional, so not included; also note I don't have libre office, so using wps
in this example instead, but for you the command should be libreoffice --writer
):
[Desktop Entry]
Name=Dual Open
Exec=bash -c 'setsid gedit "$1" & setsid wps "$1" &' sh %F
Terminal=false
Type=Application
MimeType=text/plain;text/csv;
Once that is done you should be able to ad that to the "open with" menu.
Alternatively, as a Nautilus script. Save it in .local/share/nautilus/scripts/
and lets call it dual_open.sh
#!/usr/bin/env bash
setsid gedit "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
setsid libreoffice --writer "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
Make the script executable with chmod +x ~/.local/share/nautilus/scripts/dual_open.sh
. Now you should have a menu "scripts" when you right click on the file and dual_open.sh
should be available as an option.
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
add a comment |Â
up vote
3
down vote
Instead of focusing trying to open multiple apps, let's have a single app that opens the file in multiple other apps. For that we can create a custom .desktop
file in ./.local/share/applications/
and lets call it open_dual.desktop
. Contents are as so ( Icon=
is optional, so not included; also note I don't have libre office, so using wps
in this example instead, but for you the command should be libreoffice --writer
):
[Desktop Entry]
Name=Dual Open
Exec=bash -c 'setsid gedit "$1" & setsid wps "$1" &' sh %F
Terminal=false
Type=Application
MimeType=text/plain;text/csv;
Once that is done you should be able to ad that to the "open with" menu.
Alternatively, as a Nautilus script. Save it in .local/share/nautilus/scripts/
and lets call it dual_open.sh
#!/usr/bin/env bash
setsid gedit "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
setsid libreoffice --writer "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
Make the script executable with chmod +x ~/.local/share/nautilus/scripts/dual_open.sh
. Now you should have a menu "scripts" when you right click on the file and dual_open.sh
should be available as an option.
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
add a comment |Â
up vote
3
down vote
up vote
3
down vote
Instead of focusing trying to open multiple apps, let's have a single app that opens the file in multiple other apps. For that we can create a custom .desktop
file in ./.local/share/applications/
and lets call it open_dual.desktop
. Contents are as so ( Icon=
is optional, so not included; also note I don't have libre office, so using wps
in this example instead, but for you the command should be libreoffice --writer
):
[Desktop Entry]
Name=Dual Open
Exec=bash -c 'setsid gedit "$1" & setsid wps "$1" &' sh %F
Terminal=false
Type=Application
MimeType=text/plain;text/csv;
Once that is done you should be able to ad that to the "open with" menu.
Alternatively, as a Nautilus script. Save it in .local/share/nautilus/scripts/
and lets call it dual_open.sh
#!/usr/bin/env bash
setsid gedit "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
setsid libreoffice --writer "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
Make the script executable with chmod +x ~/.local/share/nautilus/scripts/dual_open.sh
. Now you should have a menu "scripts" when you right click on the file and dual_open.sh
should be available as an option.
Instead of focusing trying to open multiple apps, let's have a single app that opens the file in multiple other apps. For that we can create a custom .desktop
file in ./.local/share/applications/
and lets call it open_dual.desktop
. Contents are as so ( Icon=
is optional, so not included; also note I don't have libre office, so using wps
in this example instead, but for you the command should be libreoffice --writer
):
[Desktop Entry]
Name=Dual Open
Exec=bash -c 'setsid gedit "$1" & setsid wps "$1" &' sh %F
Terminal=false
Type=Application
MimeType=text/plain;text/csv;
Once that is done you should be able to ad that to the "open with" menu.
Alternatively, as a Nautilus script. Save it in .local/share/nautilus/scripts/
and lets call it dual_open.sh
#!/usr/bin/env bash
setsid gedit "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
setsid libreoffice --writer "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" &
Make the script executable with chmod +x ~/.local/share/nautilus/scripts/dual_open.sh
. Now you should have a menu "scripts" when you right click on the file and dual_open.sh
should be available as an option.
edited Sep 10 at 7:50
answered Sep 10 at 7:31


Sergiy Kolodyazhnyy
65.6k9132286
65.6k9132286
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
add a comment |Â
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
Thank you. Most of the time, I need to see the data in a particular format at a time, e.g. plain text vs tabular format. So, I will have to open two apps and close one - not recommended if you are opening a 10000+ lines csv file!
– tokyoCoder
2 days ago
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1073839%2fhave-multiple-open-with-applications-in-context-menu%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password