Can I have a desktop icon for creating new documents from a template?
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgO9GURib1T8z7lCwjOGLQaGtrueEthgQ8LO42ZX8cOfTqDK4jvDDpKkLFwf2J49kYCMNW7d4ABih_XCb_2UXdq5fPJDkoyg7-8g_YfRUot-XnaXkNYycsNp7lA5_TW9td0FFpLQ2APzKcZ/s1600/1.jpg)
![Creative The name of the picture](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhYQ0N5W1qAOxLP7t7iOM6O6AzbZnkXUy16s7P_CWfOb5UbTQY_aDsc727chyphenhyphen5W4IppVNernMMQeaUFTB_rFzAd95_CDt-tnwN-nBx6JyUp2duGjPaL5-VgNO41AVsA_vu30EJcipdDG409/s400/Clash+Royale+CLAN+TAG%2523URR8PPP.png)
up vote
1
down vote
favorite
Is it possible to have an icon on the desktop so that when you double-click it it will create a new document from a certain template (New Invoice.ots
located at ~/Templates
)? It would be a bit more visual than the right-click New Document -> New Invoice.
templates
add a comment |Â
up vote
1
down vote
favorite
Is it possible to have an icon on the desktop so that when you double-click it it will create a new document from a certain template (New Invoice.ots
located at ~/Templates
)? It would be a bit more visual than the right-click New Document -> New Invoice.
templates
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46
add a comment |Â
up vote
1
down vote
favorite
up vote
1
down vote
favorite
Is it possible to have an icon on the desktop so that when you double-click it it will create a new document from a certain template (New Invoice.ots
located at ~/Templates
)? It would be a bit more visual than the right-click New Document -> New Invoice.
templates
Is it possible to have an icon on the desktop so that when you double-click it it will create a new document from a certain template (New Invoice.ots
located at ~/Templates
)? It would be a bit more visual than the right-click New Document -> New Invoice.
templates
templates
edited Apr 14 at 1:54
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
pomsky
22.9k77198
22.9k77198
asked Apr 13 at 15:46
user818050
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46
add a comment |Â
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46
add a comment |Â
2 Answers
2
active
oldest
votes
up vote
2
down vote
accepted
You can create a new launcher in desktop which will help achieving your goal. To do that follow the steps below.
- Create a
.desktop
file (saytemplate-generator.desktop
) in~/Desktop
. - Open the
.desktop
file with a text-editor. Add the following lines and save the file.
[Desktop Entry]
Comment=Launcher to create a file from a template
Terminal=false
Name=Create Invoice from Template
Exec=/home/MyUsername/Templates/new_invoice.sh
Type=Application
Icon=/full/path/to/your/preferred/icon-file(Put your username in place of
MyUsername
.)Create the script
new_invoice.sh
in the Templates folder:template="$HOME/Templates/New Invoice.ots"
filename="$HOME/Documents/Invoice from $(date).ods"
cp "$template" "$filename"
xdg-open "$filename"Right click on the file, open Properties > Permissions, and select "allow executing file as program". Do the same for the
.desktop
file.Double click on the file. A warning window may appear asking you to "Trust and Launch". Do it.
add a comment |Â
up vote
0
down vote
What you need to know first is where templates are stored and recognize their extensions. Eg LibreOffice has its main template extension as .ott and stores its built-in document templates in /usr/lib/libreoffice/share/template/common/, and from there it's split under various folders according to the type of template - /usr/lib/libreoffice/share/template/common/personal/CV.ott as one example. So any personal templates created by yourself could be stored there, or kept under your Home folder, eg Home/Templates already exists. But I prefer to keep all templates under one roof rather than scattering them around.
So if you want to put a template onto your desktop, simply copy it (in our example CV.ott) and paste it to Home/Desktop. You can rename it, eg, MyCV. Just remember, once it's opened to save as a text document, eg .odt Job done.
add a comment |Â
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
2
down vote
accepted
You can create a new launcher in desktop which will help achieving your goal. To do that follow the steps below.
- Create a
.desktop
file (saytemplate-generator.desktop
) in~/Desktop
. - Open the
.desktop
file with a text-editor. Add the following lines and save the file.
[Desktop Entry]
Comment=Launcher to create a file from a template
Terminal=false
Name=Create Invoice from Template
Exec=/home/MyUsername/Templates/new_invoice.sh
Type=Application
Icon=/full/path/to/your/preferred/icon-file(Put your username in place of
MyUsername
.)Create the script
new_invoice.sh
in the Templates folder:template="$HOME/Templates/New Invoice.ots"
filename="$HOME/Documents/Invoice from $(date).ods"
cp "$template" "$filename"
xdg-open "$filename"Right click on the file, open Properties > Permissions, and select "allow executing file as program". Do the same for the
.desktop
file.Double click on the file. A warning window may appear asking you to "Trust and Launch". Do it.
add a comment |Â
up vote
2
down vote
accepted
You can create a new launcher in desktop which will help achieving your goal. To do that follow the steps below.
- Create a
.desktop
file (saytemplate-generator.desktop
) in~/Desktop
. - Open the
.desktop
file with a text-editor. Add the following lines and save the file.
[Desktop Entry]
Comment=Launcher to create a file from a template
Terminal=false
Name=Create Invoice from Template
Exec=/home/MyUsername/Templates/new_invoice.sh
Type=Application
Icon=/full/path/to/your/preferred/icon-file(Put your username in place of
MyUsername
.)Create the script
new_invoice.sh
in the Templates folder:template="$HOME/Templates/New Invoice.ots"
filename="$HOME/Documents/Invoice from $(date).ods"
cp "$template" "$filename"
xdg-open "$filename"Right click on the file, open Properties > Permissions, and select "allow executing file as program". Do the same for the
.desktop
file.Double click on the file. A warning window may appear asking you to "Trust and Launch". Do it.
add a comment |Â
up vote
2
down vote
accepted
up vote
2
down vote
accepted
You can create a new launcher in desktop which will help achieving your goal. To do that follow the steps below.
- Create a
.desktop
file (saytemplate-generator.desktop
) in~/Desktop
. - Open the
.desktop
file with a text-editor. Add the following lines and save the file.
[Desktop Entry]
Comment=Launcher to create a file from a template
Terminal=false
Name=Create Invoice from Template
Exec=/home/MyUsername/Templates/new_invoice.sh
Type=Application
Icon=/full/path/to/your/preferred/icon-file(Put your username in place of
MyUsername
.)Create the script
new_invoice.sh
in the Templates folder:template="$HOME/Templates/New Invoice.ots"
filename="$HOME/Documents/Invoice from $(date).ods"
cp "$template" "$filename"
xdg-open "$filename"Right click on the file, open Properties > Permissions, and select "allow executing file as program". Do the same for the
.desktop
file.Double click on the file. A warning window may appear asking you to "Trust and Launch". Do it.
You can create a new launcher in desktop which will help achieving your goal. To do that follow the steps below.
- Create a
.desktop
file (saytemplate-generator.desktop
) in~/Desktop
. - Open the
.desktop
file with a text-editor. Add the following lines and save the file.
[Desktop Entry]
Comment=Launcher to create a file from a template
Terminal=false
Name=Create Invoice from Template
Exec=/home/MyUsername/Templates/new_invoice.sh
Type=Application
Icon=/full/path/to/your/preferred/icon-file(Put your username in place of
MyUsername
.)Create the script
new_invoice.sh
in the Templates folder:template="$HOME/Templates/New Invoice.ots"
filename="$HOME/Documents/Invoice from $(date).ods"
cp "$template" "$filename"
xdg-open "$filename"Right click on the file, open Properties > Permissions, and select "allow executing file as program". Do the same for the
.desktop
file.Double click on the file. A warning window may appear asking you to "Trust and Launch". Do it.
edited Apr 13 at 19:27
answered Apr 13 at 16:28
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
![](https://i.stack.imgur.com/A4LiS.jpg?s=32&g=1)
pomsky
22.9k77198
22.9k77198
add a comment |Â
add a comment |Â
up vote
0
down vote
What you need to know first is where templates are stored and recognize their extensions. Eg LibreOffice has its main template extension as .ott and stores its built-in document templates in /usr/lib/libreoffice/share/template/common/, and from there it's split under various folders according to the type of template - /usr/lib/libreoffice/share/template/common/personal/CV.ott as one example. So any personal templates created by yourself could be stored there, or kept under your Home folder, eg Home/Templates already exists. But I prefer to keep all templates under one roof rather than scattering them around.
So if you want to put a template onto your desktop, simply copy it (in our example CV.ott) and paste it to Home/Desktop. You can rename it, eg, MyCV. Just remember, once it's opened to save as a text document, eg .odt Job done.
add a comment |Â
up vote
0
down vote
What you need to know first is where templates are stored and recognize their extensions. Eg LibreOffice has its main template extension as .ott and stores its built-in document templates in /usr/lib/libreoffice/share/template/common/, and from there it's split under various folders according to the type of template - /usr/lib/libreoffice/share/template/common/personal/CV.ott as one example. So any personal templates created by yourself could be stored there, or kept under your Home folder, eg Home/Templates already exists. But I prefer to keep all templates under one roof rather than scattering them around.
So if you want to put a template onto your desktop, simply copy it (in our example CV.ott) and paste it to Home/Desktop. You can rename it, eg, MyCV. Just remember, once it's opened to save as a text document, eg .odt Job done.
add a comment |Â
up vote
0
down vote
up vote
0
down vote
What you need to know first is where templates are stored and recognize their extensions. Eg LibreOffice has its main template extension as .ott and stores its built-in document templates in /usr/lib/libreoffice/share/template/common/, and from there it's split under various folders according to the type of template - /usr/lib/libreoffice/share/template/common/personal/CV.ott as one example. So any personal templates created by yourself could be stored there, or kept under your Home folder, eg Home/Templates already exists. But I prefer to keep all templates under one roof rather than scattering them around.
So if you want to put a template onto your desktop, simply copy it (in our example CV.ott) and paste it to Home/Desktop. You can rename it, eg, MyCV. Just remember, once it's opened to save as a text document, eg .odt Job done.
What you need to know first is where templates are stored and recognize their extensions. Eg LibreOffice has its main template extension as .ott and stores its built-in document templates in /usr/lib/libreoffice/share/template/common/, and from there it's split under various folders according to the type of template - /usr/lib/libreoffice/share/template/common/personal/CV.ott as one example. So any personal templates created by yourself could be stored there, or kept under your Home folder, eg Home/Templates already exists. But I prefer to keep all templates under one roof rather than scattering them around.
So if you want to put a template onto your desktop, simply copy it (in our example CV.ott) and paste it to Home/Desktop. You can rename it, eg, MyCV. Just remember, once it's opened to save as a text document, eg .odt Job done.
edited Apr 13 at 18:36
answered Apr 13 at 17:34
Paul Benson
403117
403117
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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%2f1024701%2fcan-i-have-a-desktop-icon-for-creating-new-documents-from-a-template%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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');
var $window = $(window),
onScroll = function(e)
var $elem = $('.new-login-left'),
docViewTop = $window.scrollTop(),
docViewBottom = docViewTop + $window.height(),
elemTop = $elem.offset().top,
elemBottom = elemTop + $elem.height();
if ((docViewTop elemBottom))
StackExchange.using('gps', function() StackExchange.gps.track('embedded_signup_form.view', location: 'question_page' ); );
$window.unbind('scroll', onScroll);
;
$window.on('scroll', onScroll);
);
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
You could enhance your question BT specifying an invoice directory name. When you right click it finds the last invoice filename and adds 1 to it. For example: Inv1001, Inv1002, etc. But of course only if you want to do this.
â WinEunuuchs2Unix
Apr 13 at 17:46