Score:0

Custom quick launcher issue in lubuntu

li flag

I've added a custom launcher to my desktop to run a script, but when I drag it into the lxqt quick launch panel it does nothing (ie I can put debug stmts in the script and they aren't executed). Any ideas what I'm missing? Here's the launcher:

Name=Suspend Screensaver
GenericName=sets xscreensaver to 3h timeout
Comment=Meh
Exec=/home/username/bin/sss
Type=Application
Icon=alexandra
Terminal=false
Categories=System;
OnlyShowIn=LXQt;

In panel.conf I get this inserted:

apps\5\desktop=/home/username/.local/share/applications/Suspend_screensaver.desktop

... and that .desktop file is owned by the user with 644 perms.

Many thanks

vanadium avatar
cn flag
Does the launcher work otherwise, i.e. does it show up in your user menu and can you launch it from there? Does the command you specify work when you execute it in a terminal? Just to be sure it is an LXQt issue and nothing else.
iamnotalwaysarobot avatar
li flag
Thanks vanadium.. The launcher works when I double click on it on my desktop, runs the script successfully and updates the config correctly. It's just when I call it from the quick launch bar, it does nothing. If I enable Terminal=true it launches a blank terminal but doesn't execute the script (although I get that from the desktop too if I set Terminal to true). I used some ```echo text >> /home/username/sss.log``` to confirm the script has run so it's very clear that it works only from double clicking the desktop icon and with Terminal=false
iamnotalwaysarobot avatar
li flag
"does it show up in your user menu and can you launch it from there" - it's in the menus but no, it doesn't work from the menu either. Only as a desktop launcher.
iamnotalwaysarobot avatar
li flag
Found another clue here https://askubuntu.com/a/1154486/1691139 - adding bash -c 'mycommand' did the trick, together with creating the quick launcher by dragging in the menu item rather than the one on my desktop... Hope that helps someone else..!
Score:1
li flag

Wrapped the exec value in bash -c 'mycommand' and that got it working, together with creating the quick launcher by dragging in the menu item rather than the one on my desktop

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.