You are not logged in.
Hello, I have a simple question:
I made a simple script called gtklaunch.sh as:
#!/bin/sh
gtk-launch kittyand this script file is located in a folder, let's say "/home/user/test".
When I run ./gtklaunch.sh directly on its folder, kitty will be opened in "/home/user/test". If I move to two parent folders back, and I am in "/home" dir and I run "./user/test/gtklaunch", kitty will be opened in "/home" folder.
Is there a way to force gtk-launch to open the terminal that I use (in this case Kitty, but could be every terminal) to a fixed folder (as /home/user) regardless the position I call the script?
Last edited by D3vil0p3r (2023-06-11 13:07:35)
Offline
Why not just add a 'cd' to the script?
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Why not just add a 'cd' to the script?
Very simple solution. Thanks.
Offline