انجمنهای فارسی اوبونتو
کمک و پشتیبانی => سایر توزیعهای گنو/لینوکس => آرچ => نویسنده: imaniy در 24 مهر 1397، 09:04 بظ
-
سلام من یک قطعه کد دارم که باید در استارت اپ مانجارو قرار بدم که با هربار روشن شدنش اون اجرا بشه باید چه کنم؟ اگه برنامه بود خود مانجارو قسمتی برای اینکار داره ولی این کد هستش نمیدونم چیکار کنم.
-
میتونین برای اون چیزی که میخواین اجرا کنین یه فایل Desktop Entry بنویسین و بذارینش توی این دایرکتوری:
~/.config/autostart
البته فکر کنم توی تنظیمات خود میزکارتون هم امکان وارد کردن دستور وجود داشته باشههاا !
-
میتونین برای اون چیزی که میخواین اجرا کنین یه فایل Desktop Entry بنویسین و بذارینش توی این دایرکتوری:
~/.config/autostart
البته فکر کنم توی تنظیمات خود میزکارتون هم امکان وارد کردن دستور وجود داشته باشههاا !
اون مسیری که گفته بودین رو پیدا کردم منتها چطوری باید desktop entry بسازم؟ :(
-
میتونین از این الگو بگیرین:
[Desktop Entry]
# The type as listed above
Type=Application
# The version of the desktop entry specification to which this file complies
Version=1.0
# The name of the application
Name=jMemorize
# A comment which can/will be used as a tooltip
Comment=Flash card based learning tool
# The path to the folder in which the executable is run
Path=/opt/jmemorise
# The executable of the application, possibly with arguments.
Exec=jmemorize
# The name of the icon that will be used to display this entry
Icon=jmemorize
# Describes whether this application needs to be run in a terminal or not
Terminal=false
# Describes the categories in which this entry should be shown
Categories=Education;Languages;Java;
منبع (https://wiki.archlinux.org/index.php/Desktop_entries)