LatteDock/FAQ: Difference between revisions

    From KDE UserBase Wiki
    (Created page with "←Latte Dock ### _Q: What is Latte Dock? How did it begin?_ _**A:**_ **Latte Dock** is a dock based on plasma frameworks and a direct successor of [Now Doc...")
     
    No edit summary
    Line 1: Line 1:
    [[LatteDock|←Latte Dock]]
    [[LatteDock|←Latte Dock]]


    ### _Q: What is Latte Dock? How did it begin?_
    = Q: What is Latte Dock? How did it begin? =


      _**A:**_ **Latte Dock** is a dock based on plasma frameworks and a direct successor of [Now Dock](https://github.com/psifidotos/nowdock-panel). **Latte** is the combined effort from the developers of [Now Dock](https://github.com/psifidotos/nowdock-panel) and [Candil Dock](https://github.com/audoban/Candil-Dock).
    A: '''Latte Dock''' is a dock based on plasma frameworks and a direct successor of [https://github.com/psifidotos/nowdock-panel Now Dock]. '''Latte''' is the combined effort from the developers of [https://github.com/psifidotos/nowdock-panel Now Dock] and [https://github.com/audoban/Candil-Dock Candil Dock].


    ###  _Q: How can I add launchers?_
    = Q: How can I add launchers? =


      _**A:**_ The easiest and memory efficient way is to drag n' drop them on the taskmanager (this is the area that dots and lines are shown under running windows).
    '''A:''' The easiest and memory efficient way is to drag n' drop them on the taskmanager (this is the area that dots and lines are shown under running windows).


    _Hint:_ You can add them also outside the taskmanager but that creates animation issues for size <64px and it is memory hungry.
    '''Hint:''' You can add them also outside the taskmanager but that creates animation issues for size <64px and it is memory hungry.


    ###  _Q: How can I add applets?_
    = Q: How can I add applets? =


      _**A:**_ right click on your **Plasma desktop -> Add Widgets**. From the plasma widgets explorer drag n' drop any widget you want onto your Latte dock
    '''A:''' right click on your '''Plasma desktop -> Add Widgets'''. From the plasma widgets explorer drag n' drop any widget you want onto your Latte dock


    ###  _Q: How can I enable _Edit Mode_ in Latte?
    = Q: How can I enable ''Edit Mode'' in Latte? =


      _**A:**_ In **_Edit Mode_** the user can remove applets, change their ordering and access advanced settings in various areas. To enable it the user just has to show the **Latte Settings Window**.
    '''A:''' In '''Edit Mode''' the user can remove applets, change their ordering and access advanced settings in various areas. To enable it the user just has to show the '''Latte Settings Window'''.


    ###  _Q: How can I move/remove applets?_
    = Q: How can I move/remove applets? =


      _**A:**_ you should go to **Edit Mode** (this is when the settings window is shown) and then you can drag any applet you want to be placed else where. At the same point you can also remove it by right clicking on it or by pressing the [X] button and the tooltip above the applet.
    '''A:''' you should go to '''Edit Mode''' (this is when the settings window is shown) and then you can drag any applet you want to be placed else where. At the same point you can also remove it by right clicking on it or by pressing the [X] button and the tooltip above the applet.


    ###  _Q: Can I disable parabolic effect for specific applet?_
    = Q: Can I disable parabolic effect for specific applet? =


      _**A:**_ you should go to **Edit Mode** (this is when the settings window is shown) and hover afterwards the specific applet. Its tooltip contains a locker icon that you can use to disable parabolic effect for that applet.
    '''A:''' you should go to '''Edit Mode''' (this is when the settings window is shown) and hover afterwards the specific applet. Its tooltip contains a locker icon that you can use to disable parabolic effect for that applet.


    ###  _Q: My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon?_
    = Q: My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon?_


      _**A:**_ That issue means that plasma libtaskmanager has not associated correctly your launcher and app windows with the relevant desktop file. Plasma is trying to be smart enough in order to identify correctly which desktop files are associated to specific windows but there are cases that it fails. Best way to solve this is to check the `StartupWMClass` record in the desktop file. That record should point at the proper `WM_CLASS` record at all times. For example even though Latte desktop file is called `org.kde.latte-dock.desktop` its `StartupWMClass` is `lattedock`. In order to identify correctly the `StartupWMClass` for an application you can use `xprop` to do so.
    '''A:''' That issue means that plasma libtaskmanager has not associated correctly your launcher and app windows with the relevant desktop file. Plasma is trying to be smart enough in order to identify correctly which desktop files are associated to specific windows but there are cases that it fails. Best way to solve this is to check the `StartupWMClass` record in the desktop file. That record should point at the proper `WM_CLASS` record at all times. For example even though Latte desktop file is called `org.kde.latte-dock.desktop` its `StartupWMClass` is `lattedock`. In order to identify correctly the `StartupWMClass` for an application you can use `xprop` to do so.


    **Example:**
    '''Example:'''
    1. Run `xprop` in command prompt
    1. Run `xprop` in command prompt
    2. Click on the window you are interested in
    2. Click on the window you are interested in
    Line 37: Line 37:
    4. Add the previous mentioned record in the application desktop file at the `StartupWMClass` field
    4. Add the previous mentioned record in the application desktop file at the `StartupWMClass` field


    e.g. for **Gimp 2.10** even though its desktop file is called **gimp.desktop** its `StartupWMClass` is `gimp-2.10` . `StartupWMClass` is not needed to be added for **Gimp** because plasma developers have taken special care to map it properly through `/etc/xdg/taskmanagerrulesrc`.
    e.g. for '''Gimp 2.10''' even though its desktop file is called '''gimp.desktop''' its `StartupWMClass` is `gimp-2.10` . `StartupWMClass` is not needed to be added for '''Gimp''' because plasma developers have taken special care to map it properly through `/etc/xdg/taskmanagerrulesrc`.


    ###  _Q: How Latte Dock (auto)starts and why a widget is provided?_
    = Q: How Latte Dock (auto)starts and why a widget is provided? =


      _**A:**_ **Latte** starts from the menu; there is no need to place the widget on your desktop. It is there for testing purposes. The automatic start can be enabled through **Settings Window -> Tweaks**.
    '''A:''' '''Latte''' starts from the menu; there is no need to place the widget on your desktop. It is there for testing purposes. The automatic start can be enabled through '''Settings Window -> Tweaks'''.


    ###  _Q: Did any other dock inspire you? How does Latte Dock compare to other docks?_
    = Q: Did any other dock inspire you? How does Latte Dock compare to other docks? =


      _**A:**_ **Latte** has an architecture inspired and based on Plasmashell, but we also took some inspiration from Plank eg: the Visibility modes.
    '''A:''' '''Latte''' has an architecture inspired and based on Plasmashell, but we also took some inspiration from Plank eg: the Visibility modes.


    ###  _Q: What technology/programming language does it make use of?_
    = Q: What technology/programming language does it make use of? =


      _**A:**_ **Latte** is mostly written in **Qt/QML** and **C++14**, but this project would not be possible without [**KDE Frameworks 5**](https://api.kde.org/frameworks/index.html).
    '''A:''' '''Latte''' is mostly written in '''Qt/QML''' and '''C++14''', but this project would not be possible without [https://api.kde.org/frameworks/index.html '''KDE Frameworks 5'''].


    ###  _Q: Ok, you convinced me to try it! How can I install it and what are it's dependencies?_
    = Q: Ok, you convinced me to try it! How can I install it and what are it's dependencies?_


      _**A:**_ Download the sources and build **Latte** also remember to install the dependencies. Please read [README](https://github.com/psifidotos/Latte-Dock/blob/master/README.md) and [INSTALLATION](https://github.com/psifidotos/Latte-Dock/blob/master/INSTALLATION.md). But if you have problems or doubts you can [ask us](https://github.com/psifidotos/Latte-Dock/issues/203).  
    '''A:''' Download the sources and build '''Latte''' also remember to install the dependencies. Please read [https://github.com/psifidotos/Latte-Dock/blob/master/README.md README] and [https://github.com/psifidotos/Latte-Dock/blob/master/INSTALLATION.md INSTALLATION]. But if you have problems or doubts you can [https://github.com/psifidotos/Latte-Dock/issues/203 ask us].


    ###  _Q: Which distributions have packages for it, so to install it via P.M. ?_
    = Q: Which distributions have packages for it, so to install it via P.M. ? =


      _**A:**_ Please read at the bottom of [Latte Dock Main Page](https://github.com/psifidotos/Latte-Dock) the [Repositories](https://github.com/psifidotos/Latte-Dock#from-repositories) section.
    '''A:''' Please read at the bottom of [https://github.com/psifidotos/Latte-Dock Latte Dock Main Page] the [https://github.com/psifidotos/Latte-Dock#from-repositories Repositories] section.


    ###  _Q: After the launcher bouncing animation the window showing isn't smooth?_
    = Q: After the launcher bouncing animation the window showing isn't smooth? =


      _**A:**_ try the following steps,
    '''A:''' try the following steps,
       1. Go to `Plasma System Settings -> Applications -> Launch Feedback -> (disable) Task Manager` animation
       1. Go to `Plasma System Settings -> Applications -> Launch Feedback -> (disable) Task Manager` animation
       2. If the problem remains then your application desktop file might be missing the **StartupWMClass** record. For Inkscape that would be: `StartupWMClass=inkscape`
       2. If the problem remains then your application desktop file might be missing the '''StartupWMClass''' record. For Inkscape that would be: `StartupWMClass=inkscape`
           you can use the `xprop` program in order to identify that value correctly.
           you can use the `xprop` program in order to identify that value correctly.


    ###  _Q: What are some basic configuration options?_
    = Q: What are some basic configuration options? =


      _**A:**_ **Latte** is highly configurable. We invite you to explore and configure latte to your pleasure from the config window. 👍  
    '''A:''' '''Latte''' is highly configurable. We invite you to explore and configure latte to your pleasure from the config window. 👍  
    But some special features are: Visibility, Zoom Effect and Add widgets/plasmoids from Plasma5.
    But some special features are: Visibility, Zoom Effect and Add widgets/plasmoids from Plasma5.


    ###  _Q: Where is the configuration(s) stored?_
    = Q: Where is the configuration(s) stored? =


      _**A:**_ Be careful!!
    '''A:''' Be careful!!
    `cat ~/.config/lattedock-appletsrc`
    `cat ~/.config/lattedock-appletsrc`
    `cat ~/.config/lattedockrc`
    `cat ~/.config/lattedockrc`


    ###  _Q: Inside `~/.config/lattedock-appletsrc` I see various stuff. Can you explain a little the idea behind those?_
    = Q: Inside `~/.config/lattedock-appletsrc` I see various stuff. Can you explain a little the idea behind those? =


    _**A:**_ Config is organized based on `Containments` (eg `[Containments][1]`). Each of those have a number to distiguish one from the other and each one also has different blocks of options. That's where `applets` come in to play and each `Containment` has it's applets (usually one - `[Containments][1][Applets][2]`).  So it goes like:   
    '''A:''' Config is organized based on `Containments` (eg `[Containments][1]`). Each of those have a number to distiguish one from the other and each one also has different blocks of options. That's where `applets` come in to play and each `Containment` has it's applets (usually one - `[Containments][1][Applets][2]`).  So it goes like:   


      `[Containments][NumberOfContainemt][Applets][NumberOf_Applet]`   
      `[Containments][NumberOfContainemt][Applets][NumberOf_Applet]`   
    Line 85: Line 85:
    Now, applet-2 maybe a series of launchers, a Plasma Widget, anything. Each and every applet also has multiple blocks of configuration. A block might be for generic _applet_ configuration (eg `[Containments][1][Applets][2]`) or about some more specific options (eg `[Containments][1][Applets][2][Configuration][General]`).
    Now, applet-2 maybe a series of launchers, a Plasma Widget, anything. Each and every applet also has multiple blocks of configuration. A block might be for generic _applet_ configuration (eg `[Containments][1][Applets][2]`) or about some more specific options (eg `[Containments][1][Applets][2][Configuration][General]`).


      As you can tell we can't write all about those numerous options, but here is the deal: You can tweak every applet seperately, you can change the appereance order of applets with `appletOrder=No_of_Applet;No_of_Another`, under `[Containments][1][General]`* , you can manually change the `iconSize` in the same block, if want `shadows`, what the `zoomLevel` has to be and etc. A **sample** is provided [here](http://pastebin.ca/3772307) to see for your self.  
      As you can tell we can't write all about those numerous options, but here is the deal: You can tweak every applet seperately, you can change the appereance order of applets with `appletOrder=No_of_Applet;No_of_Another`, under `[Containments][1][General]`* , you can manually change the `iconSize` in the same block, if want `shadows`, what the `zoomLevel` has to be and etc. A '''sample''' is provided [http://pastebin.ca/3772307 here] to see for your self.  


      *You see, it _contains_ all the other applets and you tweak under _general_ options
      *You see, it _contains_ all the other applets and you tweak under _general_ options


    ###  _Q: What are some expert configuration options to never mess with?_
    = Q: What are some expert configuration options to never mess with? =


    _**A:**_ None is forbiden, as long as you take _frequent backups_ of your configuration. Use [cron](https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/) or similar software to automate the procedure and place them in an safe place.
    '''A:''' None is forbiden, as long as you take _frequent backups_ of your configuration. Use [https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/ cron] or similar software to automate the procedure and place them in an safe place.


    ###  _Q: How can I enable the Latte Global Shortcuts?_
    = Q: How can I enable the Latte Global Shortcuts? =


    _**A:**_ In most cases you need to go at `plasma systemsettings -> Global Shortcuts -> Latte Dock` and enable what shortcuts you need.
    '''A:''' In most cases you need to go at `plasma systemsettings -> Global Shortcuts -> Latte Dock` and enable what shortcuts you need.


       - **Super+No**: activate a task
       - '''Super+No''': activate a task
       - **Super+Ctrl+No**: a new instance for a task
       - '''Super+Ctrl+No''': a new instance for a task
       - **Super+`**: show a hidden dock
       - '''Super+`''': show a hidden dock


    ###  _Q: Can I use my **super key** to open the app launcher?_
    = Q: Can I use my '''super key''' to open the app launcher? =


    _**A1:**_ of course you can but you will need to add at your `~/.config/kwinrc` file the following code:
    '''A1:''' of course you can but you will need to add at your `~/.config/kwinrc` file the following code:


    ```
      [ModifierOnlyShortcuts]
    [ModifierOnlyShortcuts]
      Meta=org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu
    Meta=org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu
    ```


    Then reload KWin with:
    Then reload KWin with:


    ```
      qdbus org.kde.KWin /KWin reconfigure
    qdbus org.kde.KWin /KWin reconfigure
     
    ```


    _**A2:**_ alternativily you can run commands:
    '''A2:''' alternativily you can run commands:


    ```
      kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
    kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
    qdbus org.kde.KWin /KWin reconfigure
    qdbus org.kde.KWin /KWin reconfigure
    ```


    ###  _Q: Latte v0.8 deactivates **Borderless Maximized** Windows from Active Window Control plasmoid, what can I do ?_
    = Q: Latte v0.8 deactivates '''Borderless Maximized''' Windows from Active Window Control plasmoid, what can I do ? =


    _**A:**_ Latte v0.8 supports **BorderLess Maximized** Windows per layout simultaneously. In order for this to work it had to support that feature internally. You can try the following:
    '''A:''' Latte v0.8 supports '''BorderLess Maximized''' Windows per layout simultaneously. In order for this to work it had to support that feature internally. You can try the following:


    1. Disable **BorderLess Maximized** Windows from "**Active Window Control**"
    1. Disable '''BorderLess Maximized''' Windows from "'''Active Window Control'''"
    2. Go to Latte Settings -> Layouts -> Choose tab (Preferences) and enable "**Support borderless maximized windows in different layouts**"
    2. Go to Latte Settings -> Layouts -> Choose tab (Preferences) and enable "'''Support borderless maximized windows in different layouts'''"
    3. Return to your layouts and a new column called **"Borderless**" must have been added, add a check mark in that column for the layout you want that feature and click **Apply**
    3. Return to your layouts and a new column called '''"Borderless'''" must have been added, add a check mark in that column for the layout you want that feature and click '''Apply'''


    ###  _Q: Ok now Latte can't launch. Is there any sample config to restore to?_
    = Q: Ok now Latte can't launch. Is there any sample config to restore to? =


    _**A:**_ You have been told to take backups. Unfortunatelly unless you post your configuration to get help, little can be done now; just `killall -9 latte-dock`, delete your configuration and restart Latte in order to reconfigure it. A configuration exists [here](http://pastebin.ca/3772307) but it's most likely useless to you.
    '''A:''' You have been told to take backups. Unfortunatelly unless you post your configuration to get help, little can be done now; just `killall -9 latte-dock`, delete your configuration and restart Latte in order to reconfigure it. A configuration exists [here](http://pastebin.ca/3772307) but it's most likely useless to you.


    ###  _Q: Can I tweak things like Dock's distance from the screen's border?
    = Q: Can I tweak things like Dock's distance from the screen's border? =


    _**A:**_ You can minimize the distance, but not directly tweak it. Go to **Latte Setting -> Tweaks** and select **Shrink thickness margins**
    '''A:''' You can minimize the distance, but not directly tweak it. Go to '''Latte Setting -> Tweaks''' and select '''Shrink thickness margins'''


    ###  _Q: Are there preloaded layouts for Latte v0.6?
    = Q: Are there preloaded layouts for Latte v0.6? =


    _**A:**_ In Latte v0.7 the layouts have been added by default in Appearance page. For previous v0.6 the users can use [Preloaded Layouts](https://github.com/psifidotos/Latte-Dock/files/888568/MyProfiles.zip) file, that contains four of the most used layouts _(Default, Unity, Plasma, Favourite)_
    '''A:''' In Latte v0.7 the layouts have been added by default in Appearance page. For previous v0.6 the users can use [https://github.com/psifidotos/Latte-Dock/files/888568/MyProfiles.zip Preloaded Layouts] file, that contains four of the most used layouts '''(Default, Unity, Plasma, Favourite)'''


    ###  _Q: Can I tweak a launcher's ico or it's command parameteres?
    = Q: Can I tweak a launcher's ico or it's command parameteres? =


    _**A:**_ You could set it up at you plasma environment and drag n' drop it onto your Latte dock
    '''A:''' You could set it up at you plasma environment and drag n' drop it onto your Latte dock


    ###  _Q: Can I rearrange misplaced launchers and applets through the configuration files?_
    = Q: Can I rearrange misplaced launchers and applets through the configuration files? =


    _**A:**_ If you misplaced a **launcher** (or a whole applet), open `~/.config/lattedock-appletsrc`. Search your launcher and decide where you want to place it. Cut `;file:///usr/share/applications/myapp.desktop` (yes, the semicolon too) and paste it after the launcher - and before it's semicolon - you wish. **Be very careful**; Only the last launcher doesn't need a semicolor afterwards! So if you are copying your launcher between two others, you have to make sure that both _before and after_ your launcher, a semicolon exists. Let's see an example; let's say you need to copy `transmission-qt` launcher:
    '''A:''' If you misplaced a '''launcher''' (or a whole applet), open `~/.config/lattedock-appletsrc`. Search your launcher and decide where you want to place it. Cut `;file:///usr/share/applications/myapp.desktop` (yes, the semicolon too) and paste it after the launcher - and before it's semicolon - you wish. '''Be very careful'''; Only the last launcher doesn't need a semicolor afterwards! So if you are copying your launcher between two others, you have to make sure that both _before and after_ your launcher, a semicolon exists. Let's see an example; let's say you need to copy `transmission-qt` launcher:


    `..;file:///usr/share/applications/kchmviewer.desktop;file:transmission-qt;file:....`
    `..;file:///usr/share/applications/kchmviewer.desktop;file:transmission-qt;file:....`


    If what you want to reposition is a whole **applet**, rather than a launcher in an applet, you will find `appletOrder` very usefull. Just note your applet's number and change the order in which applets are written in the previously mentioned option. Have I mentioned to keep a backup before you edit? I did now.
    If what you want to reposition is a whole '''applet''', rather than a launcher in an applet, you will find `appletOrder` very usefull. Just note your applet's number and change the order in which applets are written in the previously mentioned option. Have I mentioned to keep a backup before you edit? I did now.


    ###  _Q: What effects does Latte Dock provide? Can launchers rotate, shake or dim when clicked?_
    = Q: What effects does Latte Dock provide? Can launchers rotate, shake or dim when clicked? =
        
        
    _**A:**_ Latte only has the zoom effect and the shadows, but we are very concerned about delivering an excellent user experience.
    '''A:''' Latte only has the zoom effect and the shadows, but we are very concerned about delivering an excellent user experience.


    ###  _Q: How can someone shutdown *any* effect, so the icons do absolutely nothing when clicked?_
    = Q: How can someone shutdown *any* effect, so the icons do absolutely nothing when clicked? =


    _**A:**_ You can disable all animations through **Latte Configuration Window -> Appearance -> Animations -> None**
    '''A:''' You can disable all animations through '''Latte Configuration Window -> Appearance -> Animations -> None'''


    ###  _Q: Launchers are disappearing before the relevant window is shown even though they shouldnt._
    = Q: Launchers are disappearing before the relevant window is shown even though they shouldnt. =


    _**A:**_ We know but this behavior is provided by **plasma libtaskmanager**. You can read more at: [Latte Issue #72](https://github.com/psifidotos/Latte-Dock/issues/72), [kde bug report](https://bugs.kde.org/show_bug.cgi?id=368386)
    '''A:''' We know but this behavior is provided by '''plasma libtaskmanager'''. You can read more at: [https://github.com/psifidotos/Latte-Dock/issues/72 Latte Issue #72](), [https://bugs.kde.org/show_bug.cgi?id=368386 KDE bug report]


    ###  _Q: I set Animations to "None", but when clicking on an launcher it's icon is momentarily disappeared._
    = Q: I set Animations to "None", but when clicking on an launcher it's icon is momentarily disappeared. =


    _**A:**_ This bug is _already_ fixed in current master and will be included in the next (0.6.0) release. So all you have to do is `git pull` the latest changes of master, or wait for the next stable version if you like so.
    '''A:''' This bug is _already_ fixed in current master and will be included in the next (0.6.0) release. So all you have to do is `git pull` the latest changes of master, or wait for the next stable version if you like so.


    ###  Q: Some applets in my dock are shown too small from _Plasma 5.10_ and beyond, can I fix this?
    = Q: Some applets in my dock are shown too small from _Plasma 5.10_ and beyond, can I fix this? =


    _**A:**_ In Plasma 5.10, the plasma developers decided that the applets in the panels should have a maximum size that they shouldnt overcome. You can change this at plasma `systemsettings -> Icons -> Advanced -> Panel ->` **set a size of 256px.**
    _'''A:'''_ In Plasma 5.10, the plasma developers decided that the applets in the panels should have a maximum size that they shouldnt overcome. You can change this at plasma `systemsettings -> Icons -> Advanced -> Panel ->` '''set a size of 256px.'''


    ###  Q: My left dock behaves strangely from _Plasma 5.10_ and beyond, can I fix this?
    = Q: My left dock behaves strangely from _Plasma 5.10_ and beyond, can I fix this? =


    _**A:**_ In Plasma 5.10, the kwin developers introduced the gestures functionality for touch screens which is enabled by default for all systems. You can disable it through plasma `systemsettings -> Workspace Behavior -> Touchscreen`. Relogin your plasma session if the change doesnt take effect immediately.
    '''A:''' In Plasma 5.10, the kwin developers introduced the gestures functionality for touch screens which is enabled by default for all systems. You can disable it through plasma `systemsettings -> Workspace Behavior -> Touchscreen`. Relogin your plasma session if the change doesnt take effect immediately.


    kwin upstream: https://bugs.kde.org/show_bug.cgi?id=382219
    kwin upstream: https://bugs.kde.org/show_bug.cgi?id=382219
    plasma upstream: https://bugs.kde.org/show_bug.cgi?id=392464
    plasma upstream: https://bugs.kde.org/show_bug.cgi?id=392464


    ###  _Q: So far so good, but Wayland is the future. What the plans are on this?_
    = Q: So far so good, but Wayland is the future. What the plans are on this? =


    _**A:**_ We plan it for Plasma 5.10, but we are working from now on to offer experimental support
    '''A:''' We plan it for Plasma 5.10, but we are working from now on to offer experimental support


    ###  _Q: When support for Wayland is provided, will Latte Dock remove it's auto magical dependency of X11?_
    = Q: When support for Wayland is provided, will Latte Dock remove it's auto magical dependency of X11? =


    _**A:**_ It's still a long way off for Wayland to replace X11, but it's possible to build **Latte** without dependencies X11, however we are still working on supporting Wayland.
    '''A:''' It's still a long way off for Wayland to replace X11, but it's possible to build '''Latte''' without dependencies X11, however we are still working on supporting Wayland.


    ###  _Q: As of writing this F.A.Q. , what is the problem with Qt5.8?_
    = Q: As of writing this F.A.Q. , what is the problem with Qt5.8? =


    _**A:**_ If you are brave enough to mess with technical details, you may want to look [here](https://github.com/psifidotos/Latte-Dock/issues/183) and [here](https://bugreports.qt.io/browse/QTBUG-59044)
    '''A:''' If you are brave enough to mess with technical details, you may want to look [here](https://github.com/psifidotos/Latte-Dock/issues/183) and [here](https://bugreports.qt.io/browse/QTBUG-59044)


    ###  _Q: Is there a way to tell Latte Dock to launch only for a Plasma session ?_
    = Q: Is there a way to tell Latte Dock to launch only for a Plasma session ? =


    _**A:**_ Of course you can, please follow these steps:
    '''A:''' Of course you can, please follow these steps:


    1. Go to **Plasma System Settings -> Startup and Shutdown -> Autostart**
    1. Go to '''Plasma System Settings -> Startup and Shutdown -> Autostart'''
    2. Choose **Latte Dock** from applications list
    2. Choose '''Latte Dock''' from applications list
    3. Advanced
    3. Advanced
    4. **Autostart only in Plasma**
    4. '''Autostart only in Plasma'''


    ###  _Q: Is there any other hickup or potential problem I should be careful of?
    = Q: Is there any other hickup or potential problem I should be careful of? =


    _**A:**_ Software as everything else in life, isn't perfect; we constantly try to make a better software and you can help
    '''A:''' Software as everything else in life, isn't perfect; we constantly try to make a better software and you can help
    us out with this by reporting every possilbe problem you may find. To answer the question though, there isn't a bug serious enough to prevent you from trying **Latte Dock**.
    us out with this by reporting every possilbe problem you may find. To answer the question though, there isn't a bug serious enough to prevent you from trying '''Latte Dock'''.


    ###  _Q: Are there any hopes and wishes for features from the Plasma upstream?_
    = Q: Are there any hopes and wishes for features from the Plasma upstream? =


    _**A:**_ The most important feature needed from KWin in wayland is the distrors to provide access at kwayland's priviliged apis _(and/or)_ for the users, a confirmation from them that Latte requests such apis
    '''A:''' The most important feature needed from KWin in wayland is the distrors to provide access at kwayland's priviliged apis _(and/or)_ for the users, a confirmation from them that Latte requests such apis


    ###  _Q: How often new versions will be released and what are your plans?_
    = Q: How often new versions will be released and what are your plans? =


    _**A:**_ The first priority to release a stable version is for all the needed features to have been implemented and no major crashes to appear. So we try to keep the schedule but on the other hand _it will be ready when it is ready_.
    '''A:''' The first priority to release a stable version is for all the needed features to have been implemented and no major crashes to appear. So we try to keep the schedule but on the other hand _it will be ready when it is ready_.


    ###  _Q: I am a complete newbie but I want to help you somehow. What can I do?_
    = Q: I am a complete newbie but I want to help you somehow. What can I do? =


    _**A:**_ As we write this F.A.Q. much help is needed to make **Latte** stable with multiscreen setups. You could clone the
    '''A:''' As we write this F.A.Q. much help is needed to make '''Latte''' stable with multiscreen setups. You could clone the
    `multiscreens` branch and report back any issues. Also normal bug reports, reports about problems with specific Plasma or Qt versions, strange desktop behavior or even wishes about new features are all welcome :-)
    `multiscreens` branch and report back any issues. Also normal bug reports, reports about problems with specific Plasma or Qt versions, strange desktop behavior or even wishes about new features are all welcome :-)


    ###  _Q: I know how to program. What can I do?
    = Q: I know how to program. What can I do? =


      _**A:**_ First step is to know what you are after and then to `fork` this repo; after that you can hunt bugs, add new features - or make more stable those already existing. Discuss your changes and if they are good and reasonable enough, we are more than happy for your pull request.
    '''A:''' First step is to know what you are after and then to `fork` this repo; after that you can hunt bugs, add new features - or make more stable those already existing. Discuss your changes and if they are good and reasonable enough, we are more than happy for your pull request.


    ###  _Q: How can I install from the current master branch ?
    = Q: How can I install from the current master branch ? =


      __**A:**__ You can easily, download and instal from the last master branch by running a script with commands:
    '''A:''' You can easily, download and instal from the last master branch by running a script with commands:
       - `git clone https://github.com/psifidotos/Latte-Dock.git`
       - `git clone https://github.com/psifidotos/Latte-Dock.git`
       - `cd Latte-Dock`
       - `cd Latte-Dock`
    Line 233: Line 228:
      The last command might ask for your root password, just before installing.
      The last command might ask for your root password, just before installing.


    ###  _Q: How can I install from a specific branch ?
    = Q: How can I install from a specific branch ? =


      __**A:**__ If you wish test some features currently non existing in `master` branch, you have to `checkout` the branch you wish to install. Let's say you need the `multi2` branch:   
    '''A:''' If you wish test some features currently non existing in `master` branch, you have to `checkout` the branch you wish to install. Let's say you need the `multi2` branch:   
       - `git clone https://github.com/psifidotos/Latte-Dock.git`
       - `git clone https://github.com/psifidotos/Latte-Dock.git`
       - `cd Latte-Dock`  
       - `cd Latte-Dock`  
    Line 244: Line 239:
      Compile as usual.
      Compile as usual.


    ###  _Q: I added the applet, but it is shown without a shadow like the rest of the icons_ 
    = Q: I added the applet, but it is shown without a shadow like the rest of the icons =


      _**A:**_ Well, if an applet (or more) hasn't a shadow, you should either double-check that option `All` is set under **Latte Settings -> Appearance**
    '''A:''' Well, if an applet (or more) hasn't a shadow, you should either double-check that option `All` is set under '''Latte Settings -> Appearance'''


    ###  _Q: What happens if I drag 'n' drop files on launchers ?_
    = Q: What happens if I drag 'n' drop files on launchers ? =


      _**A:**_ The file will be passed as a parameter to the specific application, creating a new instance (eg passing an image to kolourpaint, will open the image with kolourpaint)
    '''A:''' The file will be passed as a parameter to the specific application, creating a new instance (eg passing an image to kolourpaint, will open the image with kolourpaint)


    ###  _Q: Are there known compatibility issues, with some specific graphics driver ?_
    = Q: Are there known compatibility issues, with some specific graphics driver ?_


      _**A:**_ If you have Intel Graphics and experiment problems with the rendering e.g. pixelated graphics, corrupt text, etc, you can try changing the rendering method 2D from `SNA` to `UXA`.
    '''A:''' If you have Intel Graphics and experiment problems with the rendering e.g. pixelated graphics, corrupt text, etc, you can try changing the rendering method 2D from `SNA` to `UXA`.


    _/etc/X11/xorg.conf.d/20-intel.conf_
    _/etc/X11/xorg.conf.d/20-intel.conf_
    ```
     
    section "Device"
      section "Device"
       Identifier  "Intel Graphics"
       Identifier  "Intel Graphics"
       Driver      "intel"
       Driver      "intel"
       Option      "AccelMethod"  "uxa"
       Option      "AccelMethod"  "uxa"
    EndSection
      EndSection
    ```
    = Q: My Dock don't show anymore when i activate the auto-hide or the dodge window feature =
    ###  _Q: My Dock don't show anymore when i activate the auto-hide or the dodge window feature_


      _**A:**_ Apparently some features from plasma can hinder the dock's ability to show itself when touching the screen border. Plasma 5.10 added the option to execute actions on swiping over a border on a touch screen. You can find this option in the system preferences under: Desktop behavior > Touch screen. If you have your dock on the same border a touch gesture is activated the dock may not be able to show itself. Try deactivating the gesture on that border, then close and restart your session and check if the problem was fixed. ([#676](https://github.com/psifidotos/Latte-Dock/issues/676))
    '''A:''' Apparently some features from plasma can hinder the dock's ability to show itself when touching the screen border. Plasma 5.10 added the option to execute actions on swiping over a border on a touch screen. You can find this option in the system preferences under: Desktop behavior > Touch screen. If you have your dock on the same border a touch gesture is activated the dock may not be able to show itself. Try deactivating the gesture on that border, then close and restart your session and check if the problem was fixed. ([https://github.com/psifidotos/Latte-Dock/issues/676 #676])

    Revision as of 15:58, 8 March 2019

    ←Latte Dock

    Q: What is Latte Dock? How did it begin?

    A: Latte Dock is a dock based on plasma frameworks and a direct successor of Now Dock. Latte is the combined effort from the developers of Now Dock and Candil Dock.

    Q: How can I add launchers?

    A: The easiest and memory efficient way is to drag n' drop them on the taskmanager (this is the area that dots and lines are shown under running windows).

    Hint: You can add them also outside the taskmanager but that creates animation issues for size <64px and it is memory hungry.

    Q: How can I add applets?

    A: right click on your Plasma desktop -> Add Widgets. From the plasma widgets explorer drag n' drop any widget you want onto your Latte dock

    Q: How can I enable Edit Mode in Latte?

    A: In Edit Mode the user can remove applets, change their ordering and access advanced settings in various areas. To enable it the user just has to show the Latte Settings Window.

    Q: How can I move/remove applets?

    A: you should go to Edit Mode (this is when the settings window is shown) and then you can drag any applet you want to be placed else where. At the same point you can also remove it by right clicking on it or by pressing the [X] button and the tooltip above the applet.

    Q: Can I disable parabolic effect for specific applet?

    A: you should go to Edit Mode (this is when the settings window is shown) and hover afterwards the specific applet. Its tooltip contains a locker icon that you can use to disable parabolic effect for that applet.

    = Q: My launcher and its window are not associated correctly OR my launcher is using a low-resolution icon?_

    A: That issue means that plasma libtaskmanager has not associated correctly your launcher and app windows with the relevant desktop file. Plasma is trying to be smart enough in order to identify correctly which desktop files are associated to specific windows but there are cases that it fails. Best way to solve this is to check the `StartupWMClass` record in the desktop file. That record should point at the proper `WM_CLASS` record at all times. For example even though Latte desktop file is called `org.kde.latte-dock.desktop` its `StartupWMClass` is `lattedock`. In order to identify correctly the `StartupWMClass` for an application you can use `xprop` to do so.

    Example: 1. Run `xprop` in command prompt 2. Click on the window you are interested in 3. Locate at the end of the output the record `WM_CLASS(STRING) =` 4. Add the previous mentioned record in the application desktop file at the `StartupWMClass` field

    e.g. for Gimp 2.10 even though its desktop file is called gimp.desktop its `StartupWMClass` is `gimp-2.10` . `StartupWMClass` is not needed to be added for Gimp because plasma developers have taken special care to map it properly through `/etc/xdg/taskmanagerrulesrc`.

    Q: How Latte Dock (auto)starts and why a widget is provided?

    A: Latte starts from the menu; there is no need to place the widget on your desktop. It is there for testing purposes. The automatic start can be enabled through Settings Window -> Tweaks.

    Q: Did any other dock inspire you? How does Latte Dock compare to other docks?

    A: Latte has an architecture inspired and based on Plasmashell, but we also took some inspiration from Plank eg: the Visibility modes.

    Q: What technology/programming language does it make use of?

    A: Latte is mostly written in Qt/QML and C++14, but this project would not be possible without KDE Frameworks 5.

    = Q: Ok, you convinced me to try it! How can I install it and what are it's dependencies?_

    A: Download the sources and build Latte also remember to install the dependencies. Please read README and INSTALLATION. But if you have problems or doubts you can ask us.

    Q: Which distributions have packages for it, so to install it via P.M. ?

    A: Please read at the bottom of Latte Dock Main Page the Repositories section.

    Q: After the launcher bouncing animation the window showing isn't smooth?

    A: try the following steps,

      1. Go to `Plasma System Settings -> Applications -> Launch Feedback -> (disable) Task Manager` animation
      2. If the problem remains then your application desktop file might be missing the StartupWMClass record. For Inkscape that would be: `StartupWMClass=inkscape`
         you can use the `xprop` program in order to identify that value correctly.
    

    Q: What are some basic configuration options?

    A: Latte is highly configurable. We invite you to explore and configure latte to your pleasure from the config window. 👍 But some special features are: Visibility, Zoom Effect and Add widgets/plasmoids from Plasma5.

    Q: Where is the configuration(s) stored?

    A: Be careful!! `cat ~/.config/lattedock-appletsrc` `cat ~/.config/lattedockrc`

    Q: Inside `~/.config/lattedock-appletsrc` I see various stuff. Can you explain a little the idea behind those?

    A: Config is organized based on `Containments` (eg `[Containments][1]`). Each of those have a number to distiguish one from the other and each one also has different blocks of options. That's where `applets` come in to play and each `Containment` has it's applets (usually one - `[Containments][1][Applets][2]`). So it goes like:

    `[Containments][NumberOfContainemt][Applets][NumberOf_Applet]`  
    

    Now, applet-2 maybe a series of launchers, a Plasma Widget, anything. Each and every applet also has multiple blocks of configuration. A block might be for generic _applet_ configuration (eg `[Containments][1][Applets][2]`) or about some more specific options (eg `[Containments][1][Applets][2][Configuration][General]`).

    As you can tell we can't write all about those numerous options, but here is the deal: You can tweak every applet seperately, you can change the appereance order of applets with `appletOrder=No_of_Applet;No_of_Another`, under `[Containments][1][General]`* , you can manually change the `iconSize` in the same block, if want `shadows`, what the `zoomLevel` has to be and etc. A sample is provided here to see for your self. 
    
    *You see, it _contains_ all the other applets and you tweak under _general_ options
    

    Q: What are some expert configuration options to never mess with?

    A: None is forbiden, as long as you take _frequent backups_ of your configuration. Use cron or similar software to automate the procedure and place them in an safe place.

    Q: How can I enable the Latte Global Shortcuts?

    A: In most cases you need to go at `plasma systemsettings -> Global Shortcuts -> Latte Dock` and enable what shortcuts you need.

      - Super+No: activate a task
      - Super+Ctrl+No: a new instance for a task
      - Super+`: show a hidden dock
    

    Q: Can I use my super key to open the app launcher?

    A1: of course you can but you will need to add at your `~/.config/kwinrc` file the following code:

     [ModifierOnlyShortcuts]
     Meta=org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu
    

    Then reload KWin with:

     qdbus org.kde.KWin /KWin reconfigure
    


    A2: alternativily you can run commands:

     kwriteconfig5 --file ~/.config/kwinrc --group ModifierOnlyShortcuts --key Meta "org.kde.lattedock,/Latte,org.kde.LatteDock,activateLauncherMenu"
    

    qdbus org.kde.KWin /KWin reconfigure

    Q: Latte v0.8 deactivates Borderless Maximized Windows from Active Window Control plasmoid, what can I do ?

    A: Latte v0.8 supports BorderLess Maximized Windows per layout simultaneously. In order for this to work it had to support that feature internally. You can try the following:

    1. Disable BorderLess Maximized Windows from "Active Window Control" 2. Go to Latte Settings -> Layouts -> Choose tab (Preferences) and enable "Support borderless maximized windows in different layouts" 3. Return to your layouts and a new column called "Borderless" must have been added, add a check mark in that column for the layout you want that feature and click Apply

    Q: Ok now Latte can't launch. Is there any sample config to restore to?

    A: You have been told to take backups. Unfortunatelly unless you post your configuration to get help, little can be done now; just `killall -9 latte-dock`, delete your configuration and restart Latte in order to reconfigure it. A configuration exists [here](http://pastebin.ca/3772307) but it's most likely useless to you.

    Q: Can I tweak things like Dock's distance from the screen's border?

    A: You can minimize the distance, but not directly tweak it. Go to Latte Setting -> Tweaks and select Shrink thickness margins

    Q: Are there preloaded layouts for Latte v0.6?

    A: In Latte v0.7 the layouts have been added by default in Appearance page. For previous v0.6 the users can use Preloaded Layouts file, that contains four of the most used layouts (Default, Unity, Plasma, Favourite)

    Q: Can I tweak a launcher's ico or it's command parameteres?

    A: You could set it up at you plasma environment and drag n' drop it onto your Latte dock

    Q: Can I rearrange misplaced launchers and applets through the configuration files?

    A: If you misplaced a launcher (or a whole applet), open `~/.config/lattedock-appletsrc`. Search your launcher and decide where you want to place it. Cut `;file:///usr/share/applications/myapp.desktop` (yes, the semicolon too) and paste it after the launcher - and before it's semicolon - you wish. Be very careful; Only the last launcher doesn't need a semicolor afterwards! So if you are copying your launcher between two others, you have to make sure that both _before and after_ your launcher, a semicolon exists. Let's see an example; let's say you need to copy `transmission-qt` launcher:

    `..;file:///usr/share/applications/kchmviewer.desktop;file:transmission-qt;file:....`

    If what you want to reposition is a whole applet, rather than a launcher in an applet, you will find `appletOrder` very usefull. Just note your applet's number and change the order in which applets are written in the previously mentioned option. Have I mentioned to keep a backup before you edit? I did now.

    Q: What effects does Latte Dock provide? Can launchers rotate, shake or dim when clicked?

    A: Latte only has the zoom effect and the shadows, but we are very concerned about delivering an excellent user experience.

    Q: How can someone shutdown *any* effect, so the icons do absolutely nothing when clicked?

    A: You can disable all animations through Latte Configuration Window -> Appearance -> Animations -> None

    Q: Launchers are disappearing before the relevant window is shown even though they shouldnt.

    A: We know but this behavior is provided by plasma libtaskmanager. You can read more at: Latte Issue #72(), KDE bug report

    Q: I set Animations to "None", but when clicking on an launcher it's icon is momentarily disappeared.

    A: This bug is _already_ fixed in current master and will be included in the next (0.6.0) release. So all you have to do is `git pull` the latest changes of master, or wait for the next stable version if you like so.

    Q: Some applets in my dock are shown too small from _Plasma 5.10_ and beyond, can I fix this?

    _A:_ In Plasma 5.10, the plasma developers decided that the applets in the panels should have a maximum size that they shouldnt overcome. You can change this at plasma `systemsettings -> Icons -> Advanced -> Panel ->` set a size of 256px.

    Q: My left dock behaves strangely from _Plasma 5.10_ and beyond, can I fix this?

    A: In Plasma 5.10, the kwin developers introduced the gestures functionality for touch screens which is enabled by default for all systems. You can disable it through plasma `systemsettings -> Workspace Behavior -> Touchscreen`. Relogin your plasma session if the change doesnt take effect immediately.

    kwin upstream: https://bugs.kde.org/show_bug.cgi?id=382219 plasma upstream: https://bugs.kde.org/show_bug.cgi?id=392464

    Q: So far so good, but Wayland is the future. What the plans are on this?

    A: We plan it for Plasma 5.10, but we are working from now on to offer experimental support

    Q: When support for Wayland is provided, will Latte Dock remove it's auto magical dependency of X11?

    A: It's still a long way off for Wayland to replace X11, but it's possible to build Latte without dependencies X11, however we are still working on supporting Wayland.

    Q: As of writing this F.A.Q. , what is the problem with Qt5.8?

    A: If you are brave enough to mess with technical details, you may want to look [here](https://github.com/psifidotos/Latte-Dock/issues/183) and [here](https://bugreports.qt.io/browse/QTBUG-59044)

    Q: Is there a way to tell Latte Dock to launch only for a Plasma session ?

    A: Of course you can, please follow these steps:

    1. Go to Plasma System Settings -> Startup and Shutdown -> Autostart 2. Choose Latte Dock from applications list 3. Advanced 4. Autostart only in Plasma

    Q: Is there any other hickup or potential problem I should be careful of?

    A: Software as everything else in life, isn't perfect; we constantly try to make a better software and you can help us out with this by reporting every possilbe problem you may find. To answer the question though, there isn't a bug serious enough to prevent you from trying Latte Dock.

    Q: Are there any hopes and wishes for features from the Plasma upstream?

    A: The most important feature needed from KWin in wayland is the distrors to provide access at kwayland's priviliged apis _(and/or)_ for the users, a confirmation from them that Latte requests such apis

    Q: How often new versions will be released and what are your plans?

    A: The first priority to release a stable version is for all the needed features to have been implemented and no major crashes to appear. So we try to keep the schedule but on the other hand _it will be ready when it is ready_.

    Q: I am a complete newbie but I want to help you somehow. What can I do?

    A: As we write this F.A.Q. much help is needed to make Latte stable with multiscreen setups. You could clone the `multiscreens` branch and report back any issues. Also normal bug reports, reports about problems with specific Plasma or Qt versions, strange desktop behavior or even wishes about new features are all welcome :-)

    Q: I know how to program. What can I do?

    A: First step is to know what you are after and then to `fork` this repo; after that you can hunt bugs, add new features - or make more stable those already existing. Discuss your changes and if they are good and reasonable enough, we are more than happy for your pull request.

    Q: How can I install from the current master branch ?

    A: You can easily, download and instal from the last master branch by running a script with commands:

     - `git clone https://github.com/psifidotos/Latte-Dock.git`
     - `cd Latte-Dock`
     - `sh install.sh`
    The last command might ask for your root password, just before installing.
    

    Q: How can I install from a specific branch ?

    A: If you wish test some features currently non existing in `master` branch, you have to `checkout` the branch you wish to install. Let's say you need the `multi2` branch:

     - `git clone https://github.com/psifidotos/Latte-Dock.git`
     - `cd Latte-Dock` 
     - `git pull` 
     - `git branch multi2`
     - `git checkout multi2`
     - `git pull origin multi2`  
    Compile as usual.
    

    Q: I added the applet, but it is shown without a shadow like the rest of the icons

    A: Well, if an applet (or more) hasn't a shadow, you should either double-check that option `All` is set under Latte Settings -> Appearance

    Q: What happens if I drag 'n' drop files on launchers ?

    A: The file will be passed as a parameter to the specific application, creating a new instance (eg passing an image to kolourpaint, will open the image with kolourpaint)

    = Q: Are there known compatibility issues, with some specific graphics driver ?_

    A: If you have Intel Graphics and experiment problems with the rendering e.g. pixelated graphics, corrupt text, etc, you can try changing the rendering method 2D from `SNA` to `UXA`.

    _/etc/X11/xorg.conf.d/20-intel.conf_

     section "Device"
      Identifier  "Intel Graphics"
      Driver      "intel"
      Option      "AccelMethod"  "uxa"
     EndSection
    

    Q: My Dock don't show anymore when i activate the auto-hide or the dodge window feature

    A: Apparently some features from plasma can hinder the dock's ability to show itself when touching the screen border. Plasma 5.10 added the option to execute actions on swiping over a border on a touch screen. You can find this option in the system preferences under: Desktop behavior > Touch screen. If you have your dock on the same border a touch gesture is activated the dock may not be able to show itself. Try deactivating the gesture on that border, then close and restart your session and check if the problem was fixed. (#676)