2

I'm trying to create a launcher for skilion's onedrive from here. I've already built it and it's in my PATH. I'm trying to create a launcher with an icon that will invoke onedrive -m in a terminal window so I can see files being uploaded and whatnot. This is what I have so far:

[Desktop Entry]
Type=Application
Terminal=true
Name=OneDrive
Icon=/home/{me}/script/OneDrive-icon.png
Exec=onedrive -m

When I launch this, I just see an empty terminal. If I create a file in my OneDrive folder, the terminal doesn't show anything being uploaded. If I open a terminal and enter onedrive -m the normal way, it works. What am I doing wrong?

Edit: Here's a picture of what the command will do normally. I want the launcher to open a window that does this continually until I stop it.

enter image description here

1 Answers1

0

You need one more line

Terminal=true

If the command requires you keeping terminal open for some time, you can alter the Exec line like so:

Exec=bash -c 'onedrive -m;bash'
Sergiy Kolodyazhnyy
  • 105,154
  • 20
  • 279
  • 497