This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Autostart a system tray application with specific arguments

Tags: None
(comma "," separated)
User avatar
mallrat
Registered Member
Posts
4
Karma
0
OS
The problem is the following. I'm using networkd together with wpa-supplicant for wireless connections.
To manage Wi-Fi connections with GUI I use wpa-cute that is a fork of wpa-gui application.

The GUI is placed in system tray. When I reboot my laptop wpa-cute is started automatically with command line arguments like this:
Code: Select all
/usr/bin/wpa-cute -session 10d0e3e5dc000155126883500000008210016_1551346073_984977

What's wrong in my case: I'd like to get it started with -t -W arguments that starts it hidden to tray and don't disable network after WRONG_KEY error that's usual for the first try after system start (I don't know why). The application has no way to keep that settings in a file or somewhere else.

I've tried to stop the app and re-run it manually with that command line, also I've changed the .desktop file in the main menu to run it with that keys by default but no one way helped.
I've tried to put the app to Autostart but I got double instances running as a result.

What's the proper way to resolve this?
TechnoJunky
Registered Member
Posts
25
Karma
0
OS
I don't know what the proper solution is but you posted this a week and a half ago, so it doesn't look like anyone will post what the proper solution is. :)
I would suggest trying to script it and putting that script in the autostart. First, you say that "stop the app and re-run it manually with that command line". So make that the script. Line 1, Stop the app, line 2, start the app with -t -W. put that script in the autostart and I'd bet you'd be in business. Like I said, this probably isn't the best solution, but it is A solution. :)


F37 KDE Spin
User avatar
mallrat
Registered Member
Posts
4
Karma
0
OS
I've just patched the source code of wpa-cute inverted the meaning of needed flags. Now it's started without any flags working as I want. =) It was the simples one for me.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar