как добавить ярлык на панель задач Ubuntu

2566
Tower

Я использую UBUNTU 14.04 с рабочим столом с корицей. После попытки создать ярлык для файла PDF на панели задач Cinnamon, я обнаружил, что, возможно, мне нужно было найти папку, содержащую информацию о конфигурации панели задач, и создать там панель запуска. И, кстати, я не знаю, правильно ли я угадала или если да, то где бы это было! Не могли бы вы помочь мне найти решение, чтобы добавить ярлык в файл PDF, а затем разместить его на панели задач? Любая помощь и рекомендации будут высоко оценены.

0

1 ответ на вопрос

0
pyrocrasty

I'm not using Cinnamon, so I can't check but, here's the general idea.

  • Follow these instructions for adding an application launcher to the taskbar. Ie.

    • If you don't already have a launcher, choose any app in your menu, right click and choose "Add to panel" (you can remove it after the second step).
    • Then right click the launcher area and choose "Add" to pick another application.
  • This procedure may work for a file as well as an application.

  • If not, one thing you can do is create a custom launcher for that file.

    • In ~/.local/share/applications/, create a new file called, for example launch-myPDF.desktop (where myPDF is the name of the file).
    • Save the following text in the file.

      [Desktop Entry] Exec=/usr/bin/nemo myPDF.pdf Icon=/usr/share/icons/myicon.png Name=Launch myPDF Path=/path/to/myPDF 

      where each entry is edited appropriately. Exec= should contain a command that launches the file you want to pin in whatever application you want it to open in.

    • If you choose Add from the launcher and choose that desktop file, you'll add a custom launcher for your file.

There may be a way to pin files directly, but if not, the above procedure is a workaround.

Похожие вопросы