Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
10
rated 0 times [  10] [ 0]  / answers: 1 / hits: 844  / 3 Years ago, fri, october 22, 2021, 9:14:59

I have Ubuntu Studio 21.04 installed and I want to open a spreadsheet automatically when I log in. I've included LibreOffice calc in the autostart applications, but I can't get it to open up the spreadsheet, just the application with a blank spreadsheet.
I've edited the autostart properties for the application so they point to the spreadsheet:


'soffice --calc -o ⁄home⁄chris⁄Documents⁄Spreadsheets⁄Top 250 films.ods'


If I run this command from the terminal, the spreadsheet opens as expected, but not in autostart. I've tried single quote, double quotes and using backslashes in file name, all give the same result.


What am I doing wrong?


More From » libreoffice

 Answers
6

Your string is:


'soffice --calc -o ⁄home⁄chris⁄Documents⁄Spreadsheets⁄Top 250 films.ods'

whereas it should be


'soffice --calc -o /home/chris/Documents/Spreadsheets/Top 250 films.ods'

Do you see the difference? Probably no. If you cannot see the difference, then echo the string to cat -t and you will:


$ echo 'soffice --calc -o ⁄home⁄chris⁄Documents⁄Spreadsheets⁄Top 250 films.ods' | cat -t
soffice --calc -o M-bM-^AM-^DhomeM-bM-^AM-^DchrisM-bM-^AM-^DDocumentsM-bM-^AM-^DSpreadsheetsM-bM-^AM-^DTop 250 films.ods
$ echo 'soffice --calc -o /home/chris/Documents/Spreadsheets/Top 250 films.ods' | cat -t
soffice --calc -o /home/chris/Documents/Spreadsheets/Top 250 films.ods

You are using the Unicode Fraction Slash character as directory separator, while you must use the ASCII Slash character.


[#1431] Saturday, October 23, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
cupwire

Total Points: 365
Total Questions: 126
Total Answers: 125

Location: Malaysia
Member since Thu, Feb 16, 2023
1 Year ago
cupwire questions
Wed, Feb 1, 23, 14:35, 1 Year ago
Fri, Jan 20, 23, 07:19, 1 Year ago
Fri, Jul 8, 22, 16:11, 2 Years ago
Sun, May 15, 22, 08:53, 2 Years ago
;