The Cookie Machine - Click here to drag window

DUMMY TEXT - Real text set in assets/js/theCookieMachine.js

If you can read me, I'm broken!

Views: 1,734     Votes:  9     ✅ Solution
Tags: bash   scripts  
Link: 🔍 See Original Answer on Ask Ubuntu ⧉ 🔗

URL: https://askubuntu.com/q/826898
Title: How can I display text from a file automatically after powering up my computer, in text editor or terminal?
ID: /2016/09/19/How-can-I-display-text-from-a-file-automatically-after-powering-up-my-computer_-in-text-editor-or-terminal_
Created: September 19, 2016    Edited:  October 25, 2019
Upload: April 8, 2024    Layout:  post
TOC: false    Navigation:  false    Copy to clipboard:  false


Your first step is to find out the name of your notepad / GUI editor / writer program as described in this Q&A: How does one find out the command line corresponding to GUI app (eg, LibreOffice Writer)?e In my case I use LibreOffice Write and the command is libreoffice --writer.

The next step is to select Dash which is the first option on the Launcher. In the search field type in Startup and select the icon Startup Applications. The following window pops up:

Startup Applications

Select the Add button. And this window appears:

enter image description here

Fill in your writer / program name and pass it the name of your to-do file. This is probably the hardest part to get right and often requires a little experimentation.

Edit 1

Proving that experimentation is needed when using the above example tonight an error was displayed:

ToDo does not exist

Checking the actual file name ends in .odt edit the Startup Application profile and change the file name by adding the extension .odt and then voila on every boot you get:

ToDo List

⇧ Secondary monitor not recognized under Ubuntu 16.04 with kernel 4.7.4 Failure to download extra data files: flashplugin-installer (not a duplicate question)  ⇩