Ubuntu budgie: app in autostart run once then disappears

Hi,

configured guake terminal to autostart at login in startup ubuntu app
The command is:

guake --show -e "sudo nethogs -b"

When I reboot or logout and login the terminal starts, but if
I open the startup ubuntu app the entry I added is disappeared
I created a file in .config/autostart/ dir and the same thing
happens, run once then the file disappeared
Any idea ?

Hi @klatls

It seems like Ubuntu is automatically removing the entry. Some desktop environments clean up invalid or temporary startup entries. If the autostart file is deleted after running, try setting the Hidden=false flag.

Recreate your autostart entry:

mkdir -p ~/.config/autostart
nano ~/.config/autostart/guake-nethogs.desktop
Add the following content:<

[Desktop Entry]
Type=Application
Exec=guake --show -e “sudo nethogs -b”
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name=Guake Nethogs
Comment=Start Guake with Nethogs
Terminal=false<

Save the file (Ctrl + X, then Y, then Enter)

Try this and let me know the result. Then I can suggest you some more methods of troubleshooting. All the best. :+1:

You can also visit this website to find similar issues and get answer to your problem.

https://askubuntu.com

Hi @Shaunak

the file I created in .config/autostart/ was

[Desktop Entry]
Type=Application
Exec=/usr/bin/guake --show -e “sudo nethogs -b”
Hidden=false
NoDisplay=false
X-GNOME-Autostart-enabled=true
Name[en_US]=Guake_nethogs
Name=Guake_nethogs
Comment[en_US]=Guake_exec_nethogs
Comment=Guake_exec_nethogs

Now I added the your last line that I hadn’t written
Terminal=false<

then logged out and in but the file disappeared anyway

I’m very sorry if you don’t use Guake it should run fine, mine works on xfce4-terminal:
Mine in Autostart looks like:

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=XFCE Terminal
Comment=
Exec=exo-open --launch TerminalEmulator sudo nethogs
OnlyShowIn=XFCE;
RunHook=0
StartupNotify=false
Terminal=false
Hidden=false

just a another method is all.

NetHogs version 0.8.8-1

    PID USER     PROGRAM             DEV                SENT      RECEIVED      
  31591 me       /opt/brave.com/b..  surfshark_wg       0.180       0.173 kB/s
      ? root     unknown TCP                            0.000       0.000 kB/s

  TOTAL                                                 0.180       0.173 kB/s  







This topic was automatically closed after 30 days. New replies are no longer allowed.