hyprdots icon indicating copy to clipboard operation
hyprdots copied to clipboard

Added a script to start the startup programs like other DE

Open ALEX5402 opened this issue 1 year ago • 8 comments

Pull Request

Description

This PR adds a bash script that automatically runs executable commands from .desktop files located in the ~/.config/autostart/ directory. This feature mimics the startup program behavior seen in other Desktop Environments (DE).

Type of change

Please put an x in the boxes that apply:

  • [x] New feature (non-breaking change which adds functionality)

Checklist

Please put an x in the boxes that apply:

  • [x] I have read the CONTRIBUTING document.
  • [x] My code follows the code style of this project.
  • [x] My commit message follows the commit guidelines.
  • [ ] My change requires a change to the documentation.
  • [ ] I have updated the documentation accordingly.
  • [ ] I have added a changelog entry.
  • [ ] I have added necessary comments/documentation to my code.
  • [ ] I have added tests to cover my changes.
  • [x] I have tested my code locally and it works as expected.
  • [ ] All new and existing tests passed.

ALEX5402 avatar Aug 14 '24 05:08 ALEX5402

Why need this ??? if you need auto start then add the app in exec-once

mahaveergurjar avatar Aug 19 '24 05:08 mahaveergurjar

Why need this ??? if you need auto start then add the app in exec-once

I agree. We dont need another utility, just add the program you want to launch on exec-once

rubiin avatar Aug 22 '24 18:08 rubiin

@kRHYME7 can be closed i guess

rubiin avatar Aug 26 '24 17:08 rubiin

Why need this ??? if you need auto start then add the app in exec-once

i mentioned that script to start the startup programs like other DE here

see here script to start the startup programs like other DE

ALEX5402 avatar Aug 28 '24 17:08 ALEX5402

Why need this ??? if you need auto start then add the app in exec-once

i mentioned that script to start the startup programs like other DE here

see here script to start the startup programs like other DE

I know it's for app startup but don't need this script in hyprland because in hyprland exec-once used for auto startup that's why don't need this script

mahaveergurjar avatar Aug 28 '24 18:08 mahaveergurjar

Every cli and gui app can be launched with exec-once in hyprland which starts the app as soon as hyprland starts so its like reinventing the wheel which adds maintainance burden

image

rubiin avatar Aug 28 '24 18:08 rubiin

Every cli and gui app can be launched with exec-once in hyprland which starts the app as soon as hyprland starts so its like reinventing the wheel which adds maintainance burden

image

I know this is why i mention the it opens that app like other DE
my consept why i need to define eatch programm manually on there to open why not just make a script which autometicly do that

image

from inside the app is that a bad idea ?

ALEX5402 avatar Aug 29 '24 05:08 ALEX5402

I hope this from the Hyprland Wiki is fruitful for the discussion at hand.

Systemd users can also start Hyprland, using uwsm. This is the recommended method of launching Hyprland on systemd-based distros, as it provides additional features such as xdg-autostart support, launching any application as a systemd-unit with uwsm app helper, and the ability to enable services for programs that rely on a graphical session and provide such services (e.g waybar).

Unless I am blatantly mistaken, uswm makes this PR rather unappealing.

DBPhoenix avatar Feb 09 '25 01:02 DBPhoenix